Maps Other

Vanilla Money System

  • 1.7k views 0 today
  • save_alt 40 downloads
Progress
100% complete
  • 3
  • 0
  • 3
MajorDOT
Lvl 20Expert Goblin
2
This is my third attempt at a money system I feel that every time I make a money system I get better and better. Hopefully one day I can make an amazing money system like no other!

To change the visible name of your currency change it from Cash to the name of your currency. Example:

From: /scoreboard objectives add Money dummy Cash

To: /scoreboard objectives add Money dummy Rubies

If you want to give players starter money you can use a custom system. Sadly I was never able to get a system like this working personally, but I wish you luck!




To change to item you are selling / buying just change it from:

Minecraft:CobbleStone to what you want. Example: Minecraft:Diamond

To change the Buy / Sell price just change the number in the testfor, add, and remove commands.

/scoreboard players add @p Money 1 (->) /scoreboard players add @p Money 50 ## Used to Give Players Money after selling said item.

/testfor @p[score_Money_min=2] (->) /testfor @p[score_Money_min=100] ## Used to check if Players have Money.
/scoreboard players remove @p Money 2 (->) /scoreboard players remove @p Money 100 ## Takes Money from Players balance.

1 Update Logs

Update #1 : by MajorDOT 07/28/2017 6:35:36 pmJuly 28, 2017 @ 10:35 pm UTC

Turns out I don't know how to add schematics... Should be working now :D

More like this

  Have something to say?

IBenTheBossI
07/27/2017 6:48 am
Level 46 : Master Architect
whats the command that says how much money you have?
1
MajorDOT
07/27/2017 7:13 am
Level 20 : Expert Goblin
/tellraw @p {"text":"Your current Cash is: ","extra":[{"score":{"name":"@p","objective":"Money"}}]}
That will display your current money value in the chat. You can change the text "Your current Cash is: "
to represent whatever cash type you use. For example:
/tellraw @p {"text":"Your current Rupies are: ","extra":[{"score":{"name":"@p","objective":"Money"}}]}
or if you want to change the wording you can use something like a Tellraw Generator. Here is one that works quite well: https://www.minecraftjson.com/
It generated this: /tellraw @p ["",{"text":"You currently have "},{"score":{"name":"@p","objective":"Money"}},{"text":" Rubies."}] which looks like: "You currently have 0 Rubies." ingame.
Just remember to put the spaces before an after text when using variables. Also when putting the scoreboard value you want to make the player @p and the objective "Money" and it's case sensitive so be sure to enter it exactly like that.
1
IBenTheBossI
07/27/2017 12:13 pm
Level 46 : Master Architect
I just made cupcakes with my mum and i am the same guy from youtube btw.

I have given you a diamond.
1

Welcome