Code:
command /Eyes:
trigger:
summon zombie
set name of last spawned zombie to "&5Eye of Insanity"
set helmet of last spawned zombie to ("Robeeh" parsed as an offline player)'s skull named "&5Eye of Insanity"
apply potion of invisibility of tier 255 without particles to last spawned entity for 99999 seconds
apply potion of slowness of tier 255 without particles to spawned entity for 99999 seconds
apply potion of weakness of tier 255 without particles to spawned entity for 99999 seconds
apply potion of resistance of tier 3 without particles to spawned entity for 99999 seconds
set {eyes.%entity%} to true
play sound "ambient.soul_sand_valley.mood" with volume 15 and pitch 1
broadcast "&5Decay Within the Gaze of a God..."
if target entity of player is set:
if {eyes.%target%} is true:
wait 0.5 seconds
damage player by 1[CODE]
The idea of this is when a player looks at the mob it will deal damage to the player but for the life of me i cant figure it out