Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- *In CHAT*:
- /scoreboard objectives add Points dummy
- /give @a minecraft:command_block
- *Successful Purchase:
- /execute as @p[scores={Points=5..}] run give @s minecraft:pufferfish 1
- /execute as @p[scores={Points=5..}] run tellraw @s {"text":"You have purchased this item!","color":"green"}
- /execute as @p[scores={Points=5..}] at @s run playsound minecraft:block.note_block.pling ambient @s ~ ~ ~ 5 2
- /scoreboard players remove @p[scores={Points=5..}] Points 5
- *Not successful purchase:
- /execute as @p[scores={Points=..4}] run tellraw @s {"text":"You do not have enough Points to purchase this item!","color":"red"}
- /execute as @p[scores={Points=..4}] at @s run playsound minecraft:block.note_block.pling ambient @s ~ ~ ~ 5 0
Advertisement
Add Comment
Please, Sign In to add comment