Hello! I've only been using Skript for a little bit and I'm only slightly familiar with how it works. I've been attempting to create a way where the player is forced to perform a command when right-clicked. Only the skull has to have a specific value for the command to be performed when right-clicked.
For example:
on right click on bell:
cancel event
make player execute command "/open gui"
This obviously performs "/open gui" when clicked on, but I need something like
on right click on skull:
cancel event
make player execute command "/open gui"
value of skull {"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNzMxNTIyNWU1ZDhjMjljMWU1ODNiMTY2ZDE5Y2RjYWYwYjllMzgyZWNmMTQ3ZDVjYzRjMTYxNDcyYTk2YWY4In19fQ=="}
The command would only be performed if the skull was the correct texture, is there anyway this is possible?
For example:
on right click on bell:
cancel event
make player execute command "/open gui"
This obviously performs "/open gui" when clicked on, but I need something like
on right click on skull:
cancel event
make player execute command "/open gui"
value of skull {"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNzMxNTIyNWU1ZDhjMjljMWU1ODNiMTY2ZDE5Y2RjYWYwYjllMzgyZWNmMTQ3ZDVjYzRjMTYxNDcyYTk2YWY4In19fQ=="}
The command would only be performed if the skull was the correct texture, is there anyway this is possible?