Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SmelteryName = "back"
- MinAmount = 750
- RedstoneOut = "top"
- SleepTime = 5
- -- Code
- sm = peripheral.wrap(SmelteryName)
- while true do
- am = 0
- info = sm.getInfo()
- if info.contents ~= nil then
- am = info.contents.amount
- end
- print(am)
- if am >= MinAmount then
- redstone.setOutput(RedstoneOut, true)
- os.sleep(0.05)
- redstone.setOutput(RedstoneOut, false)
- os.sleep(SleepTime)
- end
- end
Add Comment
Please, Sign In to add comment