Read a game rule
Read a game rule in a world: its value as text, and whether it is on or a number.
A Minecraft element (a value) in World & blocks. Needs the Basic plan or higher to go live; building and testing are free.
Example
When a player joins → Read a game rule: minecraft:keep_inventory → Answer: {node.v.value}.
Also called
gamerule, game rule, rule value, keep inventory, setting
Works as a data pack?
No. This one needs the Elementium plugin on a Paper server.
What you give it
- World
What it gives back
- Value
- Is on
- Number