on right click with paper:
loop all items of player's inventory:
if name of loop-item is "&6$0.50":
remove loop-item from player
add 0.50 to player's balance
This code works but only gives 0.50 when it takes all the items. I have tried using "set {_amount::*} to amount of loop items, but it gives the error: Theres no loop that matches "loop-items" (money.sk, line 5: set {_amount::*} to amount of loop-items)
loop all items of player's inventory:
if name of loop-item is "&6$0.50":
remove loop-item from player
add 0.50 to player's balance
This code works but only gives 0.50 when it takes all the items. I have tried using "set {_amount::*} to amount of loop items, but it gives the error: Theres no loop that matches "loop-items" (money.sk, line 5: set {_amount::*} to amount of loop-items)