Solved Remove 1 item from item stack in players hand

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

Gecky

Member
May 22, 2019
15
0
0
36
How would I make it so when the player clicks on the head it will only remove 1 in a stack of heads?

Code:
on rightclick holding a head:
    if event-item's name is "test":
        remove 1 of tool from player's held item <-- doesnt work
 
Last edited:
How would I make it so when the player clicks on the head it will only remove 1 in a stack of heads?

Code:
on rightclick holding a head:
    if event-item's name is "test":
        if player has enough space for 1 diamond sword:
            remove 1 of tool from player's held item <-- doesnt work
add a debug message to see if those conditions are even being met
 
Either the conditionts don't return true or you're using some weird addon skript mix.

try
code_language.skript:
 remove 1 of tool from tool
 
Either the conditionts don't return true or you're using some weird addon skript mix.

try
code_language.skript:
 remove 1 of tool from tool
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?
 
Status
Not open for further replies.