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 our 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 Remove 1 item from item stack in players hand

Discussion in 'Skript' started by Gecky, Jun 14, 2019.

  1. G

    Gecky Member

    Joined:
    May 22, 2019
    Messages:
    12
    Likes Received:
    0
    How would I make it so when the player clicks on the head it will only remove 1 in a stack of heads?

    Code (Text):
    1. on rightclick holding a head:
    2.     if event-item's name is "test":
    3.         remove 1 of tool from player's held item <-- doesnt work
     
    #1 Gecky, Jun 14, 2019
    Last edited: Jun 14, 2019
  2. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    1,945
    Likes Received:
    133
    add a debug message to see if those conditions are even being met
     
  3. G

    Gecky Member

    Joined:
    May 22, 2019
    Messages:
    12
    Likes Received:
    0
    They are except for the removing of only 1 item.
    --- Double Post Merged, Jun 14, 2019, Original Post Date: Jun 14, 2019 ---
    bump
     
  4. Runakai1

    Runakai1 Well-Known Member

    Joined:
    Apr 27, 2018
    Messages:
    385
    Likes Received:
    20
    Either the conditionts don't return true or you're using some weird addon skript mix.

    try
    Code (Skript):
    1.  remove 1 of tool from tool
     
  5. G

    Gecky Member

    Joined:
    May 22, 2019
    Messages:
    12
    Likes Received:
    0
    For some reason it works when I am holding a single head in my hand, but not if there's any more than 1...? Any ideas?
     
  6. Runakai1

    Runakai1 Well-Known Member

    Joined:
    Apr 27, 2018
    Messages:
    385
    Likes Received:
    20
    Mc version?
     
  7. G

    Gecky Member

    Joined:
    May 22, 2019
    Messages:
    12
    Likes Received:
    0
    I had a weird version before, it works now that I updated. Thank you! Solved.
     
Loading...