I’m working on a custom tp pearl but I need to to be craftable only once in an entire server can you guys help? I’m really new to this.
this is the code so far just in case u need it :
this is the code so far just in case u need it :
code_language.skript:
on load:
register new shaped recipe for enderpearl named "&a&lTP PEARL" with lore "You can tp anywhere every 10 seconds" using beacon, dragon head, beacon, grass block, enderpearl, netherrack, beacon, elytra, beacon
command /tppearl <x>, <y>, <z>, <world>:
cooldown: 10 minutes
cooldown message: You are on cooldown
trigger:
if player's held item is enderpearl named "&a&lTP PEARL" with lore "You can tp anywhere every 10 seconds":
teleport player to location(arg-1, arg-2, arg-3, arg-4)
else:
send "&l&eYou do not have the Tp Pearl" to player
on rightclick:
if player's tool is an enderpearl named "&a&ITP PEARL" with lore "You can tp anywhere every 10 seconds":
cancel event