How to make a specific block display set to a variable disappear from all players
Part of code:
Part of code:
Java:
spawn block display at player
set blockdata of last spawned block display to cartography table
set {-medicalCart} to last spawned entity
send "&bSpawned medical carts display" to player
on join:
if {medicalquest::%uuid of player%} is not set:
set {medicalquest::%uuid of player%} to false
make {-medicalCart} disappear from player
on right click:
if name of target is "CD_Quests":
if {medicalquest::%uuid of player%} is false:
send "{@prefix} {@color}Accepted CD Quest" to player
set {medicalquest::%uuid of player%} to true
apply glowing to {-medicalCart}
make {-medicalCart} disappear from all players