Jump to content

Auto Compressor


Kqleo

Recommended Posts

I've asked alot for a skript for an Auto Compressor, and I've gotten much feedback and I still haven't gotten anywhere to be honest. I just want an auto compressor that if a player has a chest in their inventory named auto compressor, when player mines 16 wood they get wood that is enchanted with mending 1 (enchantment is hidden) that is called Compressed Wood. If anyone has the skript to something like that it would be helpful.

Link to comment
Share on other sites

13 minutes ago, Kqleo said:

I've asked alot for a skript for an Auto Compressor, and I've gotten much feedback and I still haven't gotten anywhere to be honest. I just want an auto compressor that if a player has a chest in their inventory named auto compressor, when player mines 16 wood they get wood that is enchanted with mending 1 (enchantment is hidden) that is called Compressed Wood. If anyone has the skript to something like that it would be helpful.

Please go to the marketplace for this; topic moved.

 

 

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

1 hour ago, gabinun said:

on script load:
    set {shinyoak wood} to shiny oak wood named "<##3C3005>&lc<##403206>&lo<##443406>&lm<##483607>&lp<##4B3808>&lr<##4F3A09>&le<##533C09>&ls<##573E0A>&ls<##5B3F0B>&le<##5F410B>&ld<##63430C>&l <##66450D>&lw<##6A470E>&lo<##6E490E>&lo<##724B0F>&ld"
   
every 1 ticks:
    loop players:
        if loop-player has 16 oak log:
            remove 16 oak log from loop-player's inventory
            give loop-player {shinyoak wood}
    

 

this 100% works I use and I even named the wood for you but you do need skrayfall plugin for the shiny part

 

I posted this in the post where you released this script, but: it's not really efficient to loop through all players every single tick, or even every second. I've never had to create a script like this, but I think that checking if the player has 16 oak logs when the player picks up an item would be much more efficient for what you're doing.

Preceding

Java & Kotlin Developer

image.png.a5242eed42a556669fac09e7187b61f1.png

image.png.022cd7123062b55fd91704851cb1f0b6.png

image.png.e5d23aba33b366e60a9276736c674901.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...