Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Cobble = 1
- Coal = 1
- Iron = 1
- Redstone = 1
- Lapis = 1
- Gold = 1
- Diamond = 1
- Emerald = 1
- local function post(one)
- http.post(
- "http://zaidal.olympe.in/Turtle/Cobble.php",
- "one="..textutils.urlEncode(tostring(one))
- )
- end
- local function post2(two)
- http.post(
- "http://zaidal.olympe.in/Turtle/Coal.php",
- "two="..textutils.urlEncode(tostring(two))
- )
- end
- local function post3(three)
- http.post(
- "http://zaidal.olympe.in/Turtle/Iron.php",
- "three="..textutils.urlEncode(tostring(three))
- )
- end
- local function post4(four)
- http.post(
- "http://zaidal.olympe.in/Turtle/Redstone.php",
- "four="..textutils.urlEncode(tostring(four))
- )
- end
- local function post5(five)
- http.post(
- "http://zaidal.olympe.in/Turtle/Lapis.php",
- "five="..textutils.urlEncode(tostring(five))
- )
- end
- local function post6(six)
- http.post(
- "http://zaidal.olympe.in/Turtle/Gold.php",
- "six="..textutils.urlEncode(tostring(six))
- )
- end
- local function post7(seven)
- http.post(
- "http://zaidal.olympe.in/Turtle/Diamond.php",
- "seven="..textutils.urlEncode(tostring(seven))
- )
- end
- local function post8(eight)
- http.post(
- "http://zaidal.olympe.in/Turtle/Emerald.php",
- "eight="..textutils.urlEncode(tostring(eight))
- )
- end
- function Minage()
- turtle.dig()
- turtle.forward()
- end
- function Stone()
- local status,info = turtle.inspect()
- if not status then
- end
- print(info.name)
- if(info.name == "minecraft:stone")then
- post(Cobble)
- end
- end
- function Cobble()
- local status,info = turtle.inspect()
- if not status then
- end
- print(info.name)
- if(info.name == "minecraft:cobblestone")then
- post(Cobble)
- end
- end
- function Coal()
- local status,info = turtle.inspect()
- if not status then
- end
- print(info.name)
- if(info.name == "minecraft:coal_ore")then
- post2(Coal)
- end
- end
- function Iron()
- local status,info = turtle.inspect()
- if not status then
- end
- print(info.name)
- if(info.name == "minecraft:iron_ore")then
- post3(Iron)
- end
- end
- function Redstone()
- local status,info = turtle.inspect()
- if not status then
- end
- print(info.name)
- if(info.name == "minecraft:redstone_ore")then
- post4(Redstone)
- end
- end
- function Lapis()
- local status,info = turtle.inspect()
- if not status then
- end
- print(info.name)
- if(info.name == "minecraft:lapis_ore")then
- post5(Lapis)
- end
- end
- function Gold()
- local status,info = turtle.inspect()
- if not status then
- end
- print(info.name)
- if(info.name == "minecraft:gold_ore")then
- post6(Gold)
- end
- end
- function Diamond()
- local status,info = turtle.inspect()
- if not status then
- end
- print(info.name)
- if(info.name == "minecraft:diamond_ore")then
- post7(Diamond)
- end
- end
- function Emerald()
- local status,info = turtle.inspect()
- if not status then
- end
- print(info.name)
- if(info.name == "minecraft:emerald_ore")then
- post8(Emerald)
- end
- end
- while true do
- Stone()
- Cobble()
- Coal()
- Iron()
- Redstone()
- Lapis()
- Gold()
- Diamond()
- Emerald()
- Minage()
- end
- ----=Autor=----
- --By Zaidal86
- ----=-----=----
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement