Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local shield = peripheral.find("warpdriveForceFieldProjector")
- local state = true
- while true do
- os.sleep(0.5)
- if os.pullEvent("redstone") then
- if state == true then
- shield.enable(true)
- state = false
- else
- shield.enable(false)
- state = true
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement