If you dont understand your own skript i suggest altering it to your level to advance then grow to that not dive straight into the deep end you could also do
while event-block is (your gen block):
wait 35 seconds
if event-block is (your gen block):
drop (gen item) at event-block
#Add your place variables and what not on top