I'm having issues with detecting the value of the bonus card i made to add to player's balance.
I'm sure you already know what I'm trying to make so try your best please.
Here's the code if you need to copy
I'm sure you already know what I'm trying to make so try your best please.
Here's the code if you need to copy
Code:
command /bonus <text> <player> <integer>:
trigger:
if arg-1 is "give":
set {_bonus-value} to arg-3
give arg-2 paper named "<##34eb5e>&lB &fBonus card &7(&e%{_bonus-value}%)"
on click:
#detect player's item with bonus value
#add the bonus value to player's accound
#send player a notice