Elementium Sign in
Contents

World & blocks · Check

Game rule is

Whether a game rule has a value, like keep inventory being true.

Basic plan m.world.gamerule_is

In a flow

“When a player dies → If Game rule is minecraft:keep_inventory true → Show a message.”

When a player dies → If Game rule is minecraft:keep_inventory true → Show a message.

What it does

Whether a game rule has a value, like keep inventory being true. It's a check: put it in an If, and the flow goes one way when it's true and the other when it isn't. Find it under World & blocks in the palette.

When to use it

Use it when the flow needs to: whether a game rule has a value, like keep inventory being true.

When not to

To pick between more than two outcomes, Switch or Random reads better than a chain of checks.

Typical wiring

Sockets: settings you can wire

World Text

The world's name, like world or world_nether. Variables allowed.

What goes there: Type it in the side panel, or wire in text. e.g. Hello there

If it's empty: Optional. Left empty and unwired, it uses world.

Connects fromA member's variablesAccept applicationAdd a Notion pageAdd a Trello cardAdd an emojiAdd to number in objectAdd up timesAdd working daysand 845 more

Value Text

True, false or a number.

What goes there: Type it in the side panel, or wire in text. e.g. Hello there

If it's empty: Optional. Left empty and unwired, it uses true.

Connects fromA member's variablesAccept applicationAdd a Notion pageAdd a Trello cardAdd an emojiAdd to number in objectAdd up timesAdd working daysand 845 more

Often next

Related in World & blocks

Wires and sockets · Data values · Plans