Jump to content

I have a auto compress script i got but have ni clue where to put it in my minehut server, help is appreciated!


Lezyfr

Recommended Posts

this is the code - 

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}

Link to comment
Share on other sites

1. Go to your servers file directory, and open the plugins folder 
2. Locate and open the skript folder
3. Open the "Scripts" folder that is within the skript folder
4. Create a new file and name it anything with you want, however add a .sk to the name. (example.sk) - then click save
5. Open the newly created .sk file, and begin skripting!

Once done, type /sk reload example.sk to apply the changes, as well as it will tell you if there is any errors.

12/10/22 - 4/29/24
[Mod] 4/29/24 - present

(If you need one of the things below, feel free to click on them.)
Appeal | Report | Support
image.gif.68338c74958f6ea949377c85338bda14.gif

Link to comment
Share on other sites

Posted (edited)

i did that and the code worked, but not as intended, i was wondering if anyone could fix this code so that all i need to do is get a compass name it and when it is in offhand it will compress every block in the game (that i choose), if anyone can fix this code and make it so i can just copy and paste it multiple times to add the new blocks and just have to change the block names etc -

on script load:
    while item named "Auto Compressor [T1]" is in offhand
        set {shinyoak wood} to shiny oak wood named "Compressed Oak"
   
every 1 ticks:
    loop players:
        if loop-player has 32 oak log:
            remove 32 oak log from loop-player's inventory
            give loop-player {shinyoak wood}

on script load:
    while item named "Auto Compressor [T1]"
        set {shinyoak wood2} to shiny oak wood named "Super Compressed Oak"
   
every 1 ticks:
    loop players:
        if loop-player has 32 "Compressed Oak"  :
            remove 32 "Compressed Oak" from loop-player's inventory
            give loop-player {shinyoak wood2}

Edited by Lezyfr
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...