Elementium Sign in

Set a game rule

Change a game rule in a world, like keepInventory, doDaylightCycle or mobGriefing.

Try it on your server

A Minecraft element (a step) in Server & admin. Needs the Basic plan or higher to go live; building and testing are free.

Example

When the server starts → Set a game rule: minecraft:keep_inventory to true.

Also called

gamerule, game rule, keep inventory, daylight cycle, mob griefing, rules

Works as a data pack?

Yes. A vanilla data pack does this exactly as the plugin does.

What you give it

Related

All Minecraft elements