TovLenin

CompUYadra

Feb 27th, 2014
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. warp = peripheral.wrap("left")
  2. p = peripheral.wrap("top")
  3. while true do
  4. if warp.get_energy_level()>99999999
  5. then rs.setOutput("bottom", false)
  6. os.sleep(1)
  7. else rs.setOutput("bottom", true)
  8. os.sleep(1)
  9. event, command, nick = os.pullEvent()
  10. if event=="chat_command" and command == "summon" then
  11. warp.set_mode(1)
  12. warp.summon_all()
  13.  
  14. end
  15. end
Advertisement
Add Comment
Please, Sign In to add comment