so i made it that when i place a spawner a text display gets spawned and it works but when removing the spawner the text display does not get killed
if 1 of player's tool is {tier1spawner}:
add event-block's location to {spawner::%player's uuid%::10::*}
set {spawner::%player's uuid%} to true
send "{@prefix} You placed a &aTier 1 Spawner&f." to player
play sound "entity.turtle.lay_egg" to player
spawn text display above event-block:
set {_tier1spawner} to text display
set display text of {_tier1spawner} to "&aTier 1 Spawner"
set display billboard of {_tier1spawner} to fixed
set display text background color of {_tier1spawner} to bukkitColor(0,0,0,0)
set display text opacity of {_tier1spawner} to 0
set display text shadowed of {_tier1spawner} to true
set display scale of {_tier1spawner} to vector(0.6,0.6,0.6)```
but killing the text display does not work ```kill {_tier1spawner}```
```on left click:
if {spawner::%player's uuid%::10::*} contains event-block's location:
remove event-block's location from {spawner::%player's uuid%::10::*}
play sound "entity.turtle.lay_egg" to player
set event-block to air
give player {tier1spawner}
kill {_tier1spawner}
if size of {spawner::%player's uuid%::10::*} <= 0:
set {spawner::%player's uuid%} to false
send "{@prefix} You removed a &aTier 1 Spawner&f." to player```
