Kqleo Posted Friday at 10:08 PM Share Posted Friday at 10:08 PM 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 More sharing options...
Pryzmm Posted Friday at 10:43 PM Share Posted Friday at 10:43 PM 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 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 More sharing options...
Kqleo Posted 15 hours ago Author Share Posted 15 hours ago On 6/28/2024 at 3:43 PM, Pryzmm said: you should debug the code, check what {_a} and {_b} variables are via the "send" or "broadcast" effect I've tried to debug it and i haven't really gone anywhere to be honest. It keeps giving me the same results. I just want it to give me a oak log thats renamed and the enchantment unbreaking 1 isnt being shown. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now