Guest User

fuelmod 1.2

a guest
Sep 9th, 2014
259
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. --default editing
  3. elements.property(elements.DEFAULT_PT_ACID, "Flammable", 0)
  4. elements.property(elements.DEFAULT_PT_DMND, "MenuSection", 9)
  5. elements.property(elements.DEFAULT_PT_MORT, "MenuVisible", 1)
  6. elements.property(elements.DEFAULT_PT_MORT, "MenuSection", 8)
  7. elements.property(elements.DEFAULT_PT_INSL, "Hardness", 0)
  8. elements.property(elements.DEFAULT_PT_INSL, "Flammable", 0)
  9. elements.property(elements.DEFAULT_PT_LN2, "HighTemperature", 76)
  10. elements.property(elements.DEFAULT_PT_WATR, "Hardness", 0.25)
  11. elements.property(elements.DEFAULT_PT_DSTW, "Hardness", 0)
  12. elements.property(elements.DEFAULT_PT_SLTW, "Hardness", 0)
  13. elements.property(elements.DEFAULT_PT_BUBW, "Hardness", 0)
  14. elements.property(elements.DEFAULT_PT_WATR, "Weight", 32)
  15. elements.property(elements.DEFAULT_PT_DSTW, "Weight", 32)
  16. elements.property(elements.DEFAULT_PT_SLTW, "Weight", 32)
  17. elements.property(elements.DEFAULT_PT_BUBW, "Weight", 32)
  18. elements.property(elements.DEFAULT_PT_ACID, "Weight", 32)
  19. elements.property(elements.DEFAULT_PT_ACID, "Diffusion", 1.2)
  20. elements.property(elements.DEFAULT_PT_ACID, "Description", "Bubbling caustic liquid.")
  21. elements.property(elements.DEFAULT_PT_ACID, "Gravity", 0.62)
  22. elements.property(elements.DEFAULT_PT_DESL, "HighPressure", 256)
  23.  
  24. --petrol
  25. local antifrzz = elements.allocate("JWARD", "AFRZ")
  26. local petrolgas = elements.allocate("JWARD", "PTLV")
  27. local petrol = elements.allocate("JWARD", "PTRL")
  28. elements.element(elements.JWARD_PT_PTRL, elements.element(elements.DEFAULT_PT_GEL))
  29. elements.property(elements.JWARD_PT_PTRL, "Name", "PTRL")
  30. elements.property(elements.JWARD_PT_PTRL, "Description", "Petrol. Highly flammable liquid.")
  31. elements.property(elements.JWARD_PT_PTRL, "Colour", 0x0A4A5C)
  32. elements.property(elements.JWARD_PT_PTRL, "MenuSection", SC_LIQUID)
  33. elements.property(elements.JWARD_PT_PTRL, "Gravity", 0.6)
  34. elements.property(elements.JWARD_PT_PTRL, "Flammable", 65)
  35. elements.property(elements.JWARD_PT_PTRL, "Explosive", 0)
  36. elements.property(elements.JWARD_PT_PTRL, "Loss", 0.8)
  37. elements.property(elements.JWARD_PT_PTRL, "AirLoss", 0.94)
  38. elements.property(elements.JWARD_PT_PTRL, "AirDrag", 0.02)
  39. elements.property(elements.JWARD_PT_PTRL, "Advection", 0.8)
  40. elements.property(elements.JWARD_PT_PTRL, "Weight", 12)
  41. elements.property(elements.JWARD_PT_PTRL, "Diffusion", 0)
  42. elements.property(elements.JWARD_PT_PTRL, "Meltable", 0)
  43. elements.property(elements.JWARD_PT_PTRL, "Hardness", 0)
  44. elements.property(elements.JWARD_PT_PTRL, "Falldown", 2)
  45. elements.property(elements.JWARD_PT_PTRL, "Properties", TYPE_LIQUID)
  46. elements.property(elements.JWARD_PT_PTRL, "State", ST_LIQUID)
  47. elements.property(elements.JWARD_PT_PTRL, "Temperature", 295.15)
  48. elements.property(elements.JWARD_PT_PTRL, "HeatConduct", 78)
  49. elements.property(elements.JWARD_PT_PTRL, "HighTemperature", 333.15)
  50. elements.property(elements.JWARD_PT_PTRL, "HighTemperatureTransition", elements.JWARD_PT_PTLV)
  51. elements.property(elements.JWARD_PT_PTRL, "LowTemperature", 225.15)
  52. elements.property(elements.JWARD_PT_PTRL, "LowTemperatureTransition", elements.DEFAULT_PT_ICE)
  53.  
  54. elements.element(elements.JWARD_PT_PTLV, elements.element(elements.DEFAULT_PT_HYGN))
  55. elements.property(elements.JWARD_PT_PTLV, "Name", "PTLV")
  56. elements.property(elements.JWARD_PT_PTLV, "Description", "petrol gas")
  57. elements.property(elements.JWARD_PT_PTLV, "Colour", 0x0A4A5C)
  58. elements.property(elements.JWARD_PT_PTLV, "MenuVisible", 0)
  59. elements.property(elements.JWARD_PT_PTLV, "Gravity", -0.02)
  60. elements.property(elements.JWARD_PT_PTLV, "Flammable", 100)
  61. elements.property(elements.JWARD_PT_PTLV, "Explosive", 1)
  62. elements.property(elements.JWARD_PT_PTLV, "Loss", 0.75)
  63. elements.property(elements.JWARD_PT_PTLV, "AirLoss", 0.97)
  64. elements.property(elements.JWARD_PT_PTLV, "AirDrag", 0.01)
  65. elements.property(elements.JWARD_PT_PTLV, "Advection", 1)
  66. elements.property(elements.JWARD_PT_PTLV, "Weight", 0)
  67. elements.property(elements.JWARD_PT_PTLV, "Diffusion", 0.7)
  68. elements.property(elements.JWARD_PT_PTLV, "Meltable", 0)
  69. elements.property(elements.JWARD_PT_PTLV, "Hardness", 0)
  70. elements.property(elements.JWARD_PT_PTLV, "Falldown", 0)
  71. elements.property(elements.JWARD_PT_PTLV, "Properties", TYPE_GAS)
  72. elements.property(elements.JWARD_PT_PTLV, "State", ST_GAS)
  73. elements.property(elements.JWARD_PT_PTLV, "Temperature", 343.15)
  74. elements.property(elements.JWARD_PT_PTLV, "HeatConduct", 80)
  75. elements.property(elements.JWARD_PT_PTLV, "LowTemperature", 333.14)
  76. elements.property(elements.JWARD_PT_PTLV, "LowTemperatureTransition", elements.JWARD_PT_PTRL)
  77.  
  78. elements.element(elements.JWARD_PT_AFRZ, elements.element(elements.DEFAULT_PT_GEL))
  79. elements.property(elements.JWARD_PT_AFRZ, "Name", "AFRZ")
  80. elements.property(elements.JWARD_PT_AFRZ, "Description", "antifreeze, keeps your fuel nice and toasty. methnol")
  81. elements.property(elements.JWARD_PT_AFRZ, "Colour", 0x0C3F5B)
  82. elements.property(elements.JWARD_PT_AFRZ, "MenuSection", SC_LIQUID)
  83. elements.property(elements.JWARD_PT_AFRZ, "Gravity", 0.6)
  84. elements.property(elements.JWARD_PT_AFRZ, "Flammable", 65)
  85. elements.property(elements.JWARD_PT_AFRZ, "Explosive", 0)
  86. elements.property(elements.JWARD_PT_AFRZ, "Loss", 0.8)
  87. elements.property(elements.JWARD_PT_AFRZ, "AirLoss", 0.94)
  88. elements.property(elements.JWARD_PT_AFRZ, "AirDrag", 0.02)
  89. elements.property(elements.JWARD_PT_AFRZ, "Advection", 0.8)
  90. elements.property(elements.JWARD_PT_AFRZ, "Weight", 12)
  91. elements.property(elements.JWARD_PT_AFRZ, "Diffusion", 0)
  92. elements.property(elements.JWARD_PT_AFRZ, "Meltable", 0)
  93. elements.property(elements.JWARD_PT_AFRZ, "Hardness", 0)
  94. elements.property(elements.JWARD_PT_AFRZ, "Falldown", 2)
  95. elements.property(elements.JWARD_PT_AFRZ, "Properties", TYPE_LIQUID)
  96. elements.property(elements.JWARD_PT_AFRZ, "State", ST_LIQUID)
  97. elements.property(elements.JWARD_PT_AFRZ, "Temperature", 295.15)
  98. elements.property(elements.JWARD_PT_AFRZ, "HeatConduct", 78)
  99. function AFRZ(i,x,y,s,n)
  100. warm = tpt.get_property("type",x+math.random(-1,1),y+math.random(-1,1))
  101. warm2 = tpt.get_property("temp",x,y)
  102. if warm == petrol and warm2 < 276 then
  103. tpt.set_property('temp', 296 ,x, y)
  104. end
  105. if warm == tpt.el.desl.id and warm2 < 276 then
  106. tpt.set_property('temp', 296 ,x, y)
  107. end
  108. if warm == BioDiesel and warm2 < 276 then
  109. tpt.set_property('temp', 296 ,x, y)
  110. end
  111. if warm == jetfuel and warm2 < 276 then
  112. tpt.set_property('temp', 296 ,x, y)
  113. end
  114. if warm == tpt.el.ice.id and warm2 < 276 then
  115. tpt.set_property('temp', 296 ,x, y)
  116. end
  117. end
  118. tpt.element_func(AFRZ, tpt.element('AFRZ'))
  119.  
  120. --diesel & bio diesel
  121. local Dieselgas = elements.allocate("JWARD", "DSLV")
  122. local potash_lye = elements.allocate("JWARD", "PLYE")
  123. local cooking_oil = elements.allocate("JWARD", "COIL")
  124. local BioDiesel = elements.allocate("JWARD", "BDSL")
  125.  
  126. elements.element(elements.JWARD_PT_DSLV, elements.element(elements.DEFAULT_PT_HYGN))
  127. elements.property(elements.JWARD_PT_DSLV, "Name", "DSLV")
  128. elements.property(elements.JWARD_PT_DSLV, "Description", "diesel gas")
  129. elements.property(elements.JWARD_PT_DSLV, "Colour", 0x440000)
  130. elements.property(elements.JWARD_PT_DSLV, "MenuVisible", 0)
  131. elements.property(elements.JWARD_PT_DSLV, "Gravity", -0.02)
  132. elements.property(elements.JWARD_PT_DSLV, "Flammable", 100)
  133. elements.property(elements.JWARD_PT_DSLV, "Explosive", 1)
  134. elements.property(elements.JWARD_PT_DSLV, "Loss", 0.75)
  135. elements.property(elements.JWARD_PT_DSLV, "AirLoss", 0.97)
  136. elements.property(elements.JWARD_PT_DSLV, "AirDrag", 0.01)
  137. elements.property(elements.JWARD_PT_DSLV, "Advection", 1)
  138. elements.property(elements.JWARD_PT_DSLV, "Weight", 0)
  139. elements.property(elements.JWARD_PT_DSLV, "Diffusion", 0.7)
  140. elements.property(elements.JWARD_PT_DSLV, "Meltable", 0)
  141. elements.property(elements.JWARD_PT_DSLV, "Hardness", 0)
  142. elements.property(elements.JWARD_PT_DSLV, "Falldown", 0)
  143. elements.property(elements.JWARD_PT_DSLV, "Properties", TYPE_GAS)
  144. elements.property(elements.JWARD_PT_DSLV, "State", ST_GAS)
  145. elements.property(elements.JWARD_PT_DSLV, "Temperature", 483.15)
  146. elements.property(elements.JWARD_PT_DSLV, "HeatConduct", 80)
  147. elements.property(elements.JWARD_PT_DSLV, "LowTemperature", 473.15)
  148. elements.property(elements.JWARD_PT_DSLV, "LowTemperatureTransition", elements.DEFAULT_PT_DESL)
  149.  
  150. elements.element(elements.JWARD_PT_COIL, elements.element(elements.DEFAULT_PT_GEL))
  151. elements.property(elements.JWARD_PT_COIL, "Name", "COIL")
  152. elements.property(elements.JWARD_PT_COIL, "Description", "Cooking oil")
  153. elements.property(elements.JWARD_PT_COIL, "Colour", 0xA57214)
  154. elements.property(elements.JWARD_PT_COIL, "MenuSection", 7)
  155. elements.property(elements.JWARD_PT_COIL, "Gravity", 0.6)
  156. elements.property(elements.JWARD_PT_COIL, "Flammable", 1)
  157. elements.property(elements.JWARD_PT_COIL, "Explosive", 0)
  158. elements.property(elements.JWARD_PT_COIL, "Loss", 0.7)
  159. elements.property(elements.JWARD_PT_COIL, "AirLoss", 0.91)
  160. elements.property(elements.JWARD_PT_COIL, "AirDrag", 0.02)
  161. elements.property(elements.JWARD_PT_COIL, "Advection", 0.9)
  162. elements.property(elements.JWARD_PT_COIL, "Weight", 10)
  163. elements.property(elements.JWARD_PT_COIL, "Meltable", 0)
  164. elements.property(elements.JWARD_PT_COIL, "Hardness", 86)
  165. elements.property(elements.JWARD_PT_COIL, "Falldown", 2)
  166. elements.property(elements.JWARD_PT_COIL, "Properties", TYPE_LIQUID)
  167. elements.property(elements.JWARD_PT_COIL, "State", ST_LIQUID)
  168. elements.property(elements.JWARD_PT_COIL, "Temperature", 295.15)
  169. elements.property(elements.JWARD_PT_COIL, "HeatConduct", 100)
  170. function COIL(i,x,y,s,n)
  171. cx = math.random(-3,3)
  172. cy = math.random(-5,1)
  173. reaction = tpt.get_property("temp",x,y)
  174. bio = tpt.get_property("type",x + math.random(-2,2), y + math.random(-2,2))
  175. bioo = tpt.get_property("type",x + math.random(-2,2), y + math.random(-2,2))
  176. biooo = tpt.get_property("type",x + cy, y + cx)
  177. local noncatalyst = tpt.get_property("life",x,y)
  178. if reaction > 363.15 and biooo ~= true then
  179. tpt.delete(x,y)
  180. tpt.create(x + cx, y + cy, 'COIL')
  181. end
  182. if bio == potash_lye and bioo == antifrzz then
  183. tpt.parts[i].type = tpt.element('BDSL')
  184. end
  185. end
  186. tpt.element_func(COIL, tpt.element('COIL'))
  187.  
  188. elements.element(elements.JWARD_PT_BDSL, elements.element(elements.DEFAULT_PT_GEL))
  189. elements.property(elements.JWARD_PT_BDSL, "Name", "BDSL")
  190. elements.property(elements.JWARD_PT_BDSL, "Description", "Bio Diesel. Made from cooking oil.")
  191. elements.property(elements.JWARD_PT_BDSL, "Colour", 0x331000)
  192. elements.property(elements.JWARD_PT_BDSL, "MenuSection", SC_LIQUID)
  193. elements.property(elements.JWARD_PT_BDSL, "Gravity", 0.6)
  194. elements.property(elements.JWARD_PT_BDSL, "Flammable", 35)
  195. elements.property(elements.JWARD_PT_BDSL, "Explosive", 0)
  196. elements.property(elements.JWARD_PT_BDSL, "Loss", 0.8)
  197. elements.property(elements.JWARD_PT_BDSL, "AirLoss", 0.94)
  198. elements.property(elements.JWARD_PT_BDSL, "AirDrag", 0.02)
  199. elements.property(elements.JWARD_PT_BDSL, "Advection", 0.8)
  200. elements.property(elements.JWARD_PT_BDSL, "Weight", 12)
  201. elements.property(elements.JWARD_PT_BDSL, "Diffusion", 0)
  202. elements.property(elements.JWARD_PT_BDSL, "Meltable", 0)
  203. elements.property(elements.JWARD_PT_BDSL, "Hardness", 0)
  204. elements.property(elements.JWARD_PT_BDSL, "Falldown", 2)
  205. elements.property(elements.JWARD_PT_BDSL, "Properties", TYPE_LIQUID)
  206. elements.property(elements.JWARD_PT_BDSL, "State", ST_LIQUID)
  207. elements.property(elements.JWARD_PT_BDSL, "Temperature", 295.15)
  208. elements.property(elements.JWARD_PT_BDSL, "HeatConduct", 99)
  209. function BDSL(i,x,y,s,n)
  210. calstmp = tpt.get_property("tmp",x,y)
  211. findcoil = tpt.get_property("type",x+math.random(-1,1),y+math.random(-1,1))
  212. if findcoil == cooking_oil then
  213. tpt.set_property('life', 2 ,x, y)
  214. end
  215. if calstmp == 2 then
  216. if findcoil == tpt.el.desl.id then
  217. tpt.parts[i].type = tpt.element('desl')
  218. reaction = nil
  219. end
  220. end
  221. end
  222. tpt.element_func(BDSL, tpt.element('BDSL'))
  223.  
  224. elements.element(elements.JWARD_PT_PLYE, elements.element(elements.DEFAULT_PT_BCOL))
  225. elements.property(elements.JWARD_PT_PLYE, "Name", "PLYE")
  226. elements.property(elements.JWARD_PT_PLYE, "Description", "potash lye")
  227. elements.property(elements.JWARD_PT_PLYE, "Colour", 0xCCCCCC)
  228. elements.property(elements.JWARD_PT_PLYE, "MenuSection", 8)
  229. elements.property(elements.JWARD_PT_PLYE, "Gravity", .35)
  230. elements.property(elements.JWARD_PT_PLYE, "Flammable", 0)
  231. elements.property(elements.JWARD_PT_PLYE, "Explosive", 0)
  232. elements.property(elements.JWARD_PT_PLYE, "Loss", 0.15)
  233. elements.property(elements.JWARD_PT_PLYE, "AirLoss", 0.96)
  234. elements.property(elements.JWARD_PT_PLYE, "AirDrag", 0.03)
  235. elements.property(elements.JWARD_PT_PLYE, "Advection", 0.4)
  236. elements.property(elements.JWARD_PT_PLYE, "Weight", 60)
  237. elements.property(elements.JWARD_PT_PLYE, "Diffusion", 0)
  238. elements.property(elements.JWARD_PT_PLYE, "Falldown", 1)
  239. elements.property(elements.JWARD_PT_PLYE, "Hardness", 0)
  240. elements.property(elements.JWARD_PT_PLYE, "HeatConduct", 62)
  241. elements.property(elements.JWARD_PT_PLYE, "Properties", elem.PROP_DEADLY)
  242. elements.property(elements.JWARD_PT_PLYE, "HighTemperature", 679.15)
  243. elements.property(elements.JWARD_PT_PLYE, "HighTemperatureTransition", elements.DEFAULT_PT_LAVA)
  244. function PLYE(i,x,y,s,n)
  245. cy = math.random(-1,1)
  246. cx = math.random(-1,1)
  247. reaction = tpt.get_property("type",x+cx,y+cy)
  248. if reaction == tpt.el.acid.id then
  249. tpt.create(x, y + 2, 'hygn')
  250. tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'SLTW')
  251. tpt.delete(x,y)
  252. end
  253. end
  254. tpt.element_func(PLYE, tpt.element('PLYE'))
  255.  
  256. --o0o NITROGEN o0o--
  257. local nitrogen = elements.allocate("JWARD", "N2")
  258. local Diazane = elements.allocate("JWARD", "N2H4")
  259. local DinitrogenTetroxide = elements.allocate("JWARD", "N2O4")
  260. local nitrous = elements.allocate("JWARD", "N2O")
  261. local need4speed = elements.allocate("JWARD", "LN2O")
  262. local amfoness = elements.allocate("JWARD", "AMFO")
  263. elements.element(elements.JWARD_PT_LN2O, elements.element(elements.DEFAULT_PT_GEL))
  264. elements.property(elements.JWARD_PT_LN2O, "Name", "LN2O")
  265. elements.property(elements.JWARD_PT_LN2O, "Description", "Liquid Nitrous Oxide. Burns very quickly and very hot.")
  266. elements.property(elements.JWARD_PT_LN2O, "Colour", 0x33C1F5)
  267. elements.property(elements.JWARD_PT_LN2O, "MenuSection", 7)
  268. elements.property(elements.JWARD_PT_LN2O, "Gravity", 0.8)
  269. elements.property(elements.JWARD_PT_LN2O, "Flammable", 6000)
  270. elements.property(elements.JWARD_PT_LN2O, "Explosive", 0)
  271. elements.property(elements.JWARD_PT_LN2O, "Loss", 0.5)
  272. elements.property(elements.JWARD_PT_LN2O, "AirLoss", 0.94)
  273. elements.property(elements.JWARD_PT_LN2O, "AirDrag", 0.03)
  274. elements.property(elements.JWARD_PT_LN2O, "Advection", 0.7)
  275. elements.property(elements.JWARD_PT_LN2O, "Weight", 43)
  276. elements.property(elements.JWARD_PT_LN2O, "Diffusion", 0)
  277. elements.property(elements.JWARD_PT_LN2O, "Meltable", 0)
  278. elements.property(elements.JWARD_PT_LN2O, "Hardness", 0)
  279. elements.property(elements.JWARD_PT_LN2O, "Falldown", 2)
  280. elements.property(elements.JWARD_PT_LN2O, "Properties", TYPE_LIQUID)
  281. elements.property(elements.JWARD_PT_LN2O, "State", ST_LIQUID)
  282. elements.property(elements.JWARD_PT_LN2O, "Temperature", 174)
  283. elements.property(elements.JWARD_PT_LN2O, "HeatConduct", 58)
  284. elements.property(elements.JWARD_PT_LN2O, "HighTemperature", 185)
  285. elements.property(elements.JWARD_PT_LN2O, "HighTemperatureTransition", elements.JWARD_PT_N2O)
  286. elements.property(elements.JWARD_PT_LN2O, "LowTemperature", 160.15)
  287. elements.property(elements.JWARD_PT_LN2O, "LowTemperatureTransition", elements.DEFAULT_PT_ICE)
  288.  
  289. elements.element(elements.JWARD_PT_N2O, elements.element(elements.DEFAULT_PT_CO2))
  290. elements.property(elements.JWARD_PT_N2O, "Name", "N2O")
  291. elements.property(elements.JWARD_PT_N2O, "Description", "Nitrous Oxide. Highly flammable RACE CAR oxidizer!!!.")
  292. elements.property(elements.JWARD_PT_N2O, "Colour", 0x43DAFF)
  293. elements.property(elements.JWARD_PT_N2O, "MenuSection", 6)
  294. elements.property(elements.JWARD_PT_N2O, "Gravity", 0)
  295. elements.property(elements.JWARD_PT_N2O, "Flammable", 5500)
  296. elements.property(elements.JWARD_PT_N2O, "Explosive", 0)
  297. elements.property(elements.JWARD_PT_N2O, "Loss", 0.7)
  298. elements.property(elements.JWARD_PT_N2O, "AirLoss", 0.91)
  299. elements.property(elements.JWARD_PT_N2O, "AirDrag", 0.02)
  300. elements.property(elements.JWARD_PT_N2O, "Advection", 0.9)
  301. elements.property(elements.JWARD_PT_N2O, "Weight", 0)
  302. elements.property(elements.JWARD_PT_N2O, "Diffusion", 1.5)
  303. elements.property(elements.JWARD_PT_N2O, "Meltable", 0)
  304. elements.property(elements.JWARD_PT_N2O, "Hardness", 0)
  305. elements.property(elements.JWARD_PT_N2O, "Falldown", 0)
  306. elements.property(elements.JWARD_PT_N2O, "Properties", TYPE_GAS)
  307. elements.property(elements.JWARD_PT_N2O, "State", ST_GAS)
  308. elements.property(elements.JWARD_PT_N2O, "Temperature", 295.15)
  309. elements.property(elements.JWARD_PT_N2O, "HeatConduct", 80)
  310. elements.property(elements.JWARD_PT_N2O, "LowTemperature", 185.67)
  311. elements.property(elements.JWARD_PT_N2O, "LowTemperatureTransition", elements.JWARD_PT_LN2O)
  312. function N2O(i,x,y,s,n)
  313. reaction = tpt.get_property("type",x+math.random(-1,1),y+math.random(-1,1))
  314. if reaction == tpt.el.fire.id or reaction == tpt.el.plsm.id then
  315. tpt.create(x+math.random(-1,1), y+math.random(-1,1), 'n2')
  316. end
  317. end
  318. tpt.element_func(N2O,nitrous)
  319.  
  320. elements.element(elements.JWARD_PT_N2O4, elements.element(elements.DEFAULT_PT_GEL))
  321. elements.property(elements.JWARD_PT_N2O4, "Name", "N2O4")
  322. elements.property(elements.JWARD_PT_N2O4, "Description", "Dinitrogen Tetroxide rocket oxidizer")
  323. elements.property(elements.JWARD_PT_N2O4, "Colour", 0x30CEC6)
  324. elements.property(elements.JWARD_PT_N2O4, "MenuSection", 5)
  325. elements.property(elements.JWARD_PT_N2O4, "Gravity", 0.8)
  326. elements.property(elements.JWARD_PT_N2O4, "Flammable", 7500)
  327. elements.property(elements.JWARD_PT_N2O4, "Explosive", 1)
  328. elements.property(elements.JWARD_PT_N2O4, "Loss", 0.7)
  329. elements.property(elements.JWARD_PT_N2O4, "AirLoss", 0.91)
  330. elements.property(elements.JWARD_PT_N2O4, "AirDrag", 0.03)
  331. elements.property(elements.JWARD_PT_N2O4, "Advection", 0.6)
  332. elements.property(elements.JWARD_PT_N2O4, "Weight", 46)
  333. elements.property(elements.JWARD_PT_N2O4, "Diffusion", 1.5)
  334. elements.property(elements.JWARD_PT_N2O4, "Meltable", 0)
  335. elements.property(elements.JWARD_PT_N2O4, "Hardness", 0)
  336. elements.property(elements.JWARD_PT_N2O4, "Falldown", 2)
  337. elements.property(elements.JWARD_PT_N2O4, "Properties", TYPE_LIQUID)
  338. elements.property(elements.JWARD_PT_N2O4, "State", ST_LIQUID)
  339. elements.property(elements.JWARD_PT_N2O4, "Temperature", 295.15)
  340. elements.property(elements.JWARD_PT_N2O4, "HeatConduct", 78)
  341. function N2O4(i,x,y,s,n)
  342. rocket = tpt.get_property("type",x+math.random(-1,1),y+math.random(-1,1))
  343. if rocket == Diazane then
  344. tpt.create(x+math.random(-1,1), y+math.random(-1,1), 'plsm')
  345. tpt.create(x+math.random(-1,1), y+math.random(-1,1), 'n2')
  346. end
  347. end
  348. tpt.element_func(N2O4,DinitrogenTetroxide)
  349.  
  350. elements.element(elements.JWARD_PT_N2H4, elements.element(elements.DEFAULT_PT_GEL))
  351. elements.property(elements.JWARD_PT_N2H4, "Name", "N2H4")
  352. elements.property(elements.JWARD_PT_N2H4, "Description", "Hydrazine rocket fuel")
  353. elements.property(elements.JWARD_PT_N2H4, "Colour", 0xB6F064)
  354. elements.property(elements.JWARD_PT_N2H4, "MenuSection", 5)
  355. elements.property(elements.JWARD_PT_N2H4, "Gravity", 0.8)
  356. elements.property(elements.JWARD_PT_N2H4, "Flammable", 1)
  357. elements.property(elements.JWARD_PT_N2H4, "Explosive", 1)
  358. elements.property(elements.JWARD_PT_N2H4, "Loss", 0.7)
  359. elements.property(elements.JWARD_PT_N2H4, "AirLoss", 0.91)
  360. elements.property(elements.JWARD_PT_N2H4, "AirDrag", 0.03)
  361. elements.property(elements.JWARD_PT_N2H4, "Advection", 0.6)
  362. elements.property(elements.JWARD_PT_N2H4, "Weight", 46)
  363. elements.property(elements.JWARD_PT_N2H4, "Diffusion", 1.5)
  364. elements.property(elements.JWARD_PT_N2H4, "Meltable", 0)
  365. elements.property(elements.JWARD_PT_N2H4, "Hardness", 0)
  366. elements.property(elements.JWARD_PT_N2H4, "Falldown", 2)
  367. elements.property(elements.JWARD_PT_N2H4, "Properties", TYPE_LIQUID)
  368. elements.property(elements.JWARD_PT_N2H4, "State", ST_LIQUID)
  369. elements.property(elements.JWARD_PT_N2H4, "Temperature", 295.15)
  370. elements.property(elements.JWARD_PT_N2H4, "HeatConduct", 83)
  371. N2H4Update = function(i, x, y, s, n)
  372.  local clife = tpt.get_property('life', x, y)
  373.  if clife > 1 then
  374.  for cx = -1, 1, 2 do
  375.  for cy = -1, 1, 2 do
  376.  tpt.create(x + cx, y + cy, 'fire')
  377.  tpt.set_property('temp', 1700, x, y)
  378.  tpt.set_pressure(x, y, 2, 2, 200)
  379.  end
  380.  end
  381.  tpt.set_property('life', clife - 1, x, y)
  382.  elseif clife == 1 then
  383.  tpt.set_property('type', 0, x, y)
  384.  elseif s > 0 then
  385.  for cx = -1, 1, 2 do
  386.  for cy = -1, 1, 2 do
  387.  if tpt.get_property('type', x + cx, y + cy) == 4 or tpt.get_property('type', x + cx, y + cy) == 49 then
  388.  tpt.set_property('life', 500, x, y)
  389.  return true
  390.  end
  391.  end
  392.  end
  393.  end
  394. end
  395. tpt.element_func(N2H4Update, tpt.element('N2H4'))
  396.  
  397. elements.element(elements.JWARD_PT_N2, elements.element(elements.DEFAULT_PT_CO2))
  398. elements.property(elements.JWARD_PT_N2, "Name", "N2")
  399. elements.property(elements.JWARD_PT_N2, "Description", "Nitrogen Gas. Combines with WATR to make N2O + H2.")
  400. elements.property(elements.JWARD_PT_N2, "Colour", 0x5E52FF)
  401. elements.property(elements.JWARD_PT_N2, "MenuSection", SC_GAS)
  402. elements.property(elements.JWARD_PT_N2, "Gravity", 0)
  403. elements.property(elements.JWARD_PT_N2, "Flammable", 0)
  404. elements.property(elements.JWARD_PT_N2, "Explosive", 1)
  405. elements.property(elements.JWARD_PT_N2, "Loss", 0.3)
  406. elements.property(elements.JWARD_PT_N2, "AirLoss", 0.99)
  407. elements.property(elements.JWARD_PT_N2, "AirDrag", 0.01)
  408. elements.property(elements.JWARD_PT_N2, "Advection", 2.0)
  409. elements.property(elements.JWARD_PT_N2, "Weight", 0)
  410. elements.property(elements.JWARD_PT_N2, "Diffusion", 2.75)
  411. elements.property(elements.JWARD_PT_N2, "State", ST_GAS)
  412. elements.property(elements.JWARD_PT_N2, "Properties", elem.TYPE_GAS)
  413. elements.property(elements.JWARD_PT_N2, "LowTemperatureTransition", elements.DEFAULT_PT_LN2)
  414. elements.property(elements.JWARD_PT_N2, "LowTemperature", 76)
  415. elements.property(elements.JWARD_PT_N2, "HeatConduct", 80)
  416. function N2(i,x,y,s,n)
  417. calstmp = tpt.get_property("tmp",x,y)
  418. if calstmp == 1 then
  419. tpt.parts[i].type = tpt.element('N2O')
  420. end
  421. end
  422. tpt.element_func(N2, tpt.element('N2'))
  423.  
  424. function HYGN(i,x,y,s,n)
  425. calstmp = tpt.get_property("tmp",x,y)
  426. if calstmp == 1 then
  427. tpt.parts[i].type = tpt.element('DSTW')
  428. end
  429. end
  430. tpt.element_func(HYGN, tpt.element('HYGN'))
  431.  
  432. elements.element(elements.JWARD_PT_AMFO, elements.element(elements.DEFAULT_PT_BCOL))
  433. elements.property(elements.JWARD_PT_AMFO, "Name", "AMFO")
  434. elements.property(elements.JWARD_PT_AMFO, "Description", "amfo explosive")
  435. elements.property(elements.JWARD_PT_AMFO, "Colour", 0xFFCECA)
  436. elements.property(elements.JWARD_PT_AMFO, "MenuSection", 5)
  437. elements.property(elements.JWARD_PT_AMFO, "Gravity", 0.54)
  438. elements.property(elements.JWARD_PT_AMFO, "Flammable", 500)
  439. elements.property(elements.JWARD_PT_AMFO, "Explosive", 1)
  440. elements.property(elements.JWARD_PT_AMFO, "Loss", 0)
  441. elements.property(elements.JWARD_PT_AMFO, "AirLoss", 0.96)
  442. elements.property(elements.JWARD_PT_AMFO, "AirDrag", 0.03)
  443. elements.property(elements.JWARD_PT_AMFO, "Advection", 0)
  444. elements.property(elements.JWARD_PT_AMFO, "Weight", 75)
  445. elements.property(elements.JWARD_PT_AMFO, "Diffusion", 0)
  446. elements.property(elements.JWARD_PT_AMFO, "Falldown", 1)
  447. elements.property(elements.JWARD_PT_AMFO, "Hardness", 0)
  448. elements.property(elements.JWARD_PT_AMFO, "HeatConduct", 62)
  449. elements.property(elements.JWARD_PT_AMFO, "Properties", elem.TYPE_SOLID+elem.PROP_DEADLY)
  450. elements.property(elements.JWARD_PT_AMFO, "State", ST_SOLID)
  451. function AMFO(i,x,y,s,n)
  452. cy = math.random(-1,1)
  453. cx = math.random(-1,1)
  454. ol = math.random(0,1)
  455. reaction = tpt.get_property("type",x+cx,y+cy)
  456. atemp = tpt.get_property("temp",x,y)
  457. calstmp = tpt.get_property("tmp",x,y)
  458. if reaction == tpt.el.acid.id then
  459. tpt.create(x, y + 2, 'acid')
  460. tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'salt')
  461. tpt.delete(x,y)
  462. end
  463. if reaction == tpt.el.fire.id then
  464. tpt.set_pressure(x, y, 2, 2, 200)
  465. end
  466. if atemp > 483.15 then
  467. if ol == 1 then
  468. tpt.parts[i].type = tpt.element('wtrv')
  469. else
  470. tpt.parts[i].type = tpt.element('N2O')
  471. end
  472. end
  473. if calstmp == 1 then
  474. tpt.parts[i].type = tpt.element('N2O4')
  475. end
  476. end
  477. tpt.element_func(AMFO, tpt.element('AMFO'))
  478.  
  479. --extra
  480. local catalyst = elements.allocate("JWARD", "CALS")
  481. local propane = elements.allocate("JWARD", "PRPN")
  482.  
  483. elements.element(elements.JWARD_PT_CALS, elements.element(elements.DEFAULT_PT_DMND))
  484. elements.property(elements.JWARD_PT_CALS, "Colour", 0x90965F)
  485. elements.property(elements.JWARD_PT_CALS, "Name", "CALS")
  486. elements.property(elements.JWARD_PT_CALS, "Description", "catalyst, used to make multi element machines")
  487. elements.property(elements.JWARD_PT_CALS, "HeatConduct", 0)
  488. function CALS(i,x,y,s,n)
  489. calsd = tpt.get_property("type",x,y+1)
  490. calsu = tpt.get_property("type",x,y-1)
  491. calsr = tpt.get_property("type",x+1,y)
  492. calsl = tpt.get_property("type",x-1,y)
  493. calsdr = tpt.get_property("type",x+1,y+1)
  494. calsdl = tpt.get_property("type",x-1,y+1)
  495. calsur = tpt.get_property("type",x+1,y-1)
  496. calsul = tpt.get_property("type",x-1,y-1)
  497. if calsu == tpt.el.gold.id and calsd == tpt.el.gold.id then
  498.  tpt.set_property('tmp', 1, x+math.random(-1,1),y+math.random(-1,1))
  499. end
  500. if calsdr == tpt.el.metl.id and calsdl == tpt.el.metl.id and calsur == tpt.el.metl.id and calsul == tpt.el.metl.id then
  501.  tpt.set_property('tmp', 2, x+math.random(-2,2),y+math.random(-2,2))
  502. end
  503. if calsu == tpt.el.glas.id and calsdr == tpt.el.ttan.id and calsdl == tpt.el.ttan.id then
  504.  tpt.set_property('ctype', tpt.element('ptrl'), x+math.random(-2,2),y+math.random(-2,2))
  505. end
  506. if calsu == tpt.el.glas.id and calsd == tpt.el.glas.id then
  507.  tpt.set_property('tmp2', 1, x+math.random(-2,2),y+math.random(-2,2))
  508. end
  509. end
  510. tpt.element_func(CALS, tpt.element('CALS'))
  511.  
  512. elements.element(elements.JWARD_PT_PRPN, elements.element(elements.DEFAULT_PT_CO2))
  513. elements.property(elements.JWARD_PT_PRPN, "Name", "PRPN")
  514. elements.property(elements.JWARD_PT_PRPN, "Description", "Propane. Explodes very easily.")
  515. elements.property(elements.JWARD_PT_PRPN, "Colour", 0xF4A26A)
  516. elements.property(elements.JWARD_PT_PRPN, "MenuSection", 5)
  517. elements.property(elements.JWARD_PT_PRPN, "Gravity", -0.02)
  518. elements.property(elements.JWARD_PT_PRPN, "Flammable", 3000)
  519. elements.property(elements.JWARD_PT_PRPN, "Explosive", 1)
  520. elements.property(elements.JWARD_PT_PRPN, "Loss", 0.75)
  521. elements.property(elements.JWARD_PT_PRPN, "AirLoss", 0.97)
  522. elements.property(elements.JWARD_PT_PRPN, "AirDrag", 0.01)
  523. elements.property(elements.JWARD_PT_PRPN, "Advection", 1)
  524. elements.property(elements.JWARD_PT_PRPN, "Weight", 0)
  525. elements.property(elements.JWARD_PT_PRPN, "Diffusion", 0.7)
  526. elements.property(elements.JWARD_PT_PRPN, "Meltable", 0)
  527. elements.property(elements.JWARD_PT_PRPN, "Hardness", 0)
  528. elements.property(elements.JWARD_PT_PRPN, "Falldown", 0)
  529. elements.property(elements.JWARD_PT_PRPN, "Properties", TYPE_GAS)
  530. elements.property(elements.JWARD_PT_PRPN, "State", ST_GAS)
  531. elements.property(elements.JWARD_PT_PRPN, "Temperature", 295.15)
  532. elements.property(elements.JWARD_PT_PRPN, "HeatConduct", 95)
  533. elements.property(elements.JWARD_PT_PRPN, "HighTemperature", 2379.15)
  534. elements.property(elements.JWARD_PT_PRPN, "HighTemperatureTransition", tpt.el.fire.id)
  535. elements.property(elements.JWARD_PT_PRPN, "LowTemperatureTransition", NT)
  536. function PRPN(i,x,y,s,n)
  537. calstmp = tpt.get_property("tmp2",x,y)
  538. if calstmp == 1 then
  539. tpt.parts[i].type = tpt.element('PTRL')
  540. end
  541. end
  542. tpt.element_func(PRPN,propane)
  543.  
  544. --kerosene
  545. local KEROSENEGAS = elements.allocate("JWARD", "KERV")
  546. local KEROSENE = elements.allocate("JWARD", "KERO")
  547. elements.element(elements.JWARD_PT_KERO, elements.element(elements.DEFAULT_PT_GEL))
  548. elements.property(elements.JWARD_PT_KERO, "Name", "KERO")
  549. elements.property(elements.JWARD_PT_KERO, "Description", "KERO BURNS HOT AND QUICK")
  550. elements.property(elements.JWARD_PT_KERO, "Colour", 0x01B3D7)
  551. elements.property(elements.JWARD_PT_KERO, "MenuSection", 5)
  552. elements.property(elements.JWARD_PT_KERO, "Gravity", .04)
  553. elements.property(elements.JWARD_PT_KERO, "Flammable", 500)
  554. elements.property(elements.JWARD_PT_KERO, "Explosive", 1)
  555. elements.property(elements.JWARD_PT_KERO, "Loss", 1)
  556. elements.property(elements.JWARD_PT_KERO, "AirLoss", .5)
  557. elements.property(elements.JWARD_PT_KERO, "AirDrag", .01)
  558. elements.property(elements.JWARD_PT_KERO, "Advection", .01)
  559. elements.property(elements.JWARD_PT_KERO, "Weight", 5)
  560. elements.property(elements.JWARD_PT_KERO, "State", ST_liquid)
  561. elements.property(elements.JWARD_PT_KERO, "Properties", elem.TYPE_LIQUID+elem.PROP_DEADLY)
  562. elements.property(elements.JWARD_PT_KERO, "HighTemperature", 393.15)
  563. elements.property(elements.JWARD_PT_KERO, "HighTemperatureTransition", elements.JWARD_PT_KERV)
  564. function KERO(i,x,y,s,n)
  565. reaction = tpt.get_property("type",x+math.random(-1,1),y+math.random(-1,1))
  566. calstmp = tpt.get_property("tmp",x,y)
  567. if calstmp == 2 then
  568. if reaction == petrol then
  569. tpt.parts[i].type = tpt.element('JETB')
  570. reaction = nil
  571. end
  572. end
  573. end
  574. tpt.element_func(KERO,KEROSENE)
  575.  
  576. elements.element(elements.JWARD_PT_KERV, elements.element(elements.DEFAULT_PT_HYGN))
  577. elements.property(elements.JWARD_PT_KERV, "Name", "KERV")
  578. elements.property(elements.JWARD_PT_KERV, "Description", "kerosene gas")
  579. elements.property(elements.JWARD_PT_KERV, "Colour", 0x01B3D7)
  580. elements.property(elements.JWARD_PT_KERV, "MenuVisible", 0)
  581. elements.property(elements.JWARD_PT_KERV, "Gravity", -0.02)
  582. elements.property(elements.JWARD_PT_KERV, "Flammable", 600)
  583. elements.property(elements.JWARD_PT_KERV, "Explosive", 1)
  584. elements.property(elements.JWARD_PT_KERV, "Loss", 0.75)
  585. elements.property(elements.JWARD_PT_KERV, "AirLoss", 0.97)
  586. elements.property(elements.JWARD_PT_KERV, "AirDrag", 0.01)
  587. elements.property(elements.JWARD_PT_KERV, "Advection", 1)
  588. elements.property(elements.JWARD_PT_KERV, "Weight", 0)
  589. elements.property(elements.JWARD_PT_KERV, "Diffusion", 0.7)
  590. elements.property(elements.JWARD_PT_KERV, "Meltable", 0)
  591. elements.property(elements.JWARD_PT_KERV, "Hardness", 0)
  592. elements.property(elements.JWARD_PT_KERV, "Falldown", 0)
  593. elements.property(elements.JWARD_PT_KERV, "Properties", TYPE_GAS)
  594. elements.property(elements.JWARD_PT_KERV, "State", ST_GAS)
  595. elements.property(elements.JWARD_PT_KERV, "Temperature", 403.15)
  596. elements.property(elements.JWARD_PT_KERV, "HeatConduct", 195)
  597. elements.property(elements.JWARD_PT_KERV, "LowTemperature", 393.15)
  598. elements.property(elements.JWARD_PT_KERV, "LowTemperatureTransition", elements.JWARD_PT_KERO)
  599.  
  600. --jetfuel
  601. local JETFUEL = elements.allocate("JWARD", "JETB")
  602. elements.element(elements.JWARD_PT_JETB, elements.element(elements.DEFAULT_PT_GEL))
  603. elements.property(elements.JWARD_PT_JETB, "Name", "JETB")
  604. elements.property(elements.JWARD_PT_JETB, "Description", "Jet b type fuel-blend of Kero and Ptrl for jet engines")
  605. elements.property(elements.JWARD_PT_JETB, "Colour", 0x676601)
  606. elements.property(elements.JWARD_PT_JETB, "MenuSection", 5)
  607. elements.property(elements.JWARD_PT_JETB, "Gravity", .04)
  608. elements.property(elements.JWARD_PT_JETB, "Flammable", 5000)
  609. elements.property(elements.JWARD_PT_JETB, "Explosive", 1)
  610. elements.property(elements.JWARD_PT_JETB, "Loss", 0.8)
  611. elements.property(elements.JWARD_PT_JETB, "AirLoss", 0.94)
  612. elements.property(elements.JWARD_PT_JETB, "AirDrag", 0.02)
  613. elements.property(elements.JWARD_PT_JETB, "Advection", 0.8)
  614. elements.property(elements.JWARD_PT_JETB, "HighTemperature", 353.15)
  615. elements.property(elements.JWARD_PT_JETB, "Weight", 13)
  616. elements.property(elements.JWARD_PT_JETB, "State", ST_liquid)
  617. elements.property(elements.JWARD_PT_JETB, "Properties", elem.TYPE_LIQUID+elem.PROP_DEADLY)
  618. elements.property(elements.JWARD_PT_JETB, "LowTemperature", 225.15)
  619. elements.property(elements.JWARD_PT_JETB, "LowTemperatureTransition", elements.DEFAULT_PT_ICE)
  620.  
  621. --tar
  622. local TARGAS = elements.allocate("JWARD", "TARV")
  623. local TAR = elements.allocate("JWARD", "TAR")
  624. elements.element(elements.JWARD_PT_TAR, elements.element(elements.DEFAULT_PT_SOAP))
  625. elements.property(elements.JWARD_PT_TAR, "Name", "TAR")
  626. elements.property(elements.JWARD_PT_TAR, "Description", "tar hard to burn")
  627. elements.property(elements.JWARD_PT_TAR, "Colour", 0x0D0D03)
  628. elements.property(elements.JWARD_PT_TAR, "MenuSection", 5)
  629. elements.property(elements.JWARD_PT_TAR, "Gravity", .1)
  630. elements.property(elements.JWARD_PT_TAR, "Flammable", 2)
  631. elements.property(elements.JWARD_PT_TAR, "Explosive", 0)
  632. elements.property(elements.JWARD_PT_TAR, "Loss", 1)
  633. elements.property(elements.JWARD_PT_TAR, "AirLoss", .5)
  634. elements.property(elements.JWARD_PT_TAR, "AirDrag", .01)
  635. elements.property(elements.JWARD_PT_TAR, "Advection", .01)
  636. elements.property(elements.JWARD_PT_TAR, "Diffusion", 0.01)
  637. elements.property(elements.JWARD_PT_TAR, "State", ST_liquid)
  638. elements.property(elements.JWARD_PT_TAR, "Weight", 50)
  639. elements.property(elements.JWARD_PT_TAR, "Properties", elem.TYPE_LIQUID+elem.PROP_DEADLY)
  640. elements.property(elements.JWARD_PT_TAR, "HighTemperature", 873.15)
  641. elements.property(elements.JWARD_PT_TAR, "HighTemperatureTransition", elements.JWARD_PT_TARV)
  642.  
  643. elements.element(elements.JWARD_PT_TARV, elements.element(elements.DEFAULT_PT_HYGN))
  644. elements.property(elements.JWARD_PT_TARV, "Name", "TARV")
  645. elements.property(elements.JWARD_PT_TARV, "Description", "tar gas")
  646. elements.property(elements.JWARD_PT_TARV, "Colour", 0x4C2D20)
  647. elements.property(elements.JWARD_PT_TARV, "MenuVisible", 0)
  648. elements.property(elements.JWARD_PT_TARV, "Gravity", -0.02)
  649. elements.property(elements.JWARD_PT_TARV, "Flammable", 10)
  650. elements.property(elements.JWARD_PT_TARV, "Explosive", 0)
  651. elements.property(elements.JWARD_PT_TARV, "Loss", 0.75)
  652. elements.property(elements.JWARD_PT_TARV, "AirLoss", 0.97)
  653. elements.property(elements.JWARD_PT_TARV, "AirDrag", 0.01)
  654. elements.property(elements.JWARD_PT_TARV, "Advection", 1)
  655. elements.property(elements.JWARD_PT_TARV, "Weight", 0)
  656. elements.property(elements.JWARD_PT_TARV, "Diffusion", 0.7)
  657. elements.property(elements.JWARD_PT_TARV, "Meltable", 0)
  658. elements.property(elements.JWARD_PT_TARV, "Hardness", 0)
  659. elements.property(elements.JWARD_PT_TARV, "Falldown", 0)
  660. elements.property(elements.JWARD_PT_TARV, "Properties", TYPE_GAS)
  661. elements.property(elements.JWARD_PT_TARV, "State", ST_GAS)
  662. elements.property(elements.JWARD_PT_TARV, "Temperature", 403.15)
  663. elements.property(elements.JWARD_PT_TARV, "HeatConduct", 195)
  664. elements.property(elements.JWARD_PT_TARV, "LowTemperature", 873.15)
  665. elements.property(elements.JWARD_PT_TARV, "LowTemperatureTransition", elements.JWARD_PT_TAR)
  666.  
  667. --wax
  668. local WAXGAS = elements.allocate("JWARD", "WAXV")
  669. elements.element(elements.JWARD_PT_WAXV, elements.element(elements.DEFAULT_PT_HYGN))
  670. elements.property(elements.JWARD_PT_WAXV, "Name", "WAXV")
  671. elements.property(elements.JWARD_PT_WAXV, "Description", "wax gas")
  672. elements.property(elements.JWARD_PT_WAXV, "Colour", 0xF0F0BB)
  673. elements.property(elements.JWARD_PT_WAXV, "MenuSection", SC_GAS)
  674. elements.property(elements.JWARD_PT_WAXV, "Gravity", -0.02)
  675. elements.property(elements.JWARD_PT_WAXV, "Flammable", 500)
  676. elements.property(elements.JWARD_PT_WAXV, "Explosive", 0)
  677. elements.property(elements.JWARD_PT_WAXV, "Loss", 0.75)
  678. elements.property(elements.JWARD_PT_WAXV, "AirLoss", 0.97)
  679. elements.property(elements.JWARD_PT_WAXV, "AirDrag", 0.01)
  680. elements.property(elements.JWARD_PT_WAXV, "Advection", 1)
  681. elements.property(elements.JWARD_PT_WAXV, "Weight", 0)
  682. elements.property(elements.JWARD_PT_WAXV, "Diffusion", 0.7)
  683. elements.property(elements.JWARD_PT_WAXV, "Meltable", 0)
  684. elements.property(elements.JWARD_PT_WAXV, "Hardness", 0)
  685. elements.property(elements.JWARD_PT_WAXV, "Falldown", 0)
  686. elements.property(elements.JWARD_PT_WAXV, "Properties", TYPE_GAS)
  687. elements.property(elements.JWARD_PT_WAXV, "State", ST_GAS)
  688. elements.property(elements.JWARD_PT_WAXV, "Temperature", 833.15)
  689. elements.property(elements.JWARD_PT_WAXV, "HeatConduct", 195)
  690. elements.property(elements.JWARD_PT_WAXV, "LowTemperature", 823.15)
  691. elements.property(elements.JWARD_PT_WAXV, "LowTemperatureTransition", elements.DEFAULT_PT_WAX)
  692.  
  693. --coke
  694. local CoalCoke = elements.allocate("JWARD", "COKE")
  695. elements.element(elements.JWARD_PT_COKE, elements.element(elements.DEFAULT_PT_BCOL))
  696. elements.property(elements.JWARD_PT_COKE, "Name", "COKE")
  697. elements.property(elements.JWARD_PT_COKE, "Description", "COAL COKE. Burns for a long time and hot.")
  698. elements.property(elements.JWARD_PT_COKE, "Colour", 0xAAAAAA)
  699. elements.property(elements.JWARD_PT_COKE, "MenuSection", 5)
  700. elements.property(elements.JWARD_PT_COKE, "Gravity", .35)
  701. elements.property(elements.JWARD_PT_COKE, "Flammable", 0)
  702. elements.property(elements.JWARD_PT_COKE, "Explosive", 0)
  703. elements.property(elements.JWARD_PT_COKE, "Loss", 0.15)
  704. elements.property(elements.JWARD_PT_COKE, "AirLoss", 0.96)
  705. elements.property(elements.JWARD_PT_COKE, "AirDrag", 0.03)
  706. elements.property(elements.JWARD_PT_COKE, "Advection", 0.4)
  707. elements.property(elements.JWARD_PT_COKE, "Weight", 78)
  708. elements.property(elements.JWARD_PT_COKE, "Diffusion", 0)
  709. elements.property(elements.JWARD_PT_COKE, "Falldown", 1)
  710. COKEUpdate = function(i, x, y, s, n)
  711.  local clife = tpt.get_property('life', x, y)
  712.  if clife > 1 then
  713.  for cx = -1, 1, 2 do
  714.  for cy = -1, 1, 2 do
  715.  tpt.create(x + cx, y + cy, 'fire')
  716.  tpt.set_property('temp', 1700, x, y)
  717.  end
  718.  end
  719.  tpt.set_property('life', clife - 1, x, y)
  720.  elseif clife == 1 then
  721.  tpt.set_property('type', 0, x, y)
  722.  elseif s > 0 then
  723.  for cx = -1, 1, 2 do
  724.  for cy = -1, 1, 2 do
  725.  if tpt.get_property('type', x + cx, y + cy) == 4 or tpt.get_property('type', x + cx, y + cy) == 49 then
  726.  tpt.set_property('life', 500, x, y)
  727.  return true
  728.  end
  729.  end
  730.  end
  731.  end
  732. end
  733. tpt.element_func(COKEUpdate, tpt.element('coke'))
  734.  
  735. COALUpdate = function(i, x, y, s, n)
  736. dis = tpt.get_property('temp', x, y)
  737. if dis > 773.15 and buttonable == 0 then
  738. tpt.parts[i].type = tpt.element('COKE')
  739.  tpt.set_property('life', 0, x, y)
  740.   tpt.create(x, y + 1, 'CRST')
  741.   tpt.create(x, y - 1, 'TAR')
  742. end
  743. end
  744. tpt.element_func(COALUpdate, tpt.element('coal'))
  745.  
  746. BCOLUpdate = function(i, x, y, s, n)
  747. dis = tpt.get_property('temp', x, y)
  748. if dis > 773.15 and buttonable == 0 then
  749. tpt.parts[i].type = tpt.element('COKE')
  750.  tpt.set_property('life', 0, x, y)
  751.   tpt.create(x, y + 1, 'CRST')
  752.   tpt.create(x, y - 1, 'TAR')
  753. end
  754. end
  755. tpt.element_func(BCOLUpdate, tpt.element('bcol'))
  756.  
  757. local CreosoteGas = elements.allocate("JWARD", "CRTV")
  758. elements.element(elements.JWARD_PT_CRTV, elements.element(elements.DEFAULT_PT_BOYL))
  759. elements.property(elements.JWARD_PT_CRTV, "Name", "CRTV")
  760. elements.property(elements.JWARD_PT_CRTV, "Description", "creosote gas")
  761. elements.property(elements.JWARD_PT_CRTV, "Colour", 0x585117)
  762. elements.property(elements.JWARD_PT_CRTV, "MenuVisible", 0)
  763. elements.property(elements.JWARD_PT_CRTV, "Gravity", -0.02)
  764. elements.property(elements.JWARD_PT_CRTV, "Explosive", 0)
  765. elements.property(elements.JWARD_PT_CRTV, "Loss", 0.75)
  766. elements.property(elements.JWARD_PT_CRTV, "AirDrag", 0.01)
  767. elements.property(elements.JWARD_PT_CRTV, "Advection", 1)
  768. elements.property(elements.JWARD_PT_CRTV, "Weight", 0)
  769. elements.property(elements.JWARD_PT_CRTV, "Diffusion", 0.7)
  770. elements.property(elements.JWARD_PT_CRTV, "Hardness", 0)
  771. elements.property(elements.JWARD_PT_CRTV, "Falldown", 0)
  772. elements.property(elements.JWARD_PT_CRTV, "Properties", elem.TYPE_GAS)
  773. elements.property(elements.JWARD_PT_CRTV, "State", ST_GAS)
  774. elements.property(elements.JWARD_PT_CRTV, "Temperature", 883.15)
  775. elements.property(elements.JWARD_PT_CRTV, "HeatConduct", 81)
  776. function CRTV(i,x,y,s,n)
  777.  dis = tpt.get_property('temp', x, y)
  778. if dis < 873.15 then
  779. tpt.parts[i].type = tpt.element('CRST')
  780. end
  781. end
  782. tpt.element_func(CRTV,CreosoteGas)
  783.  
  784. local Creosote = elements.allocate("JWARD", "CRST")
  785. elements.element(elements.JWARD_PT_CRST, elements.element(elements.DEFAULT_PT_SOAP))
  786. elements.property(elements.JWARD_PT_CRST, "Name", "CRST")
  787. elements.property(elements.JWARD_PT_CRST, "Description", "creosote ")
  788. elements.property(elements.JWARD_PT_CRST, "Colour", 0x0F0E04)
  789. elements.property(elements.JWARD_PT_CRST, "MenuSection", SC_LIQUID)
  790. elements.property(elements.JWARD_PT_CRST, "Gravity", .04)
  791. elements.property(elements.JWARD_PT_CRST, "Flammable", 10)
  792. elements.property(elements.JWARD_PT_CRST, "Explosive", 0)
  793. elements.property(elements.JWARD_PT_CRST, "Loss", 1)
  794. elements.property(elements.JWARD_PT_CRST, "AirLoss", .5)
  795. elements.property(elements.JWARD_PT_CRST, "AirDrag", .01)
  796. elements.property(elements.JWARD_PT_CRST, "Advection", .01)
  797. elements.property(elements.JWARD_PT_CRST, "Weight", 5)
  798. elements.property(elements.JWARD_PT_CRST, "State", ST_liquid)
  799. elements.property(elements.JWARD_PT_CRST, "Properties", elem.TYPE_LIQUID)
  800. elements.property(elements.JWARD_PT_CRST, "HighTemperature", 873)
  801. elements.property(elements.JWARD_PT_CRST, "HighTemperatureTransition", elements.JWARD_PT_CRTV)
  802. --crude oil
  803. function OIL(i,x,y,s,n)
  804. calstmp = tpt.get_property("tmp",x,y)
  805. calsctype = tpt.get_property("ctype",x,y)
  806. calstype = tpt.get_property("type",x + math.random(-1,1),y + math.random(-1,1))
  807. if calsctype == tpt.element('ptrl') and calstmp == 2 and calstype == tpt.element('ptrl') then
  808. tpt.parts[i].type = tpt.element('ptrl')
  809. end
  810. end
  811. tpt.element_func(OIL,tpt.element('oil'))
  812.  
  813. local OILCRUDE = elements.allocate("JWARD", "OILC")
  814. elements.element(elements.JWARD_PT_OILC, elements.element(elements.DEFAULT_PT_GEL))
  815. elements.property(elements.JWARD_PT_OILC, "Name", "OILC")
  816. elements.property(elements.JWARD_PT_OILC, "Description", "Crude oil can be distilled, didn't name it coil for a reason")
  817. elements.property(elements.JWARD_PT_OILC, "Colour", 0x35350D)
  818. elements.property(elements.JWARD_PT_OILC, "MenuSection", 7)
  819. elements.property(elements.JWARD_PT_OILC, "Gravity", .04)
  820. elements.property(elements.JWARD_PT_OILC, "Flammable", 50)
  821. elements.property(elements.JWARD_PT_OILC, "Explosive", 0)
  822. elements.property(elements.JWARD_PT_OILC, "Loss", 1)
  823. elements.property(elements.JWARD_PT_OILC, "AirLoss", .5)
  824. elements.property(elements.JWARD_PT_OILC, "AirDrag", .01)
  825. elements.property(elements.JWARD_PT_OILC, "Advection", .01)
  826. elements.property(elements.JWARD_PT_OILC, "Weight", 5)
  827. elements.property(elements.JWARD_PT_OILC, "State", ST_liquid)
  828. elements.property(elements.JWARD_PT_OILC, "Properties", elem.TYPE_LIQUID+elem.PROP_DEADLY)
  829. function OILC(i,x,y,s,n)
  830.  dis = tpt.get_property('temp', x, y)
  831.  if dis > 973.15 then
  832.  tpt.set_property('tmp', math.random(1,9), x, y)
  833. end
  834. oillife = tpt.get_property('tmp', x, y)
  835.   if oillife == 9 then
  836.   tpt.parts[i].type = tpt.element('crtv')
  837.   oillife = nil
  838.   end
  839.   if oillife == 8 then
  840.   tpt.parts[i].type = tpt.element('gas')
  841.   oillife = nil
  842.   end
  843.   if oillife == 7 then
  844.   tpt.parts[i].type = tpt.element('kerv')
  845.   oillife = nil
  846.   end
  847.   if oillife == 6 then
  848.   tpt.parts[i].type = tpt.element('ptlv')
  849.   oillife = nil
  850.   end
  851.   if oillife == 5 then
  852.   tpt.parts[i].type = tpt.element('dslv')
  853.   oillife = nil
  854.   end
  855.   if oillife == 4 then
  856.   tpt.parts[i].type = tpt.element('waxv')
  857.   oillife = nil
  858.   end
  859.   if oillife == 3 then
  860.   tpt.parts[i].type = tpt.element('coke')
  861.   oillife = nil
  862.   end
  863.   if oillife == 2 then
  864.   tpt.parts[i].type = tpt.element('tarv')
  865.   oillife = nil
  866.   end
  867.   if oillife == 1 then
  868.   tpt.parts[i].type = tpt.element('PRPN')
  869.   oillife = nil
  870.   end
  871. end
  872. tpt.element_func(OILC,OILCRUDE)
  873.  
  874. --more default
  875. elements.property(elements.DEFAULT_PT_GAS, "HighPressureTransition", 256)
  876. elements.property(elements.DEFAULT_PT_GAS, "LowTemperature", 573.15)
  877. elements.property(elements.DEFAULT_PT_GAS, "HotAir", 0)
  878. elements.property(elements.DEFAULT_PT_GAS, "LowTemperatureTransition", elements.DEFAULT_PT_OIL)
  879. elements.property(elements.DEFAULT_PT_GAS, "Temperature", 583.15)
  880. elements.property(elements.DEFAULT_PT_GAS, "HighTemperature", 10000)
  881. elements.property(elements.DEFAULT_PT_LN2, "HighTemperatureTransition", elements.JWARD_PT_N2)
  882. elements.property(elements.DEFAULT_PT_OIL, "HighTemperature", 573.15)
  883. elements.property(elements.DEFAULT_PT_OIL, "HighTemperatureTransition", elements.DEFAULT_PT_GAS)
  884. elements.property(elements.DEFAULT_PT_DESL, "HighTemperatureTransition", elements.JWARD_PT_DSLV)
  885. elements.property(elements.DEFAULT_PT_DESL, "HighTemperature", 473.15)
  886. elements.property(elements.DEFAULT_PT_DESL, "LowTemperature", 255.15)
  887. elements.property(elements.DEFAULT_PT_DESL, "LowTemperatureTransition", elements.DEFAULT_PT_ICE)
  888. elements.property(elements.DEFAULT_PT_DESL, "Weight", 12)
  889. elements.property(elements.DEFAULT_PT_MWAX, "HighTemperatureTransition", elements.JWARD_PT_WAXV)
  890. elements.property(elements.DEFAULT_PT_MWAX, "HighTemperature", 823.15)
  891. elements.property(elements.DEFAULT_PT_WAX, "HeatConduct", 25)
  892. --button
  893. --http://powdertoy.co.uk/Wiki/W/Lua.html
  894. topress = 0
  895. thx = 0
  896. buttonable = 0
  897.  
  898. function tick()
  899.  if thx == 1 then
  900.  tpt.message_box("thanks "..tpt.get_name().." for your purchase,","construction or theft of jward's fuel mod")
  901.  thx = 0
  902.  end
  903.  if tpt.version.jacob1s_mod then
  904. tpt.drawrect(597, 1, 14, 14, 255, 255, 255)
  905. tpt.fillrect(597, 1, 14, 14, 0, 0, 0, 255)
  906. tpt.drawtext(598, 5, "JW", 255, 255, 255, 255)
  907. topress = 1
  908. end
  909. if toopress == 1 then
  910.  tpt.fillrect(597, 1, 14, 14, 255, 255, 255, 255)
  911.  tpt.drawtext(598, 5, "JW", 0, 0, 0, 255)
  912.  tpt.drawrect(0, 0, 200, 200, 255, 255, 255)
  913.  tpt.fillrect(0, 0, 200, 200, 0, 0, 0, 255)
  914.  tpt.drawtext(10, 5, "JWARD's Mod options", 255, 255, 255, 255)
  915.  tpt.drawrect(10, 174, 60, 16, 255, 255, 255)
  916.  tpt.drawtext(25, 178, "close", 255, 255, 255, 255)
  917.  tpt.drawrect(10, 150, 15, 15, 255, 255, 255)
  918.  tpt.drawrect(35, 150, 15, 15, 255, 255, 255)
  919.  tpt.drawtext(13, 154, "on", 255, 255, 255, 255)
  920.  tpt.drawtext(37, 154, "off", 255, 255, 255, 255)
  921.  tpt.drawtext(10, 135, "antisave breaking", 255, 255, 255, 255)
  922.  tpt.drawrect(80, 174, 60, 16, 255, 255, 255)
  923.  tpt.drawtext(88, 178, ">THanKs<", 255, 255, 255, 255)
  924. end
  925. end
  926. function pressthingy()
  927. if topress == 1 then
  928.  if tpt.mousex >= 597 and tpt.mousey >= 1 and tpt.mousex <= 611 and tpt.mousey <= 14 then
  929.  open = 1
  930.  windowclick = 1
  931.  end
  932.  if  tpt.mousex >= 0 and tpt.mousey >= 0 and tpt.mousex <= 200 and tpt.mousey <= 200 and windowclick == 1 then
  933.  open = 1
  934.  end
  935.  if open == 1 then
  936.  if  tpt.mousex >= 10 and tpt.mousey >= 174 and tpt.mousex <= 70 and tpt.mousey <= 190 then
  937.  open = 0
  938.  toopress = 0
  939.  windowclick = 0
  940.  end
  941.  if  tpt.mousex >= 80 and tpt.mousey >= 174 and tpt.mousex <= 150 and tpt.mousey <= 190 then
  942.  thx = 1
  943.  end
  944.  if  tpt.mousex >= 10 and tpt.mousey >= 150 and tpt.mousex <= 25 and tpt.mousey <= 165 then
  945.  elements.property(elements.DEFAULT_PT_ACID, "Diffusion", 0)
  946. elements.property(elements.DEFAULT_PT_ACID, "Gravity", 0.1)
  947. elements.property(elements.DEFAULT_PT_ACID, "Description", "Dissolves almost everything.")
  948. elements.property(elements.DEFAULT_PT_ACID, "Flammable", 40)
  949. elements.property(elements.DEFAULT_PT_INSL, "Hardness", 10)
  950. elements.property(elements.DEFAULT_PT_INSL, "Flammable", 7)
  951. elements.property(elements.DEFAULT_PT_LN2, "HighTemperature", 77)
  952. elements.property(elements.DEFAULT_PT_LN2, "HighTemperatureTransition", elements.DEFAULT_PT_NONE)
  953. elements.property(elements.DEFAULT_PT_WATR, "Hardness", 20)
  954. elements.property(elements.DEFAULT_PT_WATR, "Weight", 30)
  955. elements.property(elements.DEFAULT_PT_DSTW, "Hardness", 20)
  956. elements.property(elements.DEFAULT_PT_DSTW, "Weight", 30)
  957. elements.property(elements.DEFAULT_PT_SLTW, "Hardness", 20)
  958. elements.property(elements.DEFAULT_PT_SLTW, "Weight", 35)
  959. elements.property(elements.DEFAULT_PT_BUBW, "Hardness", 20)
  960. elements.property(elements.DEFAULT_PT_BUBW, "Weight", 30)
  961. elements.property(elements.DEFAULT_PT_GAS, "HighPressureTransition", elements.DEFAULT_PT_OIL)
  962. elements.property(elements.DEFAULT_PT_GAS, "LowTemperature", 0)
  963. elements.property(elements.DEFAULT_PT_GAS, "HotAir", 0.001)
  964. elements.property(elements.DEFAULT_PT_GAS, "LowTemperatureTransition", DEFAULT_PT_GAS)
  965. elements.property(elements.DEFAULT_PT_GAS, "HighTemperatureTransition", elements.DEFAULT_PT_FIRE)
  966. elements.property(elements.DEFAULT_PT_GAS, "Temperature", 273.15)
  967. elements.property(elements.DEFAULT_PT_GAS, "HighTemperature", 573)
  968. elements.property(elements.DEFAULT_PT_GAS, "HighPressure", 6)
  969. elements.property(elements.DEFAULT_PT_OIL, "HighTemperature", 333)
  970. elements.property(elements.DEFAULT_PT_OIL, "HighTemperatureTransition", elements.DEFAULT_PT_GAS)
  971. elements.property(elements.DEFAULT_PT_DESL, "LowTemperature", NT)
  972. elements.property(elements.DEFAULT_PT_DESL, "LowTemperatureTransition", ITL)
  973. elements.property(elements.DEFAULT_PT_DESL, "Weight", 15)
  974. elements.property(elements.DEFAULT_PT_DESL, "HighPressure", 2)
  975. buttonable = 1
  976.  end
  977.  if  tpt.mousex >= 35 and tpt.mousey >= 150 and tpt.mousex <= 50 and tpt.mousey <= 165 then
  978.  elements.property(elements.DEFAULT_PT_ACID, "Diffusion", 1.2)
  979. elements.property(elements.DEFAULT_PT_ACID, "Gravity", 0.62)
  980. elements.property(elements.DEFAULT_PT_ACID, "Description", "Bubbling caustic liquid.")
  981. elements.property(elements.DEFAULT_PT_ACID, "Flammable", 0)
  982. elements.property(elements.DEFAULT_PT_INSL, "Hardness", 0)
  983. elements.property(elements.DEFAULT_PT_INSL, "Flammable", 0)
  984. elements.property(elements.DEFAULT_PT_LN2, "HighTemperature", 76)
  985. elements.property(elements.DEFAULT_PT_LN2, "HighTemperatureTransition", elements.JWARD_PT_N2)
  986. elements.property(elements.DEFAULT_PT_WATR, "Hardness", 0.25)
  987. elements.property(elements.DEFAULT_PT_WATR, "Weight", 32)
  988. elements.property(elements.DEFAULT_PT_DSTW, "Hardness", 0)
  989. elements.property(elements.DEFAULT_PT_DSTW, "Weight", 32)
  990. elements.property(elements.DEFAULT_PT_SLTW, "Hardness", 0)
  991. elements.property(elements.DEFAULT_PT_SLTW, "Weight", 32)
  992. elements.property(elements.DEFAULT_PT_BUBW, "Hardness", 0)
  993. elements.property(elements.DEFAULT_PT_BUBW, "Weight", 32)
  994. elements.property(elements.DEFAULT_PT_GAS, "HighPressureTransition", 256)
  995. elements.property(elements.DEFAULT_PT_GAS, "LowTemperature", 573.15)
  996. elements.property(elements.DEFAULT_PT_GAS, "HotAir", 0)
  997. elements.property(elements.DEFAULT_PT_GAS, "LowTemperatureTransition", elements.DEFAULT_PT_OIL)
  998. elements.property(elements.DEFAULT_PT_GAS, "HighTemperatureTransition", NT)
  999. elements.property(elements.DEFAULT_PT_GAS, "Temperature", 583.15)
  1000. elements.property(elements.DEFAULT_PT_GAS, "HighTemperature", 10000)
  1001. elements.property(elements.DEFAULT_PT_OIL, "HighTemperature", 573.15)
  1002. elements.property(elements.DEFAULT_PT_OIL, "HighTemperatureTransition", elements.DEFAULT_PT_GAS)
  1003. elements.property(elements.DEFAULT_PT_DESL, "HighTemperatureTransition", elements.JWARD_PT_DSLV)
  1004. elements.property(elements.DEFAULT_PT_DESL, "HighTemperature", 473.15)
  1005. elements.property(elements.DEFAULT_PT_DESL, "LowTemperature", 255.15)
  1006. elements.property(elements.DEFAULT_PT_DESL, "LowTemperatureTransition", elements.DEFAULT_PT_ICE)
  1007. elements.property(elements.DEFAULT_PT_DESL, "Weight", 12)
  1008. elements.property(elements.DEFAULT_PT_DESL, "HighPressure", 256)
  1009. buttonable = 0
  1010.  end
  1011.  tpt.hud(0)
  1012.  tpt.set_pause(1)
  1013.  toopress = 1
  1014.  return false
  1015.  else
  1016.  toopress = 0
  1017.  tpt.set_pause(0)
  1018.  tpt.hud(1)
  1019.  return true
  1020. end
  1021. end
  1022. end
  1023.  
  1024. tpt.register_mouseclick(pressthingy)
  1025. tpt.register_step(tick)
  1026. if not tpt.version.jacob1s_mod then
  1027. local a = "1"
  1028. local b = Window:new(-1,-1,200,200)
  1029. local c = Label:new(10,5,140,16, "JWARD's Mod options")
  1030. local d = Label:new(10,25,121,16, "")
  1031. local e =       Label:new(10,85,170,16,"")
  1032. local f =       Label:new(135,5,88,16, "")
  1033. local g = Label:new(10,95,180,16, "")
  1034. local h = Label:new(10,105,170,16,"")
  1035. local i = Label:new(10,125,180,16,"")
  1036. local j = Label:new(10,135,170,16,"antisave breaking")
  1037.  
  1038.  
  1039. local Close = Button:new(10, 174, 60, 16, "Close")
  1040. local thanks = Button:new(80, 174, 60, 16, ">THanKs<")
  1041. local on = Button:new(10, 150, 15, 15, "on")
  1042. local off = Button:new(35, 150, 15, 15, "off")
  1043.  
  1044. Close:action(function() interface.closeWindow(b) end)
  1045. b:onTryExit(function() interface.closeWindow(b) end)
  1046.  
  1047. thanks:action(function()
  1048. interface.closeWindow(b)
  1049. thx = 1
  1050. end)
  1051. --on off old save option thingy
  1052. on:action(
  1053. function()
  1054. elements.property(elements.DEFAULT_PT_ACID, "Diffusion", 0)
  1055. elements.property(elements.DEFAULT_PT_ACID, "Gravity", 0.1)
  1056. elements.property(elements.DEFAULT_PT_ACID, "Description", "Dissolves almost everything.")
  1057. elements.property(elements.DEFAULT_PT_ACID, "Flammable", 40)
  1058. elements.property(elements.DEFAULT_PT_INSL, "Hardness", 10)
  1059. elements.property(elements.DEFAULT_PT_INSL, "Flammable", 7)
  1060. elements.property(elements.DEFAULT_PT_LN2, "HighTemperature", 77)
  1061. elements.property(elements.DEFAULT_PT_LN2, "HighTemperatureTransition", elements.DEFAULT_PT_NONE)
  1062. elements.property(elements.DEFAULT_PT_WATR, "Hardness", 20)
  1063. elements.property(elements.DEFAULT_PT_WATR, "Weight", 30)
  1064. elements.property(elements.DEFAULT_PT_DSTW, "Hardness", 20)
  1065. elements.property(elements.DEFAULT_PT_DSTW, "Weight", 30)
  1066. elements.property(elements.DEFAULT_PT_SLTW, "Hardness", 20)
  1067. elements.property(elements.DEFAULT_PT_SLTW, "Weight", 35)
  1068. elements.property(elements.DEFAULT_PT_BUBW, "Hardness", 20)
  1069. elements.property(elements.DEFAULT_PT_BUBW, "Weight", 30)
  1070. elements.property(elements.DEFAULT_PT_GAS, "HighPressureTransition", elements.DEFAULT_PT_OIL)
  1071. elements.property(elements.DEFAULT_PT_GAS, "LowTemperature", 0)
  1072. elements.property(elements.DEFAULT_PT_GAS, "HotAir", 0.001)
  1073. elements.property(elements.DEFAULT_PT_GAS, "LowTemperatureTransition", DEFAULT_PT_GAS)
  1074. elements.property(elements.DEFAULT_PT_GAS, "HighTemperatureTransition", elements.DEFAULT_PT_FIRE)
  1075. elements.property(elements.DEFAULT_PT_GAS, "Temperature", 273.15)
  1076. elements.property(elements.DEFAULT_PT_GAS, "HighTemperature", 573)
  1077. elements.property(elements.DEFAULT_PT_GAS, "HighPressure", 6)
  1078. elements.property(elements.DEFAULT_PT_OIL, "HighTemperature", 333)
  1079. elements.property(elements.DEFAULT_PT_OIL, "HighTemperatureTransition", elements.DEFAULT_PT_GAS)
  1080. elements.property(elements.DEFAULT_PT_DESL, "LowTemperature", NT)
  1081. elements.property(elements.DEFAULT_PT_DESL, "LowTemperatureTransition", ITL)
  1082. elements.property(elements.DEFAULT_PT_DESL, "Weight", 15)
  1083. elements.property(elements.DEFAULT_PT_DESL, "HighPressure", 2)
  1084. buttonable = 1
  1085. end
  1086. )
  1087.  
  1088. off:action(
  1089. function()
  1090. elements.property(elements.DEFAULT_PT_ACID, "Diffusion", 1.2)
  1091. elements.property(elements.DEFAULT_PT_ACID, "Gravity", 0.62)
  1092. elements.property(elements.DEFAULT_PT_ACID, "Description", "Bubbling caustic liquid.")
  1093. elements.property(elements.DEFAULT_PT_ACID, "Flammable", 0)
  1094. elements.property(elements.DEFAULT_PT_INSL, "Hardness", 0)
  1095. elements.property(elements.DEFAULT_PT_INSL, "Flammable", 0)
  1096. elements.property(elements.DEFAULT_PT_LN2, "HighTemperature", 76)
  1097. elements.property(elements.DEFAULT_PT_LN2, "HighTemperatureTransition", elements.JWARD_PT_N2)
  1098. elements.property(elements.DEFAULT_PT_WATR, "Hardness", 0.25)
  1099. elements.property(elements.DEFAULT_PT_WATR, "Weight", 32)
  1100. elements.property(elements.DEFAULT_PT_DSTW, "Hardness", 0)
  1101. elements.property(elements.DEFAULT_PT_DSTW, "Weight", 32)
  1102. elements.property(elements.DEFAULT_PT_SLTW, "Hardness", 0)
  1103. elements.property(elements.DEFAULT_PT_SLTW, "Weight", 32)
  1104. elements.property(elements.DEFAULT_PT_BUBW, "Hardness", 0)
  1105. elements.property(elements.DEFAULT_PT_BUBW, "Weight", 32)
  1106. elements.property(elements.DEFAULT_PT_GAS, "HighPressureTransition", 256)
  1107. elements.property(elements.DEFAULT_PT_GAS, "LowTemperature", 573.15)
  1108. elements.property(elements.DEFAULT_PT_GAS, "HotAir", 0)
  1109. elements.property(elements.DEFAULT_PT_GAS, "LowTemperatureTransition", elements.DEFAULT_PT_OIL)
  1110. elements.property(elements.DEFAULT_PT_GAS, "HighTemperatureTransition", NT)
  1111. elements.property(elements.DEFAULT_PT_GAS, "Temperature", 583.15)
  1112. elements.property(elements.DEFAULT_PT_GAS, "HighTemperature", 10000)
  1113. elements.property(elements.DEFAULT_PT_OIL, "HighTemperature", 573.15)
  1114. elements.property(elements.DEFAULT_PT_OIL, "HighTemperatureTransition", elements.DEFAULT_PT_GAS)
  1115. elements.property(elements.DEFAULT_PT_DESL, "HighTemperatureTransition", elements.JWARD_PT_DSLV)
  1116. elements.property(elements.DEFAULT_PT_DESL, "HighTemperature", 473.15)
  1117. elements.property(elements.DEFAULT_PT_DESL, "LowTemperature", 255.15)
  1118. elements.property(elements.DEFAULT_PT_DESL, "LowTemperatureTransition", elements.DEFAULT_PT_ICE)
  1119. elements.property(elements.DEFAULT_PT_DESL, "Weight", 12)
  1120. elements.property(elements.DEFAULT_PT_DESL, "HighPressure", 256)
  1121. buttonable = 0
  1122. end
  1123. )
  1124.  
  1125. b:addComponent(Close);
  1126. b:addComponent(on);
  1127. b:addComponent(off);
  1128. b:addComponent(thanks);
  1129.  
  1130. local Button1 = Button:new(613, 113, 15, 15, "JW", "Options for jward's mods")
  1131.  
  1132. Button1:action(function() interface.showWindow(b) end)
  1133.  
  1134. bb = Label:new(10,45,138,16, "")
  1135. cc = Label:new(10,55,60,16, "")
  1136. dd = Label:new(10,65,57,16, "")
  1137.  
  1138. b:addComponent(bb)
  1139. b:addComponent(dd)
  1140. b:addComponent(cc)
  1141. b:addComponent(c)
  1142. b:addComponent(d)
  1143. b:addComponent(e)
  1144. b:addComponent(f)
  1145. b:addComponent(g)
  1146. b:addComponent(h)
  1147. b:addComponent(i)
  1148. b:addComponent(j)
  1149.  
  1150. interface.addComponent(Button1)
  1151.  
  1152. local a1 = "2"
  1153. local b1 = Window:new(-1,-1,200,200)
  1154. local c1 = Label:new(10,5,80,16, "SECRET MODE")
  1155. local d1 = Label:new(10,15,121,16, "Created By RadioActiveLua")
  1156. local f1 =      Label:new(135,5,88,16, ("RAM V."..a))
  1157.  
  1158. local Close1 = Button:new(10, 174, 60, 16, "Close")
  1159.  
  1160. local Start1 = Button:new(10, 194, 60, 16, "Enter")
  1161.  
  1162. Close1:action(function() interface.closeWindow(b1) end)
  1163. b1:onTryExit(function() interface.closeWindow(b1) end)
  1164.  
  1165. b1:addComponent(Close1);
  1166. end
RAW Paste Data