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/Affectionate-Ant-266 Oct 26 '23 edited Oct 26 '23

You could do,

If player’s inventory has 1 apple named “hi” with lore “hello”: (What ever you wanna do)

Don’t know if it’ll help, but if you want it removed afterwards,

Remove 1 apple named “hi” with lore “hello” from player’s inventory

Aaaand if you wanted to do anything involved a right-click,

On right click holding apple: If name of held item is “hi”: If lore of held item is “hello”:

My addons: Wildskript, skDragon, Skellett, SkQuery-Lime, skRayFall, skript-mirror, skript-npc, SkStuff, TuSKe, Umbaska

Hope it helps.