Right Click on Skull with a Specific Value.

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

LimmaBeanz

New Member
May 16, 2021
5
0
1
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?
 
Status
Not open for further replies.