Jump to content

Auto Compressor not working


Baldtrests

Recommended Posts

i have a box server with an auto compressor item. it is supposed to turn the normal version of the items into a custom compressed version. however, it does not do this. this is the code:

every 0.25 seconds:
    loop players:
        if name of off hand item of loop-player is "&6Auto Compressor":
            if loop-player has 64 cobblestone named "Cobblestone":
                remove 64 cobblestone named "Cobblestone" from loop-player
                set {item} to chiseled stone bricks named "&7Compressed Stone"
                enchant {item} with mending
                give {item} to loop-player
            if loop-player has 64 oak log named "Oak Log":
                remove 64 oak log named "Oak Log" from loop-player
                set {item} to oak wood named "&7Compressed Wood"
                enchant {item} with mending
                give {item} to loop-player
            if loop-player has 64 coal named "Coal":
                remove 64 coal named "Coal" from loop-player
                set {item} to coal named "&7Compressed Coal"
                enchant {item} with mending
                give {item} to loop-player
            if loop-player has 64 gold ingot named "Gold Ingot":
                remove 64 gold ingot named "Gold Ingot" from loop-player
                set {item} to gold ingot named "&7Compressed Gold Ingot"
                enchant {item} with mending
                give {item} to loop-player
            if loop-player has 64 iron ingot named "Iron Ingot":
                remove 64 iron ingot named "Iron Ingot" from loop-player
                set {item} to iron ingot named "&7Compressed Iron Ingot"
                enchant {item} with mending
                give {item} to loop-player
            if loop-player has 64 nether quartz named "Nether Quartz":
                remove 64 nether quartz named "Nether Quartz" from loop-player
                set {item} to nether quartz named "&7Compressed Quartz"
                enchant {item} with mending
                give {item} to loop-player
            if loop-player has 64 diamond named "Diamond":
                remove 64 diamond named "Diamond" from loop-player
                set {item} to diamond named "Compressed Diamond"
                enchant {item} with mending
                give {item} to loop-player
            if loop-player has 64 emerald named "Emerald":
                remove 64 emerald named "Emerald" from loop-player
                set {item} to emerald named "&7Compressed Emerald"
                enchant {item} with mending
                give {item} to loop-player
            if loop-player has 64 netherite ingot named "Netherite Ingot":
                remove 64 netherite ingot named "Netherite Ingot" from loop-player
                set {item} to netherite ingot named "&7Compressed Netherite"
                enchant {item} with mending
                give {item} to loop-player

 

Link to comment
Share on other sites

  • 8 months later...

Please make sure that you aren't responding to posts that haven't been responded to in over a month. Thanks!

 

 

image.png.bc433d6489d70ad831075fe76809b993.png
 

Owner of Lifestealed, Labs, Encore, UNOfficially and Observed
 

OG [VIP] 12/26/20 - 10/27/2021
OG [PRO] 12/27/21 - 11/18/2022
OG [LEGEND] 11/18/2022 - 3/14/2023
[DEFAULT] 3/14/2023 - 5/8/2024

[MOD] 5/8/2024 - Present

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...