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.
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
3989784
2



Have something to say?
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.
I have given you a diamond.