3 Simple Command Block Shop Designs (With Tutorials!) - Minecraft Java Command Block Tutorial
Описание
These shop designs work wherever you want in your creative world, and this inspiration/tutorial will (hopefully) guide you through making them wherever you want.
Timestamps:
0:00 - Intro
0:50 - Villager
2:16 - Button
4:50 - Chest
7:32 - Outro
Commands Used:
NOTE I made like a command generator for the button and chest because there are a lot of changes to make. You have to make a copy of the sheet and fill in the values, then copy the commands it generates. Hopefully it works, I've never done anything like it so there's a chance it won't.
https://docs.google.com/spreadsheets/d/1F5Ap6UGVDnHErtdHdanb8EEAqTLhwo-MdD69DgubPE4/edit?usp=sharing
Villager:
https://mcstacker.net/
Button:
Run these once:
/scoreboard objectives add money dummy
/gamerule commandBlockOutput false
In a repeating command block:
/execute as @a store result score @s money run clear @s diamond 0
Behind the button:
/execute if score @p money matches 1.. run clear @p diamond 1
/execute if score @p money matches 1.. run give @p golden_apple 1
Chest:
Run these once (yes I forgot to mention them in the video):
/scoreboard objectives add money dummy
/gamerule commandBlockOutput false
In the chain with the repeating command block:
/execute as @a store result score @s money run clear @s diamond 0
/execute unless block 328 22 -4 chest{Items:[{id:"minecraft:turtle_helmet"}]} if score @p money matches 5.. run clear @p diamond 5
/execute unless block 328 22 -4 chest{Items:[{id:"minecraft:turtle_helmet"}]} unless score @p money matches 5.. run clear @p minecraft:turtle_helmet 1
1.17+ - /item replace block 328 22 -4 container.13 with minecraft:turtle_helmet 1
1.13-1.16 - /replaceitem block 0 0 0 container.13 minecraft:turtle_helmet 1
Рекомендуемые видео



















