Advertisement
Guest User

startup

a guest
Mar 20th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.84 KB | None | 0 0
  1. while true do
  2.     redstone.setOutput("back", redstone.getInput("front"))
  3.    
  4.     rightSide = redstone.getInput("right")
  5.     frontSide = redstone.getInput("front")
  6.    
  7.     fillCommand1 = "/fill -484 68 252 -484 68 252 minecraft:"
  8.     fillCommand2 = "/fill -484 68 253 -484 68 253 minecraft:"
  9.    
  10.     if not rightSide then
  11.         print("Activating waterfall...")
  12.         success, output = commands.exec(fillCommand1 .. "flowing_lava")
  13.         success, output = commands.exec(fillCommand2 .. "flowing_lava")
  14.     else
  15.         print("Deactivating waterfall...")
  16.         success, output = commands.exec(fillCommand1 .. "air")
  17.         success, output = commands.exec(fillCommand2 .. "air")
  18.        
  19.         print("Sleeping for 60 seconds.")
  20.         rs.setOutput("back", rs.getInput("front"))
  21.         sleep(60)
  22.     end
  23.      
  24.     sleep(3)
  25. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement