Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("ba")
- local c
- m = peripheral.wrap("left")
- m.clear()
- function fillTable()
- ba.setTable("Lava", lava, 3,13,7,9)
- ba.setTable("Water", water, 15,25,7,9)
- --ba.setTable("Fuel", fuel, 27,37,7,9)
- --ba.setTable("Empty1", empty ,15,25,15,17)
- --ba.setTable("Empty2", emptyy ,27,37,15,17)
- --ba.setTable("Empty3", emptyyy ,3,13,19,21)
- --ba.setTable("Empty4", emptyyyy ,15,25,19,21)
- --ba.setTable("Empty5", emptyyyyy ,27,37,19,21)
- ba.screen()
- end
- function getClick()
- event,side,x,y = os.pullEvent("monitor_touch")
- ba.checkxy(x,y)
- end
- local function addcol(col, side)
- rs.setBundledOutput(side, colors.combine(rs.getBundledOutput(side),col))
- end
- local function remcol(col, side)
- rs.setBundledOutput(side, colors.subtract(rs.getBundledOutput(side),col))
- end
- function getTank()
- addcol(colors.white, 'back')
- sleep(4)
- addcol(colors.pink, 'back')
- sleep(2)
- remcol(colors.white, 'back')
- remcol(colors.pink, 'back')
- end
- function lava()
- ba.flash("Lava")
- addcol(colors.yellow, 'back')
- sleep(1)
- addcol(colors.orange, 'back')
- sleep(2)
- getTank()
- sleep(1)
- remcol(colors.yellow, 'back')
- remcol(colors.orange, 'back')
- end
- function water()
- ba.flash("Water")
- end
- fillTable()
- ba.heading("Free liquid!")
- while true do
- getClick()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement