Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local cable_side = "back"
- local cable_color = colors.black
- function RunStuff()
- side = "top"
- text = "Welcome to Jonas mansion!"
- mon = peripheral.wrap(side)
- mon.setTextScale(2)
- mon.setCursorPos(4,5)
- mon.write(text)
- end
- function ListenRedstone()
- while true end
- local state = colors.test( redstone.getBundledInput( cable_side ), cable_color )
- if ( state ) then
- RunStuff()
- end
- sleep( 0.2 )
- end
- end
- ListenRedstone()
Advertisement
Add Comment
Please, Sign In to add comment