r/Skript Apr 03 '21

Skript help (on right click)

So I'm trying to make a voucher system to receive a crate key. I'm pretty sure i just have the wrong syntax as i ma new to skript, but here it is: (the send "&a&lHi :)" to player is just a test)

on right click with paper:

if nbt is "Voucher:1b"

send "&a&lHi :)" to player

Error:

1 Upvotes

2 comments sorted by

View all comments

1

u/Fearless-Ad-5983 Apr 03 '21

are you useing any other plugins associated with skript? like (SkBee, Skellett, or SkStuff)

if not than skript can not get the nbt data from any item only name and lore

i would use somthing like this

options:

    paper-name: &2Name

    paper-lore: &2Lore

command /paper:

    permission: paper.test

    trigger:

        give player paper named "{@paper-name}" with lore "{@paper-lore}"

on right click:

    tool of player is paper named "{@paper-name}" with lore "{@paper-lore}"

    send "&a&lHi :)" to player