Did using the /give command to get items with attributes change in 1.17.1?
I've already stumbled upon some similar threads, but none on version 1.17. So my issue is, I want to make custom items (sword, armors…) with custom attributes. I tried copy/pasting some commands, but none worked. It keeps telling me that the item name is unknown, here's an example of command :
/give @p diamond_sword{Unbreakable:1,AttributeModifiers:[{Slot:"mainhand", AttributeName:"generic.attack_damage", Amount:100000.0, UUID:[I; -1, -1, -1, -1]},{Slot:"mainhand", AttributeName:"generic.movement_speed", Amount:1, UUID:[I; -1, -1, -1, -1]}]} 1
It's from a tutorial for Minecraft 1.16.5, so I suppose that it does not work the same in 1.17.1.
Best Answer
Firstly, that's not /attribute
, that's /give
, you're using attribute modifiers. The command should work, or at the very least not say the item name is unknown - it sounds like you've got a plugin here that's using the old /give
syntax. What happens if you use /minecraft:give @p ...
instead?
Pictures about "Did using the /give command to get items with attributes change in 1.17.1?"
How do you get attributes in Minecraft?
You can use the /attribute command to get the total value of an attribute, get the base value of an attribute, set the base value of an attribute, or work with attribute modifiers for a targeted entity in Minecraft.How do you use the item Modify command in Minecraft?
The attribute command supports these subcommands. You can copy attributes from an object to a specified object, a project to a specified project, and from a project to specified subprojects. You can also append attributes from an object to a specified object.How to use attributes in Minecraft 1.17 (special items, infinite health/armor)
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Ketut Subiyanto, Ketut Subiyanto, Ketut Subiyanto, Ketut Subiyanto