Advertisement
william200027

Minage

Apr 5th, 2016
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.46 KB | None | 0 0
  1. Cobble = 1
  2. Coal = 1
  3. Iron = 1
  4. Redstone = 1
  5. Lapis = 1
  6. Gold = 1
  7. Diamond = 1
  8. Emerald = 1
  9.  
  10. local function post(one)
  11.                 http.post(
  12.                                 "http://zaidal.olympe.in/Turtle/Cobble.php",
  13.                                 "one="..textutils.urlEncode(tostring(one))
  14.                            )
  15. end
  16.  
  17. local function post2(two)
  18.                 http.post(
  19.                                 "http://zaidal.olympe.in/Turtle/Coal.php",
  20.                                 "two="..textutils.urlEncode(tostring(two))
  21.                            )
  22. end
  23.  
  24. local function post3(three)
  25.                 http.post(
  26.                                 "http://zaidal.olympe.in/Turtle/Iron.php",
  27.                                 "three="..textutils.urlEncode(tostring(three))
  28.                            )
  29. end
  30.  
  31. local function post4(four)
  32.                 http.post(
  33.                                 "http://zaidal.olympe.in/Turtle/Redstone.php",
  34.                                 "four="..textutils.urlEncode(tostring(four))
  35.                            )
  36. end
  37.  
  38. local function post5(five)
  39.                 http.post(
  40.                                 "http://zaidal.olympe.in/Turtle/Lapis.php",
  41.                                 "five="..textutils.urlEncode(tostring(five))
  42.                            )
  43. end
  44.  
  45. local function post6(six)
  46.                 http.post(
  47.                                 "http://zaidal.olympe.in/Turtle/Gold.php",
  48.                                 "six="..textutils.urlEncode(tostring(six))
  49.                            )
  50. end
  51.  
  52. local function post7(seven)
  53.                 http.post(
  54.                                 "http://zaidal.olympe.in/Turtle/Diamond.php",
  55.                                 "seven="..textutils.urlEncode(tostring(seven))
  56.                            )
  57. end
  58.  
  59. local function post8(eight)
  60.                 http.post(
  61.                                 "http://zaidal.olympe.in/Turtle/Emerald.php",
  62.                                 "eight="..textutils.urlEncode(tostring(eight))
  63.                            )
  64. end
  65.  
  66. function Minage()
  67.         turtle.dig()
  68.         turtle.forward()
  69. end
  70.  
  71. function Stone()
  72.         local status,info = turtle.inspect()
  73.         if not status then
  74.         end
  75.         print(info.name)
  76.  
  77.                 if(info.name == "minecraft:stone")then
  78.                 post(Cobble)
  79.         end
  80. end
  81.  
  82. function Cobble()
  83.         local status,info = turtle.inspect()
  84.         if not status then
  85.         end
  86.         print(info.name)
  87.  
  88.                 if(info.name == "minecraft:cobblestone")then
  89.                 post(Cobble)
  90.         end
  91. end
  92.  
  93. function Coal()
  94.         local status,info = turtle.inspect()
  95.         if not status then
  96.         end
  97.         print(info.name)
  98.  
  99.                 if(info.name == "minecraft:coal_ore")then
  100.                 post2(Coal)
  101.         end
  102. end
  103.  
  104. function Iron()
  105.         local status,info = turtle.inspect()
  106.         if not status then
  107.         end
  108.         print(info.name)
  109.  
  110.                 if(info.name == "minecraft:iron_ore")then
  111.                 post3(Iron)
  112.         end
  113. end
  114.  
  115. function Redstone()
  116.         local status,info = turtle.inspect()
  117.         if not status then
  118.         end
  119.         print(info.name)
  120.  
  121.                 if(info.name == "minecraft:redstone_ore")then
  122.                 post4(Redstone)
  123.         end
  124. end
  125.  
  126. function Lapis()
  127.         local status,info = turtle.inspect()
  128.         if not status then
  129.         end
  130.         print(info.name)
  131.  
  132.                 if(info.name == "minecraft:lapis_ore")then
  133.                 post5(Lapis)
  134.         end
  135. end
  136.  
  137. function Gold()
  138.         local status,info = turtle.inspect()
  139.         if not status then
  140.         end
  141.         print(info.name)
  142.  
  143.                 if(info.name == "minecraft:gold_ore")then
  144.                 post6(Gold)
  145.         end
  146. end
  147.  
  148. function Diamond()
  149.         local status,info = turtle.inspect()
  150.         if not status then
  151.         end
  152.         print(info.name)
  153.  
  154.                 if(info.name == "minecraft:diamond_ore")then
  155.                 post7(Diamond)
  156.         end
  157. end
  158.  
  159. function Emerald()
  160.         local status,info = turtle.inspect()
  161.         if not status then
  162.         end
  163.         print(info.name)
  164.  
  165.                 if(info.name == "minecraft:emerald_ore")then
  166.                 post8(Emerald)
  167.         end
  168. end
  169.  
  170. while true do
  171.         Stone()
  172.         Cobble()
  173.         Coal()
  174.         Iron()
  175.         Redstone()
  176.         Lapis()
  177.         Gold()
  178.         Diamond()
  179.         Emerald()
  180.        
  181.         Minage()
  182. end
  183.  
  184. ----=Autor=----
  185. --By Zaidal86
  186. ----=-----=----
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement