#auto compressor not work
1 messages · Page 1 of 1 (latest)
in what waay is it not working?
error?
or just not functioning as intented
im pretty sure it doesnt give anymore oak wood because the compressed oak wood is still oak wood
after it gives 1 compressed wood it doesnt give anymore
im pretty sure it doesnt give anymore oak wood because the compressed oak wood is still oak wood
your checking if player has 64 oakwood
thaats checking if it is exaactly 64
which it wont be you have 65 oak wood
because you have the compressed oak
you need to check if its over or equl to 64
so remove the "plaayer hs 64 ok wood"
and wht to write then?
Oak wood named “xyz”?
just remove that lien
i think it will work then
dont replace it with anything
you already know that they have over 64 oak wood
ok leemme try
why round() not floor()??
no idea idk what that means
doesnt
i tried this: i took 3 stacks of wood and i breaked block and got only 1 compressed
i should have got 3
did you lose all the wood?
yeah
thats because
the compressed oak
is still oak
make it like concrete powder instead or something
floor removes the decimals, that way you only get the number of full stacks they have
^ use plain ...
alright
do i change it to floor?
now it works thank you
yes change it to floor
thank you s much
@long marsh @hot drum can someone of you please teach how to use functions
what do i write to make this a function?
if player has brown dye in inventory:
set {_a} to amount of oak wood in player's inventory
if {_a} >= 64:
set {_b} to floor({_a} / 64)
loop {_b} times:
remove 64 oak wood from player
give 1 oak slab named "&e&lCompressed Wood" to player```
why do you want it to be a function?
just to make it quicker
a function wont be any quicker
fr?
yeah
so like you want it to make it so you just have an input and thats what it compresses?
wdym
i just want to write all functions on pickup
so do i just do for example like this::
if player has brown dye in inventory:
set {_a} to amount of oak wood in player's inventory
if {_a} >= 64:
set {_b} to floor({_a} / 64)
loop {_b} times:
remove 64 oak wood from player
give 1 oak slab named "&e&lCompressed Wood" to player
if player has blue dye in inventory:
set {_a} to amount of diamond in player's inventory
if {_a} >= 64:
set {_b} to floor({_a} / 64)
loop {_b} times:
remove 64 diamond from player
give 1 diamond block named "&e&ldiamond block" to player```
sure
okey