minerace/data/emk/functions/shop/sign/trans.mcfunction

7 lines
536 B
Mcfunction

title @s[tag=emk-owns-trans] actionbar "Selected trans firework."
playsound minecraft:ui.button.click ambient @s[tag=emk-owns-trans]
execute if score @s[tag=!emk-owns-trans] emk-points matches 100.. at @s run function emk:shop/buy/trans
title @s[tag=!emk-owns-trans] actionbar [{"text":"You only have ","color":"#ff2222"},{"score":{"name":"*","objective":"emk-points"}}," of the 100 required points."]
playsound minecraft:entity.arrow.hit ambient @s[tag=!emk-owns-trans] ~ ~ ~ 1 0
scoreboard players set @s[tag=emk-owns-trans] emk-fw 3