Destroying lamp when player is poisoned and hunted by entitys system

I made a system when a player bought a soda in wending machine it will poison player.So while he poisoned they will hunt him and he will need to be in a safe zone asap!So entitys invisible for other players.But i made a system that will detect if entity is near.So it will destroy the lamp as a signal:

Hope you will rate that!

2 Likes