Solved Setting Tool to item amount of a variable

  • 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 community!

    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!

Aug 8, 2021
42
0
6
So I made this code:

Code:
on right click:
    if the player's held item is a wooden hoe named "&6Pistol":

        remove 1 from {pistolchamber.%player%}
        set the player's tool to {pistolchamber.%player%} wooden hoes named "&6Pistol"
        damage the target entity by 4

And I was wondering how I could set my tool to as many items as '{pistolchamber.%player%}'
That line gives an error so please fix it. Thanks :emoji_slight_smile:.


ok i fixed it
 
Last edited: