Ferruccioboss

Minecraft>MoonDoor

Jun 14th, 2015
325
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.33 KB | None | 0 0
  1. while true do
  2.         event, id, text = os.pullEvent("redstone")
  3.     valPlayer = redstone.getAnalogInput("bottom")
  4.     valOxygen = redstone.getInput("right")
  5.     if valPlayer >= 12 and valOxygen == true then
  6.         redstone.setOutput("top", true)
  7.     elseif valOxygen == false or valPlayer < 12 then
  8.         redstone.setOutput("top", false)
  9.     end
  10. end
Advertisement
Add Comment
Please, Sign In to add comment