#im trying to make it so when i place a gen and restart the server it still drops items, cuz when

1 messages · Page 1 of 1 (latest)

hot saffron
#

i restart the server the gens that have been placed before the restart dont spawn items anymore.

mystic talon
#

i believe you are using a while loop

#

change it to every x seconds

hot saffron
#

im using:

while event-block is hay bale:
drop 1 wheat
wait 10 seconds

#

everytime i try making a loop it does not work

mystic talon
#

every 10 seconds:
loop all blocks in world "world":
if loop-block is wheat:
drop 1 wheat at location of loop-block without velocity

hot saffron
#

it is not working help

#

well now it has no errors but drops no items (nvm was reloading the wrong skript)

#

@mystic talon you there?

mystic talon
#

i am here

#

send exact code

hot saffron
#
    loop all blocks in world "Void":
        if loop-block is hay bale:
            drop 1 wheat 1 meters above loop-block's location without velocity
            wait 10 seconds```
#

ur normal one did not work

#

so i changed some bit of stuff

mystic talon
#

i mean i used a workaround for this which does work 100%

#

i yeeted the placed block's location in a list variable and looped that

#

and dropped an item at the location

#

idk if you wanna use that

hot saffron
#

i used ur exact same one

#

it has an error

#

is there a required version?

mystic talon
#

no i think its just bad

hot saffron
#

or plugin?

mystic talon
#

i said i used a workaround wasnt sure, never used that loop

#

but removing the world would work

#

i believe

#

loop all blocks in "Void":

hot saffron
#

ooh now no erros

#

eh its not droping any items

#

do i restart the server?

#

can i make it as a function the put the function in the on place skript?

#

or does not work?

#

NO SHOT

#

I GOT IT TO WORK

#

ON MYSELF

#

LES GOOOOOOOOO