/resource
Gets or sets the value of a float/int resource.
Syntax
resource get <target> float <power> [<scale>]
resource get <target> int <power>
resource set <targets> float <power> <floatValue>
resource set <targets> int <power> <intValue>
Arguments
<target>: entity- The entity to get the power from and modify its value.
- Must be a player name, a target selector, or a UUID. And the target selector must be a single type.
<targets>: entity- The entity/entities to get the power from and modify its value.
- Must be a player name, a target selector, or a UUID.
<power>: power_identifier- Specifies the power to get/set the value of.
<scale>: float- Specifies the value by which the result is multiplied
- If omitted,
1.0is used.
<floatValue>: float- The new float value for the power.
<intValue>: integer- The new integer value for the power.
History
| Minecraft | Mod | Changelog |
| 1.21.5 | 0.1.0 | Added the command. |