Solved I was trying to make autocompress and i ran into a problem

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

BoxMiners

Member
Jul 19, 2022
47
0
6
18
Code:
command /autocompress:
    permission: mvp++
    permission message: &cError! You don't have permission to that command!
    trigger:
        if {acomp.%player%} is not set:
            set {acomp.%player%} to true
            send "&aToggled your autocompress"
        else if {acomp.%player%} is set:
            delete {acomp.%player%}
            send "&aToggled your autocompress"

every 1 seconds:
    loop all players:
        if {acomp.%loop-player%} is set:
            if loop-player has 16 oak logs:
                give loop-player 1 brown dye named "&7&lCompressed Wood Fragment" with lore "&a&lTrade in spawn"
                remove 16 oak logs from loop-player
            if loop-player has 16 cobblestone:
                give loop-player 1 grey dye named "&7&lCompressed Stone Fragment" with lore "&a&lTrade in spawn"
                remove 16 cobblestone from loop-player
            if loop-player has 16 iron ingots:
                give loop-player 1 white dye named "&f&lCompressed Iron Fragment" with lore "&a&lTrade in spawn"
                remove 16 iron ingots from loop-player
            if loop-player has 16 emeralds:
                give loop-player 1 lime dye named "&a&lCompressed Emerald Fragment" with lore "&a&lTrade in spawn"
                remove 16 emeralds from loop-player
            if loop-player has 16 gold ingots:
                give loop-player 1 yellow dye named "&e&lCompressed Gold Fragment" with lore "&a&lTrade in spawn"
                remove 16 gold ingots from loop-player
            if loop-player has 16 diamonds:
                give loop-player 1 light blue dye named "&b&lCompressed Diamond Fragment" with lore "&a&lTrade in spawn"
                remove 16 diamonds from loop-player
            if loop-player has 16 netherite ingots:
                give loop-player black dye named "&8&lCompressed Netherite Fragment" with lore "&a&lTrade in spawn"
                remove 16 netherite ingots from loop-player
            if loop-player has 16 packed ice:
                give loop-player 1 ice named "&b&lCompressed Ice Fragment" with lore "&a&lTrade in spawn"
                remove 16 packed ice from loop-player
            if loop-player has 16 netherrack:
                give loop-player 1 redstone dust named "&c&lCompressed Netherrack Fragment" with lore "&a&lTrade in spawn"
                remove 16 netherrack from loop-player
Hi. I was making auto compress but then this happend. I made the skript it reloded without any errors but. When i use /autocompress it says the text. But it doesnt convert the item
 
Status
Not open for further replies.