Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Slot 1 Fuel
- -- Slot 2 Torch
- -- Slot 3 Chest
- -- Variables
- local check = 0
- local status = 0
- local distance = 0
- local distanceX = 0
- local distanceY = 0
- local distanceZ = 0
- local nextMine = 3
- local nextTorch = 8
- local itemFuel = turtle.getItemCount(1)
- local itemTorch = turtle.getItemCount(2)
- local itemChest = turtle.getItemCount(3)
- -- Checking
- local function Check()
- if itemFuel == 0 then
- print("Fuel: 0")
- else
- print("Fuel: ", turtle.getItemCount(1))
- check = check + 1
- end
- if itemTorch == 0 then
- print("Torch: 0")
- else
- print("Torch: ", turtle.getItemCount(1))
- check = check + 1
- end
- if itemChest == 0 then
- print("Chest: 0")
- else
- print("Chest: ", turtle.getItemCount(1))
- check = check + 1
- end
- end
- -- Fuel & Placing
- -- Mining
- -- Start
- Check()
- Print(check)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement