#Money System
1 messages · Page 1 of 1 (latest)
<@&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
beacuase no one answered it
just wait next time
here are the steps you should take to withdraw money:
- make a trigger scoreboard so players can use
/trigger money_datapack:withdraw set 20to withdraw money - check if the trigger scoreboard value is less than or equal to the players current money score
- make a function that triggers when a player withdraws money and that stores the withdrawed money in a storage
- 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 - 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:
- make an advancement that triggers when a player is consuming a money ticket
- give that advancement a function reward
- 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
- add the temp score to the current players money score
- clear the item from the player
if you need any more help, feel free to ask :)