Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- redstone.setOutput("back", redstone.getInput("front"))
- rightSide = redstone.getInput("right")
- frontSide = redstone.getInput("front")
- fillCommand1 = "/fill -484 68 252 -484 68 252 minecraft:"
- fillCommand2 = "/fill -484 68 253 -484 68 253 minecraft:"
- if not rightSide then
- print("Activating waterfall...")
- success, output = commands.exec(fillCommand1 .. "flowing_lava")
- success, output = commands.exec(fillCommand2 .. "flowing_lava")
- else
- print("Deactivating waterfall...")
- success, output = commands.exec(fillCommand1 .. "air")
- success, output = commands.exec(fillCommand2 .. "air")
- print("Sleeping for 60 seconds.")
- rs.setOutput("back", rs.getInput("front"))
- sleep(60)
- end
- sleep(3)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement