i am making a script that automaticly grabs iron out of chests.
Only problem i have is that iron gets refilled very fast and the script always takes the one refilled iron.
So my question: is there a way that it only grabs iron over 32? or only full stacks?
I'm not sure i understand what the problem is.., what do you want it to do?
SlotClick only clicks on the slot you specify, and only once... GetSlotItem returns the number of items through the optional third variable
IF(%&id% != "iron_ingot"); Log("It's not iron"); Stop; ENDIF;
IF(#amount < 32); Log("It's iron, but there's not enough of it"); Stop; ENDIF
Log("Looks like a bit of iron there")
Also .. is it possible to make a script run perfectly 1 block to the left or to the right?
Not really, since the only inputs you have are analog (movement key inputs), you have imperfect information (position rounded to a whole integer, or 1/10 if using the POS10 module, no information about speed), and there are hard-to.predict factors like friction/inertia, lag, and other external influences
Generally you can work around it, depending on what actual problem you're trying to solve