so ive been making a generator and all of it works except one part:
how do i make it so it removes all and adds by the amount it removed (ik how to remove all but not how to make it give the same amount of money)
Code:
on pickup of paper:
remove 1 of paper from player's inventory
increase {money::%player's uuid%} by 1
how do i make it so it removes all and adds by the amount it removed (ik how to remove all but not how to make it give the same amount of money)