Need help with rightclick on skull

  • 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 comminuty!

    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.

Mathias15

Member
Oct 10, 2021
1
0
1
23
Hi, i can't get the thing i want to work... I want to make it possible to right click on a skull that is placed on the floor and then execute something.

This is what i have that doesn't work:

command /e:
trigger:
set {_head} to skull of ("Globe" parsed as an offline player)
give player {_head}
send "hej" to player

on right click:
player's held item is {_head}:
send "hej" to player

I don't get any errors, and it still doesn't work.
 
Hi, i can't get the thing i want to work... I want to make it possible to right click on a skull that is placed on the floor and then execute something.

This is what i have that doesn't work:

command /e:
trigger:
set {_head} to skull of ("Globe" parsed as an offline player)
give player {_head}
send "hej" to player

on right click:
player's held item is {_head}:
send "hej" to player

I don't get any errors, and it still doesn't work.
on right click with player head
name of tool is ""
 
Code:
on load:
 set {head1} to skull of ("Globe" parsed as an offline player)

command /e:
 trigger:
  give player {head1}
  send "hej" to player

on right click:
 if player's held item is {head1}:
  send "hej" to player


this should work
 
Status
Not open for further replies.