#Money System

1 messages · Page 1 of 1 (latest)

upbeat root
#

I am making a money system with a scoreboard. Is there a way that you can withdraw money and it will give you a paper that has the same amount you withdrawed and if you click it it will give you the amount on the paper

rose horizonBOT
#

<@&1201956957406109788>

Someone will come and help soon!

💬 While you wait, take this time to provide more context and details.

🙇 If nobody has answered you by <t:1735820787:t>, feel free to use the Summon Helpers button to ping our helper team.

✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve

torpid crag
#

why did you resolve the thread

#

and make a new one?

#

Don't do that

upbeat root
#

beacuase no one answered it

weary cave
#

just wait next time

torpid crag
#

here are the steps you should take to withdraw money:

  1. make a trigger scoreboard so players can use /trigger money_datapack:withdraw set 20 to withdraw money
  2. check if the trigger scoreboard value is less than or equal to the players current money score
  3. make a function that triggers when a player withdraws money and that stores the withdrawed money in a storage
  4. Create a loottable that drops a piece of paper and copies over the withdrawed money from the storage into the custom data of the paper (also make sure you add a consumable component with a giant consuming time so it can be given back)
    5.Remove the trigger from the current player's money score
  5. reset the trigger scoreboard in the function so it can be triggered next time (also make sure to enable the trigger)
#

here are the steps to take to collect the money:

  1. make an advancement that triggers when a player is consuming a money ticket
  2. give that advancement a function reward
  3. in that function, store the money of the custom_data of the item the player is holding (which is in this case the money ticket) in a temp score
  4. add the temp score to the current players money score
  5. clear the item from the player
#

if you need any more help, feel free to ask :)

rose horizonBOT
#

-# Error resolving this thread.

#

This post has too many tags and the resolved tag cannot be applied. Please remove the least important one to properly resolve it.