Skripts with more than 1 item dont work

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

ambaaaaaaaas

New Member
Feb 19, 2022
5
0
1
18
Basically, i made a skript that when you right click a fire charge, it shoots.
Everything with that works, except for 1 thing.

When i have the item in my hand, i right click it and it works BUT if i have more than 1 item, for example, 32 fire charges, it wont work and it doesnt matter the amount, if it's more than 1, it wont work.

Can someone help me? Do i need an addon? or maybe change the skript??? Here's the skript btw:

on right click:
if player's held item is fire charge named "&6&lFireball":
remove 1 fire charge named "&6&lFireball" from player's inventory
make player shoot a fireball at speed 1

 
Code:
on right click:
    if player's tool is fire charge named "&6&lFireball":
        set {_e} to player's tool
        remove 1 of {_e} from player's tool
        make player shoot a fireball at speed 1
 
Status
Not open for further replies.