Elementium Sign in
Contents

Logic · Step

Cancel: a player trades with a villager

Stops this from happening, as if it never did: a player trades with a villager. Only in a flow that starts when a player trades with a villager, before any Wait.

Basic plan m.on.player_trade.cancel

In a flow

“When a player trades with a villager → If something → Cancel: a player trades with a villager”

When a player trades with a villager → If something → Cancel: a player trades with a villager

What it does

Stops this from happening, as if it never did: a player trades with a villager. Only in a flow that starts when a player trades with a villager, before any Wait. 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: stops this from happening, as if it never did: a player trades with a villager. Only in a flow that starts when a player trades with a villager, before any Wait.

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