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.

How to change item amount

Discussion in 'Skript' started by Diableuh, Nov 25, 2022.

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

    Diableuh Member

    Joined:
    May 26, 2017
    Messages:
    1
    Likes Received:
    0
    Hi,

    I want do that but it doesn't work :

    Code (Text):
    1. set {_drop} to player's tool
    2. set {_drop} item amount to 1
    3. drop {_drop} 1 block up event-block without velocity
    If the player clicks with a stack of items I only want to get one
     
  2. Pierrelasse

    Pierrelasse Active Member

    Joined:
    Apr 20, 2022
    Messages:
    116
    Likes Received:
    4
    {_drop}'s item amount
     
  3. gangula

    gangula Member

    Joined:
    Jul 28, 2021
    Messages:
    15
    Likes Received:
    0
    Use: (amount) of {_drop}

    Code (Text):
    1. set {_drop} to player's tool
    2. drop 1 of {_drop} 1 block up event-block without velocity
     
  4. Pierrelasse

    Pierrelasse Active Member

    Joined:
    Apr 20, 2022
    Messages:
    116
    Likes Received:
    4
    drop 1 of player's tool above event-block without velocity

    ehhehehehehe
     
  5. gangula

    gangula Member

    Joined:
    Jul 28, 2021
    Messages:
    15
    Likes Received:
    0
    ))
     
Thread Status:
Not open for further replies.

Share This Page

Loading...