delay = 0.5
while true do
  local event, p1 = os.pullEvent("turtle_inventory")
  if turtle.getItemCount(1) then
    turtle.placeDown()
    turtle.drop()  
  else
    
  end
end
