need help with on hologram touch

  • 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.

titustitus98

Member
Feb 19, 2018
47
0
6
25
Hi I am making a script where I made a hologram that when clicked gives a diamond pickaxe, but for some reason it is not working, so if anyone could point out to where the issue is it would be appreceated.
Code:
on hologram touch:
    if event-string is "pick":
        broadcast "Worked"
 
There you are.
Code:
command /holo:
    trigger:
        create holo object "&2Line" with id "holo.1" at block above player

on hologram touch:
    if event-string is "holo.1":
        give diamond pickaxe to player
 
Status
Not open for further replies.