Guest User

reactor

a guest
Dec 22nd, 2015
1,087
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.21 KB | None | 0 0
  1. yellorium = 0
  2. coal = 0
  3. iron = 0
  4. diamond = 0
  5. gold = 0
  6. cobble = 0
  7. wood = 0
  8. redstone = 0
  9. args = {...}
  10. X = args[1]
  11. Y = args[2]
  12. Z = args[3]
  13. perameter = (X * 2) + (Z * 2)
  14. XZ = X * Z
  15. XY = X * Y
  16. ZY = Z * Y
  17. inside = XZ - perameter
  18. fuelRods = math.ceil(inside / 2)
  19. fuel = fuelRods * 4
  20. case = (XZ * 2 - fuelRods) + (ZY * 2) + (XY * 2)
  21. conRods = fuelRods
  22. if args[4] == "true" then
  23.   Turbine = 1
  24.   case = case - 1
  25. elseif args[4] == "false" then
  26.   Turbine = 0
  27. end
  28.  
  29. if args[5] == "true" then
  30.   Computer = 1
  31.   case = case - 1
  32. elseif args[5] == "false" then
  33.   Computer = 0
  34. else
  35.   Computer = 0
  36. end
  37.  
  38. if args[6] == "true" then
  39.   RedstoneC = 1
  40.   case = case - 1
  41. elseif args[6] == "false" then
  42.   RedstoneC = 0
  43. else
  44.   RedstoneC = 0
  45. end
  46.  
  47. for i=1,case do
  48.   yellorium = yellorium + 1
  49.   coal = coal + 4
  50.   iron = iron + 4
  51. end
  52.  
  53. for i=1,fuelRods do
  54.   yellorium = yellorium + 1
  55.   coal = coal + 2
  56.   iron = iron + 6
  57. end
  58.  
  59. for i=1,conRods do
  60.   yellorium = yellorium + 2
  61.   coal = coal + 7
  62.   iron = iron + 4
  63.   redstone = redstone + 1
  64. end
  65.  
  66. for i=1,Turbine do
  67.   yellorium = yellorium + 1
  68.   coal = coal + 4
  69.   iron = iron + 10
  70.   wood = wood + 3
  71.   redstone = redstone + 1
  72.   cobble = cobble + 4
  73. end
  74.  
  75. yellorium = yellorium + 6
  76. coal = coal + 16
  77. iron = iron + 17
  78. wood = wood + 11
  79. cobble = cobble + 4
  80. redstone = redstone + 6
  81. diamond = diamond + 1
  82.  
  83. for i=1,Computer do
  84.   yellorium = yellorium + 1
  85.   redstone = redstone + 5
  86.   gold = gold + 2
  87.   wood = wood + 2
  88.   cobble = cobble + 3
  89.   iron = iron + 4
  90.   coal = coal + 4
  91. end
  92.  
  93. for i=1,RedstoneC do
  94.   gold = gold + 1
  95.   yellorium = yellorium + 1
  96.   redstone = redstone + 4
  97.   iron = iron + 4
  98.   coal = coal + 4
  99. end
  100.  
  101. for i=1,fuel do
  102.   yellorium = yellorium + 1
  103. end
  104.  
  105. if not inside == 1 then
  106.   gelid = math.floor((inside / 2) * YB)
  107.   basic = math.floor(inside / 2)
  108. else
  109.   gelid = 0
  110.   basic = 0
  111. end
  112.  
  113. print"This does not include the coal/power required to smelt"
  114. print("Yellorium: "..yellorium)
  115. print("Iron: "..iron)
  116. print("Graphite: "..coal)
  117. print("Redstone: "..redstone)
  118. print("Gold: "..gold)
  119. print("planks: "..wood)
  120. print("cobble: "..cobble)
  121. print("(Optional)Coolant(Physics, Passive): "..gelid)
  122. print("(Optional)Coolant(No Physics, Passive): "..basic)
Advertisement
Add Comment
Please, Sign In to add comment