`command zombie:
permission: *
trigger:
spawn zombie at player's location
equip last spawned zombie with leather cap of protection 6
equip last spawned zombie with leather tunic of protection 6
equip last spawned zombie with leather leggings of protection 6
equip last spawned zombie with leather boots of protection 6
give {zomb} to last spawned zombie
if {zomb} is set:
give {zomb} to the last spawned zombie
else:
broadcast "No item has been set for the zombie."
command /setzomb <text>:
permission: op
trigger:
if arg-1 is "zomb":
set {zomb} to player's tool
broadcast "test"`
AND
on rightclick with amethyst shard: if event-item's name is "&5Speed gem": cancel event if {beam.lastused.%player's uuid%} is not set: set {beam.lastused.%player's uuid%} to 1 send "wait 60s b5 using gem again" to player if {beam.lastused.%player's uuid%} = 1: set {beam.lastused.%player's uuid%} to 0 wait 60 seconds #Cooldown time add 1 to {beam.lastused.%player's uuid%} apply swiftness 2 to player for 5 seconds