Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- warp = peripheral.wrap("left")
- p = peripheral.wrap("top")
- while true do
- if warp.get_energy_level()>99999999
- then rs.setOutput("bottom", false)
- os.sleep(1)
- else rs.setOutput("bottom", true)
- os.sleep(1)
- event, command, nick = os.pullEvent()
- if event=="chat_command" and command == "summon" then
- warp.set_mode(1)
- warp.summon_all()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment