Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x = 0
- a = 0
- b = 0
- c = 0
- d = 0
- e = 0
- f = 0
- side = "left"
- mon = peripheral.wrap(side)
- mon.setTextScale(1)
- mon.setCursorPos(1,1)
- mon.write("IRON INGOT COUNTER")
- mon.setCursorPos(1,2)
- mon.write("===================")
- while true do
- term.clear()
- term.setCursorPos(1,1)
- print("Depositing? Put iron in top left. Please enter your minecraft name.")
- term.setCursorPos(1,3)
- print("---------------------------------------")
- term.setCursorPos(1,9)
- print("---------------------------------------")
- term.setCursorPos(1,10)
- print("Adding non-iron ingots WILL break the system! Please play fairly.")
- term.setCursorPos(1,12)
- print("ANY ITEM in the last slot is a tip!")
- term.setCursorPos(1,5)
- input = read()
- if input == "3atmypwnage" then
- term.setCursorPos(1,6)
- print("Deposit or Withdrawal?:")
- term.setCursorPos(25,6)
- dow1 = read()
- if dow1 == "Withdrawal" then
- term.setCursorPos(1,7)
- print("Amount?: ")
- term.setCursorPos(10,7)
- wamount = read()
- x = x - wamount
- sleep(.5)
- mon.setCursorPos(14,4)
- mon.write(x)
- for i=1,wamount do
- redstone.setOutput("front",true)
- sleep(0.1)
- redstone.setOutput("front",false)
- sleep(0.1)
- end
- term.setCursorPos(16,7)
- print("WORKING. BE PATIENT!")
- sleep(4)
- end
- if dow1 == "Deposit" then
- x = x + turtle.getItemCount()
- term.setCursorPos(1,7)
- print(turtle.getItemCount())
- term.setCursorPos(4,7)
- print("diamond(s) added to the bank!")
- turtle.dropDown()
- mon.setCursorPos(1,4)
- mon.write("3atmypwnage:")
- mon.setCursorPos(14,4)
- mon.write(x)
- turtle.select(16)
- turtle.dropDown()
- turtle.select(1)
- sleep(7)
- end
- end
- if input == "GummiDude1" then
- term.setCursorPos(1,6)
- print("Deposit or Withdrawal?:")
- term.setCursorPos(25,6)
- dow2 = read()
- if dow2 == "Withdrawal" then
- term.setCursorPos(1,7)
- print("Amount?: ")
- term.setCursorPos(10,7)
- wamount = read()
- a = a - wamount
- sleep(.5)
- mon.setCursorPos(14,5)
- mon.write(a)
- for i=1,wamount do
- redstone.setOutput("front",true)
- sleep(0.1)
- redstone.setOutput("front",false)
- sleep(0.1)
- end
- term.setCursorPos(16,7)
- print("WORKING. BE PATIENT!")
- sleep(4)
- end
- if dow2 == "Deposit" then
- a = a + turtle.getItemCount()
- term.setCursorPos(1,7)
- print(turtle.getItemCount())
- term.setCursorPos(4,7)
- print("diamond(s) added to the bank!")
- turtle.dropDown()
- mon.setCursorPos(1,5)
- mon.write("GummiDude1")
- mon.setCursorPos(14,5)
- mon.write(a)
- turtle.select(16)
- turtle.dropDown()
- turtle.select(1)
- sleep(7)
- end
- end
- if input == "Dukenukum98" then
- term.setCursorPos(1,6)
- print("Deposit or Withdrawal?:")
- term.setCursorPos(25,6)
- dow3 = read()
- if dow3 == "Withdrawal" then
- term.setCursorPos(1,7)
- print("Amount?: ")
- term.setCursorPos(10,7)
- wamount = read()
- b = b - wamount
- sleep(.5)
- mon.setCursorPos(14,6)
- mon.write(b)
- for i=1,wamount do
- redstone.setOutput("front",true)
- sleep(0.1)
- redstone.setOutput("front",false)
- sleep(0.1)
- end
- term.setCursorPos(16,7)
- print("WORKING. BE PATIENT!")
- sleep(4)
- end
- end
- if dow3 == "Deposit" then
- b = b + turtle.getItemCount()
- term.setCursorPos(1,7)
- print(turtle.getItemCount())
- term.setCursorPos(4,7)
- print("diamond(s) added to the bank!")
- turtle.dropDown()
- mon.setCursorPos(1,6)
- mon.write("Dukenukum98")
- mon.setCursorPos(14,6)
- mon.write(b)
- turtle.select(16)
- turtle.dropDown()
- turtle.select(1)
- sleep(7)
- end
- if input == "SuperEnd123" then
- term.setCursorPos(1,6)
- print("Deposit or Withdrawal?:")
- term.setCursorPos(25,6)
- dow4 = read()
- if dow4 == "Withdrawal" then
- term.setCursorPos(1,7)
- print("Amount?: ")
- term.setCursorPos(10,7)
- wamount = read()
- c = c - wamount
- sleep(.5)
- mon.setCursorPos(14,7)
- mon.write(c)
- for i=1,wamount do
- redstone.setOutput("front",true)
- sleep(0.1)
- redstone.setOutput("front",false)
- sleep(0.1)
- end
- term.setCursorPos(16,7)
- print("WORKING. BE PATIENT!")
- sleep(4)
- end
- if dow4 == "Deposit" then
- c = c + turtle.getItemCount()
- term.setCursorPos(1,7)
- print(turtle.getItemCount())
- term.setCursorPos(4,7)
- print("diamond(s) added to the bank!")
- turtle.dropDown()
- mon.setCursorPos(1,7)
- mon.write("SuperEnd123:")
- mon.setCursorPos(14,7)
- mon.write(c)
- turtle.select(16)
- turtle.dropDown()
- turtle.select(1)
- sleep(7)
- end
- end
- if input == "L1qu1ds1n" then
- term.setCursorPos(1,6)
- print("Deposit or Withdrawal?:")
- term.setCursorPos(25,6)
- dow5 = read()
- if dow5 == "Withdrawal" then
- term.setCursorPos(1,7)
- print("Amount?: ")
- term.setCursorPos(10,7)
- wamount = read()
- d = d - wamount
- sleep(.5)
- mon.setCursorPos(14,8)
- mon.write(x)
- for i=1,wamount do
- redstone.setOutput("front",true)
- sleep(0.1)
- redstone.setOutput("front",false)
- sleep(0.1)
- end
- term.setCursorPos(16,7)
- print("WORKING. BE PATIENT!")
- sleep(4)
- end
- if dow5 == "Deposit" then
- d = d + turtle.getItemCount()
- term.setCursorPos(1,7)
- print(turtle.getItemCount())
- term.setCursorPos(4,7)
- print("diamond(s) added to the bank!")
- turtle.dropDown()
- mon.setCursorPos(1,8)
- mon.write("L1qu1ds1n:")
- mon.setCursorPos(14,8)
- mon.write(d)
- turtle.select(16)
- turtle.dropDown()
- turtle.select(1)
- sleep(7)
- end
- end
- if input == "BaZilMan501" then
- term.setCursorPos(1,6)
- print("Deposit or Withdrawal?:")
- term.setCursorPos(25,6)
- dow6 = read()
- if dow6 == "Withdrawal" then
- term.setCursorPos(1,7)
- print("Amount?: ")
- term.setCursorPos(10,7)
- wamount = read()
- e = e - wamount
- sleep(.5)
- mon.setCursorPos(14,9)
- mon.write(e)
- for i=1,wamount do
- redstone.setOutput("front",true)
- sleep(0.1)
- redstone.setOutput("front",false)
- sleep(0.1)
- end
- term.setCursorPos(16,7)
- print("WORKING. BE PATIENT!")
- sleep(4)
- end
- if dow6 == "Deposit" then
- e = e + turtle.getItemCount()
- term.setCursorPos(1,7)
- print(turtle.getItemCount())
- term.setCursorPos(4,7)
- print("diamond(s) added to the bank!")
- turtle.dropDown()
- mon.setCursorPos(1,9)
- mon.write("BaZilMan501:")
- mon.setCursorPos(14,9)
- mon.write(e)
- turtle.select(16)
- turtle.dropDown()
- turtle.select(1)
- sleep(7)
- end
- end
- if input == "subtract" then
- term.setCursorPos(1,6)
- print("Which Player?: ")
- term.setCursorPos(16,6)
- inputname = read()
- if inputname == "3atmypwnage" then
- term.setCursorPos(1,7)
- print("Amount?: ")
- term.setCursorPos(10,7)
- inputamount = read()
- x = x - inputamount
- mon.setCursorPos(14,4)
- mon.write(x)
- sleep(2)
- end
- if inputname == "GummiDude1" then
- term.setCursorPos(1,7)
- print("Amount?: ")
- term.setCursorPos(10,7)
- inputamount = read()
- a = a - inputamount
- mon.setCursorPos(14,5)
- mon.write(a)
- sleep(2)
- end
- if inputname == "Dukenukum98" then
- term.setCursorPos(1,7)
- print("Amount?: ")
- term.setCursorPos(10,7)
- inputamount = read()
- b = b - inputamount
- mon.setCursorPos(14,6)
- mon.write(b)
- sleep(2)
- end
- if inputname == "SuperEnd123" then
- term.setCursorPos(1,7)
- print("Amount?: ")
- term.setCursorPos(10,7)
- inputamount = read()
- c = c - inputamount
- mon.setCursorPos(14,7)
- mon.write(c)
- sleep(2)
- end
- if inputname == "L1qu1ds1n" then
- term.setCursorPos(1,7)
- print("Amount?: ")
- term.setCursorPos(10,7)
- inputamount = read()
- d = d - inputamount
- mon.setCursorPos(14,8)
- mon.write(d)
- sleep(2)
- end
- if inputname == "BaZilMan501" then
- term.setCursorPos(1,7)
- print("Amount?: ")
- term.setCursorPos(10,7)
- inputamount = read()
- e = e - inputamount
- mon.setCursorPos(14,9)
- mon.write(e)
- sleep(2)
- end
- end
- end
Add Comment
Please, Sign In to add comment