Starts when · Starts a flow
When a player picks a trade
Starts when a player picks one of a villager's trades from the list.
m.on.trade_select
In a flow
“When a player picks a trade, the steps wired after it run.”
When trade select → Broadcast {trigger.index}
What it does
Starts when a player picks one of a villager's trades from the list. It starts a flow, and gives the steps after it values about what happened. It gives 3 values later steps can use. Find it under Starts when in the palette.
When to use it
Use it to start a flow when a player picks a trade.
When not to
If the flow should start from a click or a command instead, pick that trigger: a flow has exactly one.
Typical wiring
Values it gives
- Index Number
-
The index of the trade select. e.g. 1
If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.
Connects toAccount ageActive membersAddAdd answer to formAdd soundboard soundAdd timeAdd to a counterAdd to a leaderboardand 719 more
- Result Text
-
The result of the trade select. e.g. minecraft:stone
If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.
Connects toAccept applicationAdd a forum tagAdd a labelAdd a Notion pageAdd a row to a Google SheetAdd a staff noteAdd a stickerAdd a Trello cardand 578 more
- Who clicked Entity
-
The who clicked of the trade select. e.g. Zombie
If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.
Connects toAccept applicationAdd a forum tagAdd a labelAdd a Notion pageAdd a row to a Google SheetAdd a staff noteAdd a stickerAdd a Trello cardand 554 more