MegiRicky

pumpM144.lua

Sep 21st, 2024
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. local engine = peripheral.wrap("front")
  2. local left = peripheral.wrap("left")
  3. local right = peripheral.find("Create_RotationSpeedController")
  4. local suspensionMotor = peripheral.find("electric_motor")
  5.  
  6. local function pullFuel()
  7. while true do
  8. engine.pullFluid("back",20,"createdieselgenerators:biodiesel")
  9. print("fuelPulled")
  10. sleep(1)
  11. end
  12. end
  13.  
  14. parallel.waitForAny(
  15. pullFuel
  16. )
Advertisement
Add Comment
Please, Sign In to add comment