Advertisement
konalisp

cubebutton.lua

May 31st, 2015
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.21 KB | None | 0 0
  1. local function oc(state)
  2.     redstone.setOutput("back", state)
  3.     redstone.setOutput("front", state)
  4. end
  5.  
  6. while (true) do
  7.     oc(commands.exec("testforblock ~ ~3 ~ minecraft:sand"))
  8.     os.sleep(1)
  9. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement