McJtyMods / InControl

Be In Control of Mob Spawns and others
MIT License
43 stars 16 forks source link

The new breakevents.json doesn't like nbt it seems... #410

Closed DanRobzProbz closed 5 months ago

DanRobzProbz commented 5 months ago

This example doesn't work for the new breakevents.json.

I just copied the code and pasted it in my breakevents.json from the site examples given, when mining I get a prompt saying that the block can't be mined(which is what I want) but then if I enchant my Iron Pickaxe with Unbreaking(id 34) it doesn't break the block still... It should be able to be mined if it has that enchantment attached, right?!

I tried many different ench ids and still nothing sadly. Any help would be appreciated, thanks. :)

All I wanted was to make players only be able to mine ores if they had silk touch(id 33)

Thanks! Screenshot 2024-01-24 091224

McJty commented 5 months ago

That's not the correct nbt for an enchantment. See this wiki on the correct tags:

https://minecraft.fandom.com/wiki/Tutorials/Command_NBT_tags

DanRobzProbz commented 5 months ago

Okay, thanks. It might be worth updating the example in case others have the same issue. :)