TheKingElessar

Live

Jul 6th, 2020
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.84 KB | None | 0 0
  1. shell.run("label", "set", "Lenny")
  2.  
  3. os.loadAPI("WorldAPI")
  4. os.loadAPI("MovementAPI")
  5. os.loadAPI("ItemsAPI")
  6.  
  7. term.clear()
  8.  
  9. -- Common program
  10. function DrawDisplay()
  11. term.clear()
  12. print("Mood: ", "Bad go away dexter")
  13. if(not (ItemsAPI.health <= 0)) then
  14. print("Health: ", ItemsAPI.health)
  15. end
  16. end
  17.  
  18. function Reset()
  19. WorldAPI.Reset()
  20. ItemsAPI.Reset()
  21. end
  22.  
  23. function Tick()
  24. ItemsAPI.CheckForItems()
  25. MovementAPI.DetermineMovement()
  26. DrawDisplay()
  27. Reset()
  28. end
  29.  
  30. while true do
  31. Tick()
  32.  
  33. if(ItemsAPI.health <= 0) then
  34. print("He has killed me, mother")
  35. break
  36. end
  37. end
Add Comment
Please, Sign In to add comment