Item Components

Item Components

91 Downloads

Am I using the "minecraft:tool" component righ?

ppblitto opened this issue ยท 1 comments

commented

Hello. I'm currently using the 1.21.1 version of this mod and I don't seem to get the "minecraft:tool" component to work. I'm trying to edit the iron pickaxe break speed and make it unbreakable just for a test.

If I only put "minecraft:unbreakable": {} in components, it works, but when I add the "tool" component, the pickaxe becomes breakable again and doesn't break blocks faster, making me believe that the json isn't being read anymore.

I also tried to put just the "minecraft:tool" component with it's rules, without adding "minecraft:unbreakable" or something else, but it also won't work.

Here's the .json code below:

{ "targets": "minecraft:iron_pickaxe", "components": { "minecraft:tool": { "default_mining_speed": 1, "damage_per_block": 1, "rules": [ { "blocks": "#minecraft:mineable/pickaxe", "speed": 12, "correct_for_drops": true } ] }, "minecraft:unbreakable": {} } }

Am I missing something? Is someone else not being able to get this to work?