COMMAND BUILDER
Minecraft /attribute Generator.
Modifies attributes on entities (e.g. max health, speed). Adjust settings below to instantly generate the correct syntax.
LIVE TERMINAL OUTPUT
Generated Minecraft Syntax
Copy and paste this output directly into your Minecraft game console (press T) or command blocks.
/give @s diamond 64
What this command does?
Executes /attribute command for yourself (`@s`).
Documentation & Guide
About the /attribute Generator
The /attribute generator inspects, modifies, or resets entity attribute base values (max health, attack damage, movement speed, knockback resistance) in Java Edition.
How to Use This Generator
- Select target entity selector.
- Pick attribute (e.g. generic.max_health, generic.movement_speed).
- Choose operation: get, base get, base set, or modifier.
- Input numerical value.
- Copy and run in chat or command blocks.
Parameters & Options Explained
Target
Target entity whose attributes will be altered.
Attribute ID
Attribute identifier (e.g. minecraft:generic.max_health).
Operation
get, base set, or base get.
Practical In-Game Example
Tested & Validated/attribute @p minecraft:generic.max_health base set 40Gives the player 20 full heart containers (40 health points) permanently.
Java vs Bedrock Compatibility
Java Edition:Full support for all entity and player attributes.
Bedrock Edition:Bedrock does not support the /attribute command; use /effect or behavior packs.
Important Limitations & Rules
- Exclusive to Java Edition.
- Setting attributes too high (like speed above 5) makes player control impossible.