Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Turtle = "turtle_20"
- OutChest = peripheral.wrap("minecraft:ironchest_iron_2")
- IronIngotChest = peripheral.wrap("projecte:condenser_mk2_27")
- CopperIngotChest = peripheral.wrap("projecte:condenser_mk2_28")
- RedstoneChest = peripheral.wrap("projecte:condenser_mk2_29")
- TinIngotChest = peripheral.wrap("projecte:condenser_mk2_30")
- GlassChest = peripheral.wrap("projecte:condenser_mk2_31")
- RubberChest = peripheral.wrap("minecraft:ender chest_5")
- RefinedIronChest = peripheral.wrap("minecraft:ender chest_6")
- CharcoalDustChest = peripheral.wrap("minecraft:ender chest_7")
- OverflowChest = peripheral.wrap("minecraft:ironchest_diamond_0")
- function DetectIfTurtleEmpty()
- restart = nein
- for a = 1,16 do
- b = turtle.getItemCount(a)
- if b >= 1 then
- restart = ja
- turtle.select(a)
- turtle.dropDown()
- end
- end
- if restart == ja then
- os.reboot()
- end
- end
- function DetectIfOutChestEmpty()
- for a = 1,54 do
- OutChest.pushItems(OverflowChest, a, 64)
- end
- end
- function Iron_Furnace()
- DetectIfTurtleEmpty()
- IronIngotChest.pushItems(Turtle, 80, 60, 01)
- IronIngotChest.pushItems(Turtle, 80, 60, 02)
- IronIngotChest.pushItems(Turtle, 80, 60, 03)
- IronIngotChest.pushItems(Turtle, 80, 60, 05)
- IronIngotChest.pushItems(Turtle, 80, 60, 07)
- IronIngotChest.pushItems(Turtle, 80, 60, 09)
- IronIngotChest.pushItems(Turtle, 80, 60, 10)
- IronIngotChest.pushItems(Turtle, 80, 60, 11)
- turtle.select(1)
- turtle.craft()
- OutChest.pullItems(Turtle, 01, 60, 18)
- print("Iron_Furnace")
- end
- function Copper_Cable()
- DetectIfTurtleEmpty()
- if Cable == 1 then
- c = 24
- d = 60
- elseif Cable == 2 then
- c = 24
- d = 60
- elseif Cable == 3 then
- c = 25
- d = 10
- end
- RubberChest.pushItems(Turtle, 01, d, 01)
- RubberChest.pushItems(Turtle, 01, d, 02)
- RubberChest.pushItems(Turtle, 01, d, 03)
- CopperIngotChest.pushItems(Turtle, 80, d, 05)
- CopperIngotChest.pushItems(Turtle, 80, d, 06)
- CopperIngotChest.pushItems(Turtle, 80, d, 07)
- RubberChest.pushItems(Turtle, 01, d, 09)
- RubberChest.pushItems(Turtle, 01, d, 10)
- RubberChest.pushItems(Turtle, 01, d, 11)
- turtle.select(1)
- turtle.craft()
- if Cable == 1 or Cable == 2 then
- for a = 1,5 do
- b = a + 18
- OutChest.pullItems(Turtle, a, 60, b)
- end
- for a = 1,6 do
- OutChest.pullItems(Turtle, a, 60, c)
- end
- elseif Cable == 3 then
- OutChest.pullItems(Turtle, 01, 60, c)
- end
- print("Copper_Cable_1")
- end
- function Electronic_Circuit()
- if Circuit == 1 then
- c = 26
- elseif Circuit == 2 then
- c = 27
- end
- DetectIfTurtleEmpty()
- OutChest.pushItems(Turtle, 19, 60, 01)
- OutChest.pushItems(Turtle, 20, 60, 02)
- OutChest.pushItems(Turtle, 21, 60, 03)
- RedstoneChest.pushItems(Turtle, 80, 60, 05)
- RefinedIronChest.pushItems(Turtle, 01, 60, 06)
- RedstoneChest.pushItems(Turtle, 80, 60, 07)
- OutChest.pushItems(Turtle, 22, 60, 09)
- OutChest.pushItems(Turtle, 23, 60, 10)
- OutChest.pushItems(Turtle, 24, 60, 11)
- turtle.select(1)
- turtle.craft()
- OutChest.pullItems(Turtle, 01, 60, c)
- print("Electronic_Circuit")
- end
- function Re_Battery()
- DetectIfTurtleEmpty()
- OutChest.pushItems(Turtle, 25, 60, 02)
- TinIngotChest.pushItems(Turtle, 80, 60, 05)
- RedstoneChest.pushItems(Turtle, 80, 60, 06)
- TinIngotChest.pushItems(Turtle, 80, 60, 07)
- TinIngotChest.pushItems(Turtle, 80, 60, 09)
- RedstoneChest.pushItems(Turtle, 80, 60, 10)
- TinIngotChest.pushItems(Turtle, 80, 60, 11)
- turtle.select(1)
- turtle.craft()
- OutChest.pullItems(Turtle, 01, 16, 10)
- OutChest.pullItems(Turtle, 02, 16, 11)
- OutChest.pullItems(Turtle, 03, 16, 12)
- OutChest.pullItems(Turtle, 04, 12, 13)
- print("Re_Battery")
- end
- function Generator()
- DetectIfTurtleEmpty()
- RefinedIronChest.pushItems(Turtle, 01, 60, 05)
- RefinedIronChest.pushItems(Turtle, 01, 60, 06)
- RefinedIronChest.pushItems(Turtle, 01, 60, 07)
- OutChest.pushItems(Turtle, 18, 60, 10)
- turtle.select(16)
- for a = 10,13 do
- OutChest.pushItems(Turtle, a, 16, 02)
- turtle.craft()
- OutChest.pullItems(Turtle, 16, 16, 14)
- end
- print("Generator")
- end
- function Solar_Panel()
- DetectIfTurtleEmpty()
- CharcoalDustChest.pushItems(Turtle, 01, 60, 01)
- GlassChest.pushItems(Turtle, 80, 60, 02)
- CharcoalDustChest.pushItems(Turtle, 01, 60, 03)
- GlassChest.pushItems(Turtle, 80, 60, 05)
- CharcoalDustChest.pushItems(Turtle, 01, 60, 06)
- GlassChest.pushItems(Turtle, 80, 60, 07)
- OutChest.pushItems(Turtle, 26, 60, 09)
- OutChest.pushItems(Turtle, 14, 60, 10)
- OutChest.pushItems(Turtle, 27, 60, 11)
- turtle.select(1)
- turtle.craft()
- turtle.dropUp()
- print("Solar_Panel")
- end
- Iron_Furnace()
- Cable = 1
- Copper_Cable()
- Circuit = 1
- Electronic_Circuit()
- Cable = 2
- Copper_Cable()
- Circuit = 2
- Electronic_Circuit()
- Cable = 3
- Copper_Cable()
- Re_Battery()
- Generator()
- Solar_Panel()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement