Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("I'm working! Hopefully...")
- local pop = 10
- local add = redstone.getInput("right")
- while true do
- function display(population)
- local mon = peripheral.wrap("left")
- mon.clear()
- mon.setCursorPos(1,1)
- mon.setTextScale(2)
- mon.write("Current villager population is: "..population)
- end
- print("func 1.")
- function light()
- redstone.setOutput("top", true)
- sleep(0.01)
- redstone.setOutput("top", false)
- end
- print("func 2.")
- if add==true then
- pop=pop+1
- print("add")
- light()
- display(pop)
- end
- print("if")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement