Solved CustomItems plugin and give

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

Qurao

New Member
Jul 10, 2020
7
0
1
23
Hi I have a problem. I have Skript, CustomItems and Minecraft 1.16.3. I created a diamond nugget item. I am trying to issue it via Skript:
Code:
give diamond nugget to player 
and e.t.c.
It doesn't work, I've tried almost everything
 
I don't think something like this is possible, but I know a way, how to do the same thing, different.

First, create a temporary command/event command to set your item into a variable:
Code:
on command "/myitem":
    cancel event
    set {diamondnugget} to player's held item
Then, clear this command (so anyone won't be able to use it again) and enjoy using your variable!
Code:
give {diamondnugget} to player
Code:
give 36 of {diamondnugget} to player
 
Status
Not open for further replies.