Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local sides = require("sides")
- local component = require("component")
- sand=component.proxy("a64a2542-b1cc-49bd-bb43-39416c64c671")
- gravel=component.proxy("a473f7f7-9fc1-4950-be51-5d021e6b2475")
- function amount(compo,name)
- print(name .." amount is " .. compo.getStackInSlot(sides.east, 4).size)
- return compo.getStackInSlot(sides.east, 4).size
- end
- while true do
- if amount(sand, "Sand") > 1000 then
- print("sand extract on")
- else
- print("sand extract off")
- end
- if amount(gravel, "Gravel") > 1000 then
- print("gravel extract on")
- else
- print("gravel extract off")
- end
- os.sleep(5)
- end
- amount(sand)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement