Jump to content

Auto Compressor Helpp


Kqleo

Recommended Posts

on mine:
    if player has 1 of minecart with chest named "&6Auto Compressor":
        set {_a} to amount of oak log in player's inventory
        if {_a} >= 16:
            set {_b} to round({_a} / 16)
            loop {_b} times:
                player has 16 oak log
                remove 16 oak log from player
                give 1 oak log of unbreaking 1 named "&x&5&D&3&B&1&9&lC&x&6&2&4&1&2&0&lo&x&6&7&4&7&2&7&lm&x&6&B&4&D&2&E&lp&x&7&0&5&3&3&5&lr&x&7&5&5&9&3&C&le&x&7&A&5&F&4&3&ls&x&7&E&6&4&4&B&ls&x&8&3&6&A&5&2&le&x&8&8&7&0&5&9&ld &x&8&D&7&6&6&0&lW&x&9&1&7&C&6&7&lo&x&9&6&8&2&6&E&lo&x&9&B&8&8&7&5&ld" to player

I was trying to have an item that u put in your personal inventory and that item compresses things. Im using this skript but its not really working how i want it to. It would compress an item but only giving u 1 and if you kept mining you would just stay at 1 of that compressed block. Im also trying to hide the enchantments when u receive the compressed block. Do you know why?

Link to comment
Share on other sites

34 minutes ago, Kqleo said:

on mine:
    if player has 1 of minecart with chest named "&6Auto Compressor":
        set {_a} to amount of oak log in player's inventory
        if {_a} >= 16:
            set {_b} to round({_a} / 16)
            loop {_b} times:
                player has 16 oak log
                remove 16 oak log from player
                give 1 oak log of unbreaking 1 named "&x&5&D&3&B&1&9&lC&x&6&2&4&1&2&0&lo&x&6&7&4&7&2&7&lm&x&6&B&4&D&2&E&lp&x&7&0&5&3&3&5&lr&x&7&5&5&9&3&C&le&x&7&A&5&F&4&3&ls&x&7&E&6&4&4&B&ls&x&8&3&6&A&5&2&le&x&8&8&7&0&5&9&ld &x&8&D&7&6&6&0&lW&x&9&1&7&C&6&7&lo&x&9&6&8&2&6&E&lo&x&9&B&8&8&7&5&ld" to player

I was trying to have an item that u put in your personal inventory and that item compresses things. Im using this skript but its not really working how i want it to. It would compress an item but only giving u 1 and if you kept mining you would just stay at 1 of that compressed block. Im also trying to hide the enchantments when u receive the compressed block. Do you know why?

you should debug the code, check what {_a} and {_b} variables are via the "send" or "broadcast" effect

 

 

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

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