114: Simple scoreboard shop [Minecraft Map Making]
Ep114: Making a simple shop so players can buy items.
Commands, builds and ideas for people making their own Minecraft maps.
Check out my collabs on Coppit's channel: https://www.youtube.com/c/CoppitJ
Join the server I play on and the Discord where I hang out.
Server IP: 51.81.246.145:25588
Discord: https://discord.gg/KNSmPWdnfG
The following commands are prefixed with three letters which represent the settings of the command block. E.g IUN: = Impulse Unconditional Needs_Redstone. These prefixes need to be removed if copying the commands.
Commands used: YouTube formatting may make some of these wrong. :)
Create an objective to store money:
IUN: scoreboard objectives add money dummy "Money"
Give the player some money:
IUN: scoreboard players add @p money 50
Remove some of the players money:
IUN: scoreboard players remove @p money 50
Reset the players money:
IUN: scoreboard players set @p money 0
Show the money objective on the sidebar
IUN: scoreboard objectives setdisplay sidebar money
Check if the player has enough money:
IUN: execute if entity @p[scores={money=10..}]
Remove the cost of the item:
CCA: scoreboard players remove @p money 10
Give the player the item:
CCA: give @p enchanted_golden_apple 1
Other Videos By Infernal Device
Other Statistics
Minecraft Statistics For Infernal Device
At present, Infernal Device has 184,447 views spread across 877 videos for Minecraft, accounting for over 10 days of watchable video on his channel. This is 94.82% of the total watchable video for Minecraft on Infernal Device's YouTube channel.