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

7 lines
568 B
Mcfunction

title @s[tag=emk-owns-nonbinary] actionbar "Selected nonbinary firework."
playsound minecraft:ui.button.click ambient @s[tag=emk-owns-nonbinary]
execute if score @s[tag=!emk-owns-nonbinary] emk-points matches 100.. at @s run function emk:shop/buy/nonbinary
title @s[tag=!emk-owns-nonbinary] 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-nonbinary] ~ ~ ~ 1 0
scoreboard players set @s[tag=emk-owns-nonbinary] emk-fw 4