This is how the game itself shows it /help attribute: in angle brackets - what to substitute, in square brackets - optional, through a line - one of.
On page 6 sections
Briefly
Examples are verified by the game - copy
-
Forty health - twenty hearts
/attribute @s minecraft:max_health base set 40 -
Become half the size
/attribute @s minecraft:scale base set 0.5 -
Find out your speed
/attribute @s minecraft:movement_speed get
Rights - game master.
/attribute <target> <attribute> (get|base|modifier)
We need a game master level: Level 2 for the command unit, for the data pack functions and for the guests of the world open to the network with authorized commands. It's written in server consoles without a cross-section.
| What | Meaning |
|---|---|
| command | /attribute |
| Rights | Playmaster (2) |
| Where is | on the server and in single player with cheats |
How to use the command /attribute?
Syntax: /attribute <target> <attribute> (get\base\modifier). For example, /attribute @s minor:max_health base set 40–40 - 20 hearts.
What rights are needed for /attribute?
We need a game master level: Level 2 for the command unit, for the data pack functions and for the guests of the world open to the network with authorized commands.
Does the command block work?
Yeah, the command unit's doing right-level 2 commands, and this one doesn't need any more. You don't have to write a line in the block.
- /advancement
- /clear
- /damage
- /defaultgamemode
- /effect
- /enchant
- /experience
- /gamemode
- /give
- /kill
- /recipe
- /ride
- /rotate
- /spawnpoint
- /spectate
- /swing
- /teleport
All commands PvP 1.8: how to remove hit cooldown
According to Minecraft 26.3, the syntax is a clue to /help from the game itself, right from her command report, each example is checked by a review of the game's commands.