Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if fs.exists("counter.txt") == false then
- count = fs.open("counter.txt", "w")
- uum = 0
- stacks = math.floor(uum / 64)
- dc = math.floor(stacks / 54)
- count.writeLine(uum)
- count.writeLine(stacks)
- count.writeLine(dc)
- count.close()
- end
- count = fs.open("counter.txt", "r")
- uum = tonumber(count.readLine())
- stacks = tonumber(count.readLine())
- dc = tonumber(count.readLine())
- count.close()
- term.clear()
- term.setCursorPos(1,1)
- print("uum:"..uum..)
- print("stacks:"..stacks..)
- print("double chests"..dc..)
- while true do
- event = os.pullEvent()
- if event == "redstone" then
- rsInput = rs.getBundledInput("back")
- if colors.test(rsInput, colors.orange) == true then
- uum = uum + 1
- stacks = math.floor(uum / 64)
- dc = math.floor(stacks / 54)
- end
- count = fs.open("counter.txt", "w")
- count.writeLine(uum)
- count.writeLine(stacks)
- count.writeLine(dc)
- count.close()
- term.clear()
- term.setCursorPos(1,1)
- print("uum:"..uum..)
- print("stacks:"..stacks..)
- print("double chests"..dc..)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment