#Auto Compressor Issue

1 messages · Page 1 of 1 (latest)

red trail
#
 every 5 ticks:
   loop all players:
        if loop-player's inventory contains 64 raw copper:
            remove 64 raw copper from loop-player
            give loop-player a copper ingot of mending with nbt "{HideFlags:61}" named        "&x&f&b&a&3&2&eC&x&f&0&a&9&2&bo&x&e&5&a&f&2&9m&x&d&a&b&5&2&6p&x&c&e&b&b&2&3r&x&c&3&c&1&2&0e&x&b&8&c&7&1&es&x&a&d&c&d&1&bs&x&a&2&d&3&1&8e&x&9&7&d&9&1&5d &x&8&c&d&f&1&3C&x&8&1&e&5&1&0o&x&7&5&e&b&0&dp&x&6&a&f&1&0&ap&x&5&f&f&7&0&8e&x&5&4&f&d&0&5r" 

?

tribal hornet
#

tried

tawny wharf
#

Never do a loop in a time frame

#

Cause lag is gonna be real

#

Also with nbt compound of nbt

jovial verge
#

Isn’t it from?

#

nbt compound from nbt

#

Also just use on mine: or something alike

tribal hornet
#

on mine is even laggier

#

wait now I am confused

peak vessel
#

Maby you can use
set {_a} to amount of raw copper in loop-player's inventory

#

Than look of a is greater than 64

tribal hornet
#

wym

#
 loop all players:
  if loop-player's inventory contains 64 raw copper:
   remove 64 raw copper from loop-player
   give loop-player a copper ingot of mending with nbt compound from nbt "{HideFlags:61}" named       "&x&f&b&a&3&2&eC&x&f&0&a&9&2&bo&x&e&5&a&f&2&9m&x&d&a&b&5&2&6p&x&c&e&b&b&2&3r&x&c&3&c&1&2&0e&x&b&8&c&7&1&es&x&a&d&c&d&1&bs&x&a&2&d&3&1&8e&x&9&7&d&9&1&5d &x&8&c&d&f&1&3C&x&8&1&e&5&1&0o&x&7&5&e&b&0&dp&x&6&a&f&1&0&ap&x&5&f&f&7&0&8e&x&5&4&f&d&0&5r"```  Doesnt Work
peak vessel
#

In this skript instead of if loop players inventory contains 64 raw copper

#

And it needs to be with nbt compound

tribal hornet
#

I cant understand what you mean

#

can u put it in the skript

peak vessel
#
   loop all players:
        if loop-player's inventory contains 64 raw copper:
            remove 64 raw copper from loop-player
            give player a copper ingot of mending with nbt compound  "{HideFlags:61}" named        "&x&f&b&a&3&2&eC&x&f&0&a&9&2&bo&x&e&5&a&f&2&9m&x&d&a&b&5&2&6p&x&c&e&b&b&2&3r&x&c&3&c&1&2&0e&x&b&8&c&7&1&es&x&a&d&c&d&1&bs&x&a&2&d&3&1&8e&x&9&7&d&9&1&5d &x&8&c&d&f&1&3C&x&8&1&e&5&1&0o&x&7&5&e&b&0&dp&x&6&a&f&1&0&ap&x&5&f&f&7&0&8e&x&5&4&f&d&0&5r"                                                                                  
#

Or it needs to be HideFlag:1b

frail laurel
#

no

frail laurel
#

for auto compressors you can literally use on pick up, so much easier and efficient

jovial verge
#

Just wondering

#

Like would that trigger if you gave a player an item with skript

frail laurel
#

uh no i dont think so

#

only picking up off the ground

#

so i guess the best option would be to make a function, that way you can use in inv click for when peopl take things from chests too

jovial verge
#

Makes sense

frail laurel
#

or activat it with a command

jovial verge
#

Yeah

warm pumice
frail laurel
#

depends. if only 2 players it might be manageable

warm pumice
#

In every tick event

#

I think code itself can be laggy, not loop

frail laurel
#

it depends on what you're running, but generally avoid looping all players in a periodical

warm pumice
tribal hornet
frail laurel
#

Im not kicking you out on your own

#

We are here to walk you through the issue, not do it for you

red trail
#

also the guy provided eligible skript

#

he just didnt understand how nbt works

#

thats literally it

#

btw im not even the guy that posted it

#

the original message of the thread was deleted

tribal hornet
#

I needed an example because I was confused

#

I was the one that posted it

#

btw

#

Idk how to delete the post