Minecraft : Attribute Command Generator
Try the Commands Troubleshooting and Help page if you get stuff with server errors. Found a bug or want a feature, let us know on reddit.
Attribute Command Maker Tool
Create and manage attribute commands, select a target player or entity, set attribute and get attribute. For Minecraft Java Edition. Players and mobs can be modified with the attribute command. The command is fairly simple, but this tool helps you set up the target selectors and options.
See our list of attributes
Basic Usage
These example commands are set for the latest version of Java.
Get the current speed value of the target random player, it should be approximately 0.1.
/attribute @p movement_speed base get
Set the current speed value of the target random player, to twice as fast.
/attribute @p movement_speed base set 0.2
Reset the current speed value of the target random player.
/attribute @p movement_speed base reset
Only a maximum of one target can be set at a time.
/attribute @a[limit=1] movement_speed base set 0.2
Advanced Usage
So far we've looked at base value usage. With the modify command the base value can be adjusted in more complex ways. These modifiers don't affect the base value, but they do affect the total value of the attribute. This allows you to create temporary buffs and debuffs that can be easily removed without affecting the base value.
Get the total value of the target random player, it should be approximately 0.1 as above.
/attribute @p movement_speed get
We can then set a modifier that adds to the base value.
/attribute @p movement_speed modifier add custom_id 2 add_multiplied_base
These can be stacked.
/attribute @p movement_speed modifier add custom_id2 2 add_multiplied_base
Reset an individual modifier.
/attribute @p movement_speed modifier remove custom_id
Version History
addedShelves to container contents, change url
patchPre 1.21.5 json text quote escaping item tags
addedMore predicates
addedImprove give links to spawn eggs and buckets
addedMore predicates
added26.3 content
addedMore predicates
addedPreloading 26.3 items and content
addedSummon options for interaction, marker, ominous_item_spawner
patchGive generator patch can_break, can_place
addedSummon item_display and text_display
patchSummon issue with fireworks and potions
patchSummon issue with summon eggs (again)
addedend_crystal nbt tags
patchdamage_resistant for multi values in 26.1
patchbee nbt tags
patchmotion and rotation nbt tags
patchvarious uuid and nbt pathing issues
patchsummon blocks fixes and improvements
patchsome autocomplete quirky issues during typing
addedUUID converter
patchFix for issue with items not re-encoding correctly for items, trades and containers
patchTrades for 1.20.4 and earlier now auto add Count if missing
Read version history »
(131 More Updates)