Solved Detect items

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

Shadow501pl

Active Member
Dec 19, 2020
62
2
8
So im trying to find a result for a long time...
The problem is that i don't know how to use nbt and i want to still have custom abilities with items without using for example:
Code:
on right click:
  if player's held item is diamond sword named "&aExample" with lore "" and "&a&lUNCOMMON"
I use 1.16.4 skript. Is there anything that can identify an item without that. (i want to add custom enchantments)
[doublepost=1617791071,1617742793][/doublepost]bump
[doublepost=1617884232][/doublepost]I just found out how:
Code:
give player 1 diamond sword with custom model data 10
on right click:
set {_model} to custom model data of player's tool
if {_model} is 10:
broadcast "&aWORKS!"
 
Status
Not open for further replies.