Game rule is
Whether a game rule has a value, like keep inventory being true.
A Minecraft element (a check) in World & blocks. Needs the Basic plan or higher to go live; building and testing are free.
Example
When a player dies → If Game rule is minecraft:keep_inventory true → Show a message.
Also called
gamerule is, rule equals, check rule
Works as a data pack?
No. This one needs the Elementium plugin on a Paper server.
What you give it
- World
- Value