#Compressor

1 messages · Page 1 of 1 (latest)

green imp
#

you need to make the coal in the code the same as the one that you are dropping

#

like exactly the same, if you dont know exactly what the tags are just make a command that stores it in a variable and use that variable

rose flint
#

he isn't wrong, coal named "Coal" vs it taking away 64 non-named coal

green imp
#

you should really put in some effort to actually learn about what youre trying to do instead of opening a bunch of help threads here and getting people to do it for you

#

do you see how the coal you're checking for is different from the coal that youre trying to remove

#

send your updated code please

#

can you send it in text form so i can mess around with it

#

items are weird sometimes

#

well i cant mess around with it if you dont send it KEKWlaugh

#

yep

#

how many of them are in your offhand

#

its working fine for me

#

are you sure that is the exact name of your coal

#

send an ss please

#

thats just regular coal dude

#

you dont need the named

#

so you want only the ones without names to be used up?

rose flint
#

then you need to remove the "named" from the coal

green imp
#

no because that will also use his named coal

#

i dont think its possible

#

you might need to add a name to the regular coal too

#

no that wont work

#

wait you mean in the name?

#

yeah that will work

#

if you name it "&fCoal" it will look the same

#

and you can use that in the code

#

did you make the coal ore drop coal that is actually named "&fCoal"

#

then you need to do that

junior lynx
#

you don't need to name the regular coal, just use plain coal and it'll exclude all the custom coal items you have

green imp
#

thats cool

junior lynx
#

if I understood your issue correctly that is

green imp
#

yeah do that

junior lynx
junior lynx
#

Nope, it's vanilla skript

green imp
wind sandal
#

Has %itemtype%

junior lynx
#

It works for me

green imp
#

of worked

#
    if player is holding heart of the sea named "&bCoal Compressor" in off hand:
        if player has 64 of plain coal in their inventory:
            remove 64 of plain coal from player
            give coal block of unbreaking 1 with lore "&7(Contain 64 Coal)" with all flags hidden named "&c&lCompressed Coal" to player```
#

of plain

#

for some reason it doesnt work without the of

wind sandal
green imp