Guest User

Minecraft 1.16+ Shop Tutorial Commands from TheTerrain

a guest
Sep 28th, 2020
8,888
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. *In CHAT*:
  2. /scoreboard objectives add Points dummy
  3. /give @a minecraft:command_block
  4.  
  5. *Successful Purchase:
  6. /execute as @p[scores={Points=5..}] run give @s minecraft:pufferfish 1
  7. /execute as @p[scores={Points=5..}] run tellraw @s {"text":"You have purchased this item!","color":"green"}
  8. /execute as @p[scores={Points=5..}] at @s run playsound minecraft:block.note_block.pling ambient @s ~ ~ ~ 5 2
  9. /scoreboard players remove @p[scores={Points=5..}] Points 5
  10.  
  11. *Not successful purchase:
  12. /execute as @p[scores={Points=..4}] run tellraw @s {"text":"You do not have enough Points to purchase this item!","color":"red"}
  13. /execute as @p[scores={Points=..4}] at @s run playsound minecraft:block.note_block.pling ambient @s ~ ~ ~ 5 0
  14.  
Advertisement
Add Comment
Please, Sign In to add comment