Solved Help give error

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

MoT26

Member
Nov 24, 2022
2
0
1
23
Hello,
I am making a script to give an item with a name, a lore and a custom mode data and I get an error for which I can't find any solution. The error is shown below, thanks for your help.
minecraft version: 1.19.2
skript version: 2.7.0
addon: SkQuery-4.1.8
Code:
Line 3: (meuble.sk)
[13:18:07 INFO]: '1 of stick named "&eCle Plate" with lore "Utile afin de démonter des objets dit démontables." with cutom model data 2' can't be added to a player because the former is neither an item type, an inventory nor an experience point
[13:18:07 INFO]: Line: give 1 of stick named "&eCle Plate" with lore "Utile afin de démonter des objets dit démontables." with cutom model data 2 to player
[13:18:07 INFO]:
 
here is the fixed version, this may be correct or wrong

if it isn't still working, try removing "with custom model data 2"

give 1stick named "&eCle Plate" with lore "Utile afin de démonter des objets dit démontables." with custom model data 2 to player