on death of enderman:
if event-entity's name is set:
set {num.%attacker%} to a random integer between 0 and 6
if {num.%attacker%} is equal to 1:
drop a leather boots of protection 4 at event-location
else:
if {num.%attacker%} is equal to 2:
drop a diamond boots of protection 4 at event-location
else:
if {num.%attacker%} is equal to 3:
drop an iron boots of protection 4 at event-location
else:
if {num.%attacker%} is equal to 4:
drop a gold boots of protection 4 at event-location
else:
chance of 10%:
spawn an enderman at event-location
set last spawned enderman's max health to 500
set last spawned enderman's name to "&9&lEnder kral"
on damage:
attacker is an enderman:
attacker's name is "&9&lEnder kral":
chance of 40:
set damage to 12
push the victim upwards at speed 1
else:
set damage to 6