when using /give, you can specify additional NBT data, including attributes. The minecraft:player.block_break_speed
attribute cannot be specified, and is ignored if you forcefully apply it (like by using /data merge on an armor stand.) This is unintentional, as other similar attributes such as minecraft:player.submerged_mining_speed
are respected.
Attachments
Comments 3
The attribute id is minecraft:player.block_break_speed.
The post title is correct, but the command and screenshot are not.
The command has generic.block_break_speed and not player.block_break_speed. (same for the screenshot)
In short: Your command is wrong.
Command used:
/give @a minecraft:netherite_pickaxe[unbreakable={show_in_tooltip:false},entity_data={id:netherite_helmet,Invisible:1b},attribute_modifiers={modifiers:[{type:"generic.block_break_speed",amount:1024,slot:head,operation:add_value,id:1727028106563}]}]