Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- slot = 1
- heart = {}
- CDB = {}
- Core = {}
- tnt = {}
- while true do
- sleep(0,2)
- if turtle.getItemSpace() < 64 then
- numb = turtle.getItemDetail().count
- name = turtle.getItemDetail().name
- data = turtle.getItemDetail().damage
- else
- numb = 0
- name = "Empty"
- data = nil
- end
- turtle.select(slot)
- if name == "minecraft:tnt" then
- tnt[1] = slot-1
- tnt[2] = true
- end
- if name == "DraconicEvolution:draconium" and data == 2 then
- CDB[1] = slot-1
- CDB[2] = true
- end
- if name == "DraconicEvolution:draconicCore" and numb >= 16 then
- Core[1] = slot-1
- Core[2] = true
- end
- if name == "DraconicEvolution:dragonHeart" then
- heart[1] = slot-1
- heart[2] = true
- end
- slot = slot+1
- if slot > 16 then
- slot = 1
- tnt[1] = " "
- CDB[1] = " "
- Core[1] = " "
- heart[1] = " "
- tnt[2] = false
- CDB[2] = false
- Core[2] = false
- heart[2] = false
- end
- term.clear()
- term.setCursorPos(1,1)
- print("TnT Slot :")
- term.setCursorPos(11,1)
- print(tnt[1])
- term.setCursorPos(1,2)
- print("Charged Draconium Block Slot :")
- term.setCursorPos(31,2)
- print(CDB[1])
- term.setCursorPos(1, 3)
- print("Draconic Core Slot :")
- term.setCursorPos(21, 3)
- print(Core[1])
- term.setCursorPos(1,4)
- print("Dragon Heart Slot :")
- term.setCursorPos(21, 4)
- print(heart[1])
- ---------------
- if Core[2] == true and tnt[2] == true and CDB[2] == true and heart[2] == true then
- turtle.select(tnt[1])
- turtle.place()
- rs.setOutput("front", true)
- rs.setOutput("right", true)
- sleep(1)
- rs.setOutput("front", false)
- rs.setOutput("right", false)
- sleep(12)
- rs.setOutput("left", true)
- sleep(1)
- rs.setOutput("left", false)
- sleep(20)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement