114: Simple scoreboard shop [Minecraft Map Making]

Опубликовано: 01 Май 2026
на канале: Infernal Device
305
24

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:    / coppitj  

Join the server I play on and the Discord where I hang out.
Server IP: 51.81.246.145:25588
Discord:   / discord  

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