Minecraft : Attribute Command Generator

Update 2.41.8, you may need to clear cache for updated files.
Loading
Page

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

8 Oct 2026
minecraft/command-generator 2.41.8

addedShelves to container contents, change url
patchPre 1.21.5 json text quote escaping item tags

1 Oct 2026
minecraft/command-generator 2.41.7

addedMore predicates
addedImprove give links to spawn eggs and buckets

24 Sep 2026
minecraft/command-generator 2.41.6

addedMore predicates

17 Sep 2026
minecraft/command-generator 2.41.5

added26.3 content
addedMore predicates

10 Sep 2026
minecraft/command-generator 2.41.4

addedPreloading 26.3 items and content
addedSummon options for interaction, marker, ominous_item_spawner
patchGive generator patch can_break, can_place

3 Sep 2026
minecraft/command-generator 2.41.3

addedSummon item_display and text_display
patchSummon issue with fireworks and potions
patchSummon issue with summon eggs (again)

27 Aug 2026
minecraft/command-generator 2.41.2

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

20 Aug 2026
minecraft/command-generator 2.41.1

patchsummon blocks fixes and improvements
patchsome autocomplete quirky issues during typing

13 Aug 2026
minecraft/command-generator 2.41

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)