nodes.lua.diff 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611
  1. 78,81c78,81
  2. < default:jungletree
  3. < default:junglewood
  4. < default:jungleleaves
  5. < default:junglesapling
  6. ---
  7. > default:jungle_tree
  8. > default:jungle_wood
  9. > default:jungle_leaves
  10. > default:jungle_sapling
  11. 131c131
  12. < default:junglegrass
  13. ---
  14. > default:jungle_grass
  15. 188c188
  16. < default:fence_junglewood
  17. ---
  18. > default:fence_jungle_wood
  19. 572c572
  20. < description = "Tree",
  21. ---
  22. > description = "Apple Tree",
  23. 583c583
  24. < description = "Wooden Planks",
  25. ---
  26. > description = "Apple Wood Planks",
  27. 593,595c593,610
  28. < description = "Sapling",
  29. < drawtype = "plantlike",
  30. < tiles = {"default_sapling.png"},
  31. ---
  32. > description = "Apple Tree Sapling",
  33. > drawtype = "nodebox",
  34. > paramtype = "light",
  35. > node_box = {
  36. > type = "fixed",
  37. > fixed = {
  38. > {-0.0625, -0.5, -0.0625, 0.0625, -0.3125, 0.0625}, -- NodeBox1
  39. > {-0.125, -0.375, -0.1875, 0.1875, 0, 0.1875}, -- NodeBox2
  40. > {0, -0.125, -0.0625, 0.1875, 0.125, 0.125}, -- NodeBox3
  41. > }
  42. > },
  43. > tiles = {"default_sapling_top.png",
  44. > "default_sapling_bottom.png",
  45. > "default_sapling_side.png",
  46. > "default_sapling_side.png",
  47. > "default_sapling_side.png",
  48. > "default_sapling_side.png"
  49. > },
  50. 600c615
  51. < walkable = false,
  52. ---
  53. > walkable = true,
  54. 611c626
  55. < minetest.get_node_timer(pos):start(math.random(2400,4800))
  56. ---
  57. > minetest.get_node_timer(pos):start(math.random(300, 1500))
  58. 629c644
  59. < description = "Leaves",
  60. ---
  61. > description = "Apple Tree Leaves",
  62. 659c674,681
  63. < drawtype = "plantlike",
  64. ---
  65. > drawtype = "nodebox",
  66. > node_box = {
  67. > type = "fixed",
  68. > fixed = {
  69. > {-0.25, -0.5, -0.25, 0.25, 0.0625, 0.25}, -- NodeBox1
  70. > {-0.0625, 0.0625, -0.0625, 0.0625, 0.25, 0.0625}, -- NodeBox2
  71. > }
  72. > },
  73. 683c705
  74. < minetest.register_node("default:jungletree", {
  75. ---
  76. > minetest.register_node("default:jungle_tree", {
  77. 685,686c707,708
  78. < tiles = {"default_jungletree_top.png", "default_jungletree_top.png",
  79. < "default_jungletree.png"},
  80. ---
  81. > tiles = {"default_jungle_tree_top.png", "default_jungle_tree_top.png",
  82. > "default_jungle_tree.png"},
  83. 695c717
  84. < minetest.register_node("default:junglewood", {
  85. ---
  86. > minetest.register_node("default:jungle_wood", {
  87. 699c721
  88. < tiles = {"default_junglewood.png"},
  89. ---
  90. > tiles = {"default_jungle_wood.png"},
  91. 705,706c727,728
  92. < minetest.register_node("default:jungleleaves", {
  93. < description = "Jungle Leaves",
  94. ---
  95. > minetest.register_node("default:jungle_leaves", {
  96. > description = "Jungle Tree Leaves",
  97. 709,710c731,732
  98. < tiles = {"default_jungleleaves.png"},
  99. < special_tiles = {"default_jungleleaves_simple.png"},
  100. ---
  101. > tiles = {"default_jungle_leaves.png"},
  102. > special_tiles = {"default_jungle_leaves_simple.png"},
  103. 717,718c739,740
  104. < {items = {'default:junglesapling'}, rarity = 20},
  105. < {items = {'default:jungleleaves'}}
  106. ---
  107. > {items = {'default:jungle_sapling'}, rarity = 20},
  108. > {items = {'default:jungle_leaves'}}
  109. 726,731c748,769
  110. < minetest.register_node("default:junglesapling", {
  111. < description = "Jungle Sapling",
  112. < drawtype = "plantlike",
  113. < tiles = {"default_junglesapling.png"},
  114. < inventory_image = "default_junglesapling.png",
  115. < wield_image = "default_junglesapling.png",
  116. ---
  117. > minetest.register_node("default:jungle_sapling", {
  118. > description = "Jungle Tree Sapling",
  119. > tiles = {
  120. > "default_jungle_sapling_top.png",
  121. > "default_jungle_sapling_bottom.png",
  122. > "default_jungle_sapling_side.png",
  123. > "default_jungle_sapling_side.png",
  124. > "default_jungle_sapling_side.png",
  125. > "default_jungle_sapling_side.png"
  126. > },
  127. > drawtype = "nodebox",
  128. > paramtype = "light",
  129. > node_box = {
  130. > type = "fixed",
  131. > fixed = {
  132. > {-0.0625, -0.5, -0.0625, 0.0625, -0.3125, 0.0625}, -- NodeBox1
  133. > {-0.25, -0.3125, -0.25, 0.25, 0, 0.25}, -- NodeBox3
  134. > {-0.125, -0.0625, -0.125, 0.1875, 0.125, 0.1875}, -- NodeBox4
  135. > }
  136. > },
  137. > inventory_image = "default_jungle_sapling.png",
  138. > wield_image = "default_jungle_sapling.png",
  139. 734c772
  140. < walkable = false,
  141. ---
  142. > walkable = true,
  143. 745c783
  144. < minetest.get_node_timer(pos):start(math.random(2400,4800))
  145. ---
  146. > minetest.get_node_timer(pos):start(math.random(300, 1500))
  147. 806,808c844,865
  148. < description = "Pine Sapling",
  149. < drawtype = "plantlike",
  150. < tiles = {"default_pine_sapling.png"},
  151. ---
  152. > description = "Pine Tree Sapling",
  153. > drawtype = "nodebox",
  154. > paramtype = "light",
  155. > node_box = {
  156. > type = "fixed",
  157. > fixed = {
  158. > {-0.0625, -0.5, -0.0625, 0.0625, -0.3125, 0.0625}, -- NodeBox1
  159. > {-0.3125, -0.375, -0.3125, 0.3125, -0.3125, 0.3125}, -- NodeBox2
  160. > {-0.25, -0.3125, -0.25, 0.25, -0.25, 0.25}, -- NodeBox3
  161. > {-0.1875, -0.25, -0.1875, 0.1875, -0.125, 0.1875}, -- NodeBox4
  162. > {-0.125, -0.1875, -0.125, 0.125, -0.0625, 0.125}, -- NodeBox5
  163. > {-0.0625, -0.0625, -0.0625, 0.0625, 0.0625, 0.0625}, -- NodeBox6
  164. > }
  165. > },
  166. > tiles = {
  167. > "default_pine_sapling_top.png",
  168. > "default_pine_sapling_bottom.png",
  169. > "default_pine_sapling_side.png",
  170. > "default_pine_sapling_side.png",
  171. > "default_pine_sapling_side.png",
  172. > "default_pine_sapling_side.png"
  173. > },
  174. 824c881
  175. < minetest.get_node_timer(pos):start(math.random(2400,4800))
  176. ---
  177. > minetest.get_node_timer(pos):start(math.random(300, 1500))
  178. 865c922
  179. < description = "Acacia Leaves",
  180. ---
  181. > description = "Acacia Tree Leaves",
  182. 887,888c944,960
  183. < drawtype = "plantlike",
  184. < tiles = {"default_acacia_sapling.png"},
  185. ---
  186. > drawtype = "nodebox",
  187. > paramtype = "light",
  188. > node_box = {
  189. > type = "fixed",
  190. > fixed = {
  191. > {-0.0625, -0.5, -0.0625, 0.0625, -0.3125, 0.0625}, -- NodeBox1
  192. > {-0.125, -0.375, -0.1875, 0.1875, 0, 0.1875}, -- NodeBox2
  193. > {0, -0.125, -0.0625, 0.1875, 0.125, 0.125}, -- NodeBox3
  194. > }
  195. > },
  196. > tiles = {"default_acacia_sapling_top.png",
  197. > "default_acacia_sapling_bottom.png",
  198. > "default_acacia_sapling_side.png",
  199. > "default_acacia_sapling_side.png",
  200. > "default_acacia_sapling_side.png",
  201. > "default_acacia_sapling_side.png"
  202. > },
  203. 893c965
  204. < walkable = false,
  205. ---
  206. > walkable = true,
  207. 904c976
  208. < minetest.get_node_timer(pos):start(math.random(2400,4800))
  209. ---
  210. > minetest.get_node_timer(pos):start(math.random(300, 1500))
  211. 944c1016
  212. < description = "Aspen Leaves",
  213. ---
  214. > description = "Aspen Tree Leaves",
  215. 965,966c1037,1053
  216. < drawtype = "plantlike",
  217. < tiles = {"default_aspen_sapling.png"},
  218. ---
  219. > drawtype = "nodebox",
  220. > paramtype = "light",
  221. > node_box = {
  222. > type = "fixed",
  223. > fixed = {
  224. > {-0.0625, -0.5, -0.0625, 0.0625, -0.3125, 0.0625}, -- NodeBox1
  225. > {-0.125, -0.375, -0.1875, 0.1875, 0, 0.1875}, -- NodeBox2
  226. > {0, -0.125, -0.0625, 0.1875, 0.125, 0.125}, -- NodeBox3
  227. > }
  228. > },
  229. > tiles = {"default_aspen_sapling_top.png",
  230. > "default_aspen_sapling_bottom.png",
  231. > "default_aspen_sapling_side.png",
  232. > "default_aspen_sapling_side.png",
  233. > "default_aspen_sapling_side.png",
  234. > "default_aspen_sapling_side.png"
  235. > },
  236. 971c1058
  237. < walkable = false,
  238. ---
  239. > walkable = true,
  240. 982c1069
  241. < minetest.get_node_timer(pos):start(math.random(2400,4800))
  242. ---
  243. > minetest.get_node_timer(pos):start(math.random(300, 1500))
  244. 1147c1234,1243
  245. < drawtype = "plantlike",
  246. ---
  247. > drawtype = "nodebox",
  248. > node_box = {
  249. > type = "fixed",
  250. > fixed = {
  251. > {0.1875, -0.5, 0.1875, 0.4375, 0.5, 0.4375}, -- NodeBox1
  252. > {0.1875, -0.5, -0.4375, 0.4375, 0.5, -0.1875}, -- NodeBox2
  253. > {-0.4375, -0.5, -0.4375, -0.1875, 0.5, -0.1875}, -- NodeBox3
  254. > {-0.4375, -0.5, 0.1875, -0.1875, 0.5, 0.4375}, -- NodeBox4
  255. > }
  256. > },
  257. 1149,1150c1245,1246
  258. < inventory_image = "default_papyrus.png",
  259. < wield_image = "default_papyrus.png",
  260. ---
  261. > inventory_image = "default_inv_papyrus.png",
  262. > wield_image = "default_inv_papyrus.png",
  263. 1185c1281
  264. < minetest.register_node("default:junglegrass", {
  265. ---
  266. > minetest.register_node("default:jungle_grass", {
  267. 1187,1192c1283,1297
  268. < drawtype = "plantlike",
  269. < waving = 1,
  270. < visual_scale = 1.69,
  271. < tiles = {"default_junglegrass.png"},
  272. < inventory_image = "default_junglegrass.png",
  273. < wield_image = "default_junglegrass.png",
  274. ---
  275. > drawtype = "nodebox",
  276. > node_box = {
  277. > type = "fixed",
  278. > fixed = {
  279. > {-0.125, -0.5, -0.125, 0.125, 0.25, 0.125}, -- NodeBox18
  280. > {0.125, 0.25, -0.125, 0.375, 0.5, 0.125}, -- NodeBox19
  281. > {0.25, -0.5, 0.25, 0.5, -0.125, 0.5}, -- NodeBox20
  282. > {-0.5, -0.5, 0.25, -0.25, -0.25, 0.5}, -- NodeBox21
  283. > {0.25, -0.5, -0.5, 0.5, -0.1875, -0.25}, -- NodeBox22
  284. > {-0.5, -0.5, -0.5, -0.25, -0.0625, -0.25}, -- NodeBox23
  285. > }
  286. > },
  287. > tiles = {"default_grass.png"},
  288. > inventory_image = "default_jungle_grass.png",
  289. > wield_image = "default_jungle_grass.png",
  290. 1193a1299
  291. > paramtype2 = "facedir",
  292. 1208c1314,1322
  293. < drawtype = "plantlike",
  294. ---
  295. > drawtype = "nodebox",
  296. > node_box = {
  297. > type = "fixed",
  298. > fixed = {
  299. > {-0.375, -0.5, 0.125, -0.125, -0.25, 0.375}, -- NodeBox9
  300. > {0.125, -0.5, 0.125, 0.375, -0.25, 0.375}, -- NodeBox11
  301. > {-0.375, -0.5, -0.375, -0.125, -0.25, -0.125}, -- NodeBox12
  302. > }
  303. > },
  304. 1210c1324
  305. < tiles = {"default_grass_1.png"},
  306. ---
  307. > tiles = {"default_grass.png"},
  308. 1212,1213d1325
  309. < inventory_image = "default_grass_3.png",
  310. < wield_image = "default_grass_3.png",
  311. 1223a1336
  312. > })
  313. 1225,1231c1338,1364
  314. < on_place = function(itemstack, placer, pointed_thing)
  315. < -- place a random grass node
  316. < local stack = ItemStack("default:grass_" .. math.random(1,5))
  317. < local ret = minetest.item_place(stack, placer, pointed_thing)
  318. < return ItemStack("default:grass_1 " ..
  319. < itemstack:get_count() - (1 - ret:get_count()))
  320. < end,
  321. ---
  322. > minetest.register_node("default:grass_2", {
  323. > description = "Grass",
  324. > drawtype = "nodebox",
  325. > node_box = {
  326. > type = "fixed",
  327. > fixed = {
  328. > {-0.125, -0.5, -0.125, 0.125, -0.1875, 0.125}, -- NodeBox8
  329. > {-0.375, -0.5, 0.125, -0.125, 0.0625, 0.375}, -- NodeBox9
  330. > {0.125, -0.5, 0.125, 0.375, 0.0625, 0.375}, -- NodeBox11
  331. > {-0.375, -0.5, -0.375, -0.125, 0.0625, -0.125}, -- NodeBox12
  332. > {0.125, -0.5, -0.375, 0.375, 0.0625, -0.125}, -- NodeBox13
  333. > }
  334. > },
  335. > waving = 1,
  336. > tiles = {"default_grass.png"},
  337. > paramtype = "light",
  338. > sunlight_propagates = true,
  339. > walkable = false,
  340. > buildable_to = true,
  341. > drop = "default:grass_2",
  342. > groups = {snappy = 3, flora = 1, attached_node = 1,
  343. > not_in_creative_inventory = 1, grass = 1, flammable = 1},
  344. > sounds = default.node_sound_leaves_defaults(),
  345. > selection_box = {
  346. > type = "fixed",
  347. > fixed = {-6 / 16, -0.5, -6 / 16, 6 / 16, -3 / 16, 6 / 16},
  348. > },
  349. 1234,1248c1367,1388
  350. < for i = 2, 5 do
  351. < minetest.register_node("default:grass_" .. i, {
  352. < description = "Grass",
  353. < drawtype = "plantlike",
  354. < waving = 1,
  355. < tiles = {"default_grass_" .. i .. ".png"},
  356. < inventory_image = "default_grass_" .. i .. ".png",
  357. < wield_image = "default_grass_" .. i .. ".png",
  358. < paramtype = "light",
  359. < sunlight_propagates = true,
  360. < walkable = false,
  361. < buildable_to = true,
  362. < drop = "default:grass_1",
  363. < groups = {snappy = 3, flora = 1, attached_node = 1,
  364. < not_in_creative_inventory = 1, grass = 1, flammable = 1},
  365. ---
  366. > minetest.register_node("default:grass_3", {
  367. > description = "Grass",
  368. > drawtype = "nodebox",
  369. > node_box = {
  370. > type = "fixed",
  371. > fixed = {
  372. > {-0.125, -0.5, -0.125, 0.125, -0.1875, 0.125}, -- NodeBox8
  373. > {-0.375, -0.5, 0.125, -0.125, 0.3125, 0.375}, -- NodeBox9
  374. > {0.125, -0.5, 0.125, 0.375, 0.3125, 0.375}, -- NodeBox11
  375. > {-0.375, -0.5, -0.375, -0.125, 0.3125, -0.125}, -- NodeBox12
  376. > {0.125, -0.5, -0.375, 0.375, 0.3125, -0.125}, -- NodeBox13
  377. > }
  378. > },
  379. > waving = 1,
  380. > tiles = {"default_grass.png"},
  381. > paramtype = "light",
  382. > sunlight_propagates = true,
  383. > walkable = false,
  384. > buildable_to = true,
  385. > drop = "default:grass_3",
  386. > groups = {snappy = 3, flora = 1, attached_node = 1,
  387. > not_in_creative_inventory = 1, grass = 1, flammable = 1},
  388. 1250,1255c1390,1423
  389. < selection_box = {
  390. < type = "fixed",
  391. < fixed = {-6 / 16, -0.5, -6 / 16, 6 / 16, -3 / 16, 6 / 16},
  392. < },
  393. < })
  394. < end
  395. ---
  396. > selection_box = {
  397. > type = "fixed",
  398. > fixed = {-6 / 16, -0.5, -6 / 16, 6 / 16, -3 / 16, 6 / 16},
  399. > },
  400. > })
  401. >
  402. > minetest.register_node("default:grass_4", {
  403. > description = "Grass",
  404. > drawtype = "nodebox",
  405. > node_box = {
  406. > type = "fixed",
  407. > fixed = {
  408. > {0.125, -0.5, 0.125, 0.4375, 0.5, 0.4375}, -- NodeBox1
  409. > {0.125, -0.5, -0.4375, 0.4375, 0.5, -0.125}, -- NodeBox2
  410. > {-0.4375, -0.5, -0.4375, -0.125, 0.5, -0.125}, -- NodeBox3
  411. > {-0.4375, -0.5, 0.125, -0.125, 0.5, 0.4375}, -- NodeBox4
  412. > {-0.125, -0.5, -0.125, 0.125, -0.0625, 0.125}, -- NodeBox7
  413. > }
  414. > },
  415. > waving = 1,
  416. > tiles = {"default_grass.png"},
  417. > paramtype = "light",
  418. > sunlight_propagates = true,
  419. > walkable = false,
  420. > buildable_to = true,
  421. > drop = "default:grass_3",
  422. > groups = {snappy = 3, flora = 1, attached_node = 1,
  423. > not_in_creative_inventory = 1, grass = 1, flammable = 1},
  424. > sounds = default.node_sound_leaves_defaults(),
  425. > selection_box = {
  426. > type = "fixed",
  427. > fixed = {-6 / 16, -0.5, -6 / 16, 6 / 16, -3 / 16, 6 / 16},
  428. > },
  429. > })
  430. 1256a1425,1452
  431. > minetest.register_node("default:grass_5", {
  432. > description = "Grass",
  433. > drawtype = "nodebox",
  434. > node_box = {
  435. > type = "fixed",
  436. > fixed = {
  437. > {0.125, -0.5, 0.125, 0.4375, 0.5, 0.4375}, -- NodeBox1
  438. > {0.125, -0.5, -0.4375, 0.4375, 0.5, -0.125}, -- NodeBox2
  439. > {-0.4375, -0.5, -0.4375, -0.125, 0.5, -0.125}, -- NodeBox3
  440. > {-0.4375, -0.5, 0.125, -0.125, 0.5, 0.4375}, -- NodeBox4
  441. > {-0.125, -0.5, -0.125, 0.125, 0.125, 0.125}, -- NodeBox7
  442. > }
  443. > },
  444. > waving = 1,
  445. > tiles = {"default_grass.png"},
  446. > paramtype = "light",
  447. > sunlight_propagates = true,
  448. > walkable = false,
  449. > buildable_to = true,
  450. > drop = "default:grass_3",
  451. > groups = {snappy = 3, flora = 1, attached_node = 1,
  452. > not_in_creative_inventory = 1, grass = 1, flammable = 1},
  453. > sounds = default.node_sound_leaves_defaults(),
  454. > selection_box = {
  455. > type = "fixed",
  456. > fixed = {-6 / 16, -0.5, -6 / 16, 6 / 16, -3 / 16, 6 / 16},
  457. > },
  458. > })
  459. 1365c1561
  460. < minetest.get_node_timer(pos):start(math.random(1200, 2400))
  461. ---
  462. > minetest.get_node_timer(pos):start(math.random(300, 1500))
  463. 1436c1632
  464. < minetest.get_node_timer(pos):start(math.random(1200, 2400))
  465. ---
  466. > minetest.get_node_timer(pos):start(math.random(300, 1500))
  467. 1712c1908
  468. < liquid_renewable = false,
  469. ---
  470. > liquid_renewable = true,
  471. 1758c1954
  472. < liquid_renewable = false,
  473. ---
  474. > liquid_renewable = true,
  475. 1769c1965
  476. < local function get_chest_formspec(pos)
  477. ---
  478. > function default.get_chest_formspec(pos)
  479. 1786c1982
  480. < local above = { x = pos.x, y = pos.y + 1, z = pos.z }
  481. ---
  482. > local above = {x = pos.x, y = pos.y + 1, z = pos.z}
  483. 1789c1985,1986
  484. < if def.drawtype == "airlike" or
  485. ---
  486. > if def and
  487. > (def.drawtype == "airlike" or
  488. 1792c1989
  489. < (def.drawtype == "nodebox" and def.paramtype2 == "wallmounted") then
  490. ---
  491. > (def.drawtype == "nodebox" and def.paramtype2 == "wallmounted")) then
  492. 1892c2089
  493. < "default:chest", get_chest_formspec(pos))
  494. ---
  495. > "default:chest", default.get_chest_formspec(pos))
  496. 1914c2111
  497. < get_chest_formspec(pos)
  498. ---
  499. > default.get_chest_formspec(pos)
  500. 1959c2156
  501. < "default:chest", get_chest_formspec(pos))
  502. ---
  503. > "default:chest", default.get_chest_formspec(pos))
  504. 1991a2189,2195
  505. > for i = 1, #def_opened.tiles do
  506. > if type(def_opened.tiles[i]) == "string" then
  507. > def_opened.tiles[i] = {name = def_opened.tiles[i], backface_culling = true}
  508. > elseif def_opened.tiles[i].backface_culling == nil then
  509. > def_opened.tiles[i].backface_culling = true
  510. > end
  511. > end
  512. 1997c2201
  513. < }
  514. ---
  515. > }
  516. 2146a2351,2389
  517. > torch_box = {
  518. > type = "wallmounted",
  519. > wall_top = {-0.5/3, -0.5/3, -0.5/3, 0.5/3, 1.5/3, 0.5/3},
  520. > wall_bottom = {-0.5/3, -1.5/3, -0.5/3, 0.5/3, 0.5/3, 0.5/3},
  521. > wall_side = {-1.5/3, -0.5/3, -0.5/3, 0.5/3, 0.5/3, 0.5/3},
  522. > }
  523. >
  524. > minetest.register_node("default:torch", {
  525. > drawtype = "nodebox",
  526. > description = "Torch",
  527. > tiles = {"default_torch.png"},
  528. > inventory_image = "default_torch_inventory.png",
  529. > wield_image = "default_torch_inventory.png",
  530. > paramtype = "light",
  531. > paramtype2 = "wallmounted",
  532. > legacy_wallmounted = true,
  533. > sunlight_propagates = true,
  534. > walkable = false,
  535. > light_source = default.LIGHT_MAX-2,
  536. > node_box = torch_box,
  537. > groups = {attached_node=1, dig_immediate=3,not_in_creative_inventory=1},
  538. > drop='"default:torch" 1',
  539. > sounds = default.node_sound_wood_defaults(),
  540. > -- on_construct = function(pos)
  541. > -- local tmr = minetest.env:get_node_timer(pos)
  542. > -- tmr:start(torch_time)
  543. > -- end,
  544. > -- on_rightclick = function(pos, node)
  545. > -- local tmr = minetest.env:get_node_timer(pos)
  546. > -- local meta = minetest.get_meta(pos)
  547. > -- local proc = math.floor(tmr:get_elapsed()/(torch_time/100))
  548. > -- meta:set_string("infotext", proc.."%")
  549. > -- end,
  550. > -- on_timer = function(pos,elapsed)
  551. > -- local node = minetest.get_node(pos)
  552. > -- minetest.set_node(pos, {name="default:torch_out", param2 = node.param2})
  553. > -- end,
  554. > })
  555. >
  556. 2247c2490
  557. < description = "Wooden Fence",
  558. ---
  559. > description = "Apple Wood Fence",
  560. 2257c2500
  561. < description = "Acacia Fence",
  562. ---
  563. > description = "Acacia Wood Fence",
  564. 2266c2509
  565. < default.register_fence("default:fence_junglewood", {
  566. ---
  567. > default.register_fence("default:fence_jungle_wood", {
  568. 2268,2271c2511,2514
  569. < texture = "default_fence_junglewood.png",
  570. < inventory_image = "default_fence_overlay.png^default_junglewood.png^default_fence_overlay.png^[makealpha:255,126,126",
  571. < wield_image = "default_fence_overlay.png^default_junglewood.png^default_fence_overlay.png^[makealpha:255,126,126",
  572. < material = "default:junglewood",
  573. ---
  574. > texture = "default_fence_jungle_wood.png",
  575. > inventory_image = "default_fence_overlay.png^default_jungle_wood.png^default_fence_overlay.png^[makealpha:255,126,126",
  576. > wield_image = "default_fence_overlay.png^default_jungle_wood.png^default_fence_overlay.png^[makealpha:255,126,126",
  577. > material = "default:jungle_wood",
  578. 2277c2520
  579. < description = "Pine Fence",
  580. ---
  581. > description = "Pine Wood Fence",
  582. 2287c2530
  583. < description = "Aspen Fence",
  584. ---
  585. > description = "Aspen Wood Fence",
  586. 2301c2544
  587. < paramtype2 = "glasslikeliquidlevel",
  588. ---
  589. > -- paramtype2 = "glasslikeliquidlevel",
  590. 2389,2390c2632,2633
  591. < trunks = {"default:jungletree"},
  592. < leaves = {"default:jungleleaves"},
  593. ---
  594. > trunks = {"default:jungle_tree"},
  595. > leaves = {"default:jungle_leaves"},
  596. 2407,2408c2650,2651
  597. < trunks = {"default:jungletree"},
  598. < leaves = {"default:jungleleaves"},
  599. ---
  600. > trunks = {"default:jungle_tree"},
  601. > leaves = {"default:jungle_leaves"},
  602. 2441a2685,2692
  603. >
  604. > minetest.register_alias("default:jungleleaves", "default:jungle_leaves")
  605. > minetest.register_alias("default:junglewood", "default:jungle_wood")
  606. > minetest.register_alias("default:junglesapling", "default:jungle_sapling")
  607. > minetest.register_alias("default:jungletree", "default:jungle_tree")
  608. > minetest.register_alias("default:junglegrass", "default:jungle_grass")
  609. >
  610. > minetest.register_alias("default:fence_junglewood", "default:fence_jungle_wood")