So I have a mob called a "Gatekeeper" that drops a "Gatekeeper Token" that teleports you to the location 23 48 3, in the nether. Only problem is that I accidentally deleted the correct skript, and I can't figure it out. Somebody help please, this is what I have.
on death:
if display name of victim is "Gatekeeper":
set {dc} to (random integer between 0 and 25)
cancel drops
give attacker 1 of iron nugget of mending 1 with hidden enchantments named "&7Gatekeeper Token"
give attacker (random integer between 0 and 2) of bone named "&7Ancient Bone"
if {dc} is 1:
give attacker 1 wither skeleton skull
on rightclick with iron nugget:
name of player's tool is "&7Gatekeeper Token"
remove 1 of player's held item from player
#//execute in minecraft:the_nether run tp 23 48 3