#Hello, when i redeem my voucher, my console won't execute any command.

1 messages · Page 1 of 1 (latest)

novel cairn
#

you never set {_commando} in the on right click with ...: event

#

its a local variable, it will only work for that specific trigger that specific time it is ran

pale warren
#

variables that start with an underscore cannot be shared between events
you will need to remove the underscore for when you set and call the variable (but it may glitch when multiple vouchers are set and used with different commands)

median roost
#

and, if you make it a global variable, there can only be one {commando} at a time.

Meaning if you give player A a voucher with the command /1, and then player B a voucher with the command /2, {commando} will be overwritten to /2. You should set the command in a string nbt tag