1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved CustomItems plugin and give

Discussion in 'Skript' started by Qurao, Nov 1, 2020.

Thread Status:
Not open for further replies.
  1. Qurao

    Qurao New Member

    Joined:
    Jul 10, 2020
    Messages:
    7
    Likes Received:
    0
    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 (Text):
    1. give diamond nugget to player
    2. and e.t.c.
    It doesn't work, I've tried almost everything
     
  2. Best Answer:
    Post #2 by Nikd0, Nov 2, 2020
  3. Nikd0

    Nikd0 Active Member

    Joined:
    May 30, 2020
    Messages:
    204
    Likes Received:
    19
    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 (Text):
    1. on command "/myitem":
    2.     cancel event
    3.     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 (Text):
    1. give {diamondnugget} to player
    Code (Text):
    1. give 36 of {diamondnugget} to player
     
    • Agree Agree x 1
Thread Status:
Not open for further replies.

Share This Page

Loading...