Advertisement
Guest User

fuel mod 1.3a

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