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