mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-10-30 13:13:00 +00:00
Use tags to what items turtle.place() can .use()
In older versions we just used a hard-coded list of items and superclasses. This was somewhat ugly, and so in 1.19.3 I tried to make this code more generic. However, this has a lot of unintended consequences - for instance turtles can now throw ender pearls, which is definitely not intended! By using a tag, we can emulate the old behaviour, while still allowing modders and pack devs to add additional items if needed.
This commit is contained in:
1
projects/fabric/src/generated/resources/data/computercraft/tags/items/turtle_can_place.json
generated
Normal file
1
projects/fabric/src/generated/resources/data/computercraft/tags/items/turtle_can_place.json
generated
Normal file
@@ -0,0 +1 @@
|
||||
{"replace": false, "values": ["minecraft:glass_bottle", "#minecraft:boats"]}
|
||||
Reference in New Issue
Block a user