Elementium Sign in
Contents

Logic · Step

Cancel the event

Stop what the player did from happening: the block stays, the chat line isn't sent, the hit does no harm.

Basic plan m.event.cancel

In a flow

“When a player places a block → If Block type is minecraft:tnt → Cancel the event.”

When a player places a block → If Block type is minecraft:tnt → Cancel the event.

What it does

Stop what the player did from happening: the block stays, the chat line isn't sent, the hit does no harm. It's a step: it runs when the white wire reaches it, then the flow carries on from its Then pin. Find it under Logic in the palette.

When to use it

Use it to decide what happens next: stop what the player did from happening: the block stays, the chat line isn't sent, the hit does no harm.

When not to

If nothing should change in Discord, a value node or a check is lighter.

Typical wiring

Often next

Related in Logic

Wires and sockets · Data values · Plans