Solved virtual spawners

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

zaved

Member
Sep 19, 2022
18
0
1
Code:
if arg 1 is "deposit":
            loop all items in player's inventory:
                if player has arg-2 of mob spawner in his inventory:
                    add arg-2 to {spawner.%player%}
                    remove arg-2 of mob spawner from player's inventory
                    send "&6&lHydopia&c&lAMS &8» &7You deposited &e%arg-2%&b Spawners&8."
                    stop

hey why doesnt work that? Im trying to fix right now, that you need to have the amount of spawners in your inventory, which you wanna deposit to your virtual spawners