Elementium Sign in
Contents

World & blocks · Check

Is inside a box

Whether a location is inside the box between two corners, counting whole blocks.

Basic plan m.world.in_box

In a flow

“When a player moves to another block → If Is inside a box around the arena → Give a title.”

When a player moves to another block → If Is inside a box around the arena → Give a title.

What it does

Whether a location is inside the box between two corners, counting whole blocks. 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 location is inside the box between two corners, counting whole blocks.

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

Location Location

Where: wire a location in, like Location from Player location, or type world x y z.

What goes there: Type it in the side panel, or wire in a location. e.g. world 10.5 64 -3.2

If it's empty: Optional. Left empty and unwired, the step runs without it.

Corner 1 Location

One corner: wire a location in, or type world x y z.

What goes there: Type it in the side panel, or wire in a location. e.g. world 10.5 64 -3.2

If it's empty: Optional. Left empty and unwired, the step runs without it.

Corner 2 Location

The opposite corner, in the same world.

What goes there: Type it in the side panel, or wire in a location. e.g. world 10.5 64 -3.2

If it's empty: Optional. Left empty and unwired, the step runs without it.

Often next

Related in World & blocks

Wires and sockets · Data values · Plans