From a8a06d8deb12011d0ed580b702e5917cc033fbfb Mon Sep 17 00:00:00 2001 From: Richard Qian Date: Mon, 5 Dec 2016 18:10:25 -0600 Subject: [PATCH] Add compressed dirt, remove redundant tar Tar already exists in building_blocks, and the recipe to cook it comes into conflict with what's in streetsmod, where gravel can be cooked into asphalt. However, the texture for it is retained in case it needs to be derived from again in the future. Dirt can be collected in as much quanitites as cobblestone can be, so in place of tar is a way to pack dirt when so much of it is collected. The compressed dirt shares most properities with the compressed cobble, except that can be dug by hand, but digging it takes as long as with gravel. Its texture is a recolor of this mod's tar block. In addition, a function for dirt sound has been added, and compressed dirt makes use of it. The new node is inspired in part by a counterpart on the Xanadu server, where there is also a counterpart to compressed cobble. --- crafting.lua | 18 ++++++++++++++---- nodes.lua | 9 +++++---- textures/moreblocks_dirt_compressed.png | Bin 0 -> 318 bytes 3 files changed, 19 insertions(+), 8 deletions(-) create mode 100644 textures/moreblocks_dirt_compressed.png diff --git a/crafting.lua b/crafting.lua index 6867f7a..f76532f 100644 --- a/crafting.lua +++ b/crafting.lua @@ -438,6 +438,20 @@ minetest.register_craft({ } }) +minetest.register_craft({ + output = "moreblocks:dirt_compressed", + recipe = { + {'default:dirt', 'default:dirt', 'default:dirt'}, + {'default:dirt', 'default:dirt', 'default:dirt'}, + {'default:dirt', 'default:dirt', 'default:dirt'}, + } +}) + +minetest.register_craft({ + output = "default:dirt 9", + recipe = {{"moreblocks:dirt_compressed"}}, +}) + minetest.register_craft({ output = "moreblocks:cobble_compressed", recipe = { @@ -454,10 +468,6 @@ minetest.register_craft({ } }) -minetest.register_craft({ - type = "cooking", output = "moreblocks:tar", recipe = "default:gravel", -}) - minetest.register_craft({ type = "shapeless", output = "moreblocks:copperpatina", diff --git a/nodes.lua b/nodes.lua index 351cfb6..e7b7c7b 100644 --- a/nodes.lua +++ b/nodes.lua @@ -7,6 +7,7 @@ Licensed under the zlib license. See LICENSE.md for more information. local S = moreblocks.intllib +local sound_dirt = default.node_sound_dirt_defaults() local sound_wood = default.node_sound_wood_defaults() local sound_stone = default.node_sound_stone_defaults() local sound_glass = default.node_sound_glass_defaults() @@ -112,11 +113,11 @@ local nodes = { is_ground_content = false, sounds = sound_stone, }, - ["tar"] = { - description = S("Tar"), - groups = {cracky = 2, tar_block = 1}, + ["dirt_compressed"] = { + description = S("Compressed Dirt"), + groups = {snappy=2,crumbly=2}, is_ground_content = false, - sounds = sound_stone, + sounds = sound_dirt, }, ["cobble_compressed"] = { description = S("Compressed Cobblestone"), diff --git a/textures/moreblocks_dirt_compressed.png b/textures/moreblocks_dirt_compressed.png new file mode 100644 index 0000000000000000000000000000000000000000..0a98272c7d09db794968b42579601b4c7af80bd0 GIT binary patch literal 318 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbL!aez;VYoe1@ti4)_i%ztyO1Qa9 zx`#oCiDY4*Wv;JjwzpBFm4cfFS51sdet<=YxlDkesE?k|`fKy20kv}$ctjR6FmMZl zFeAgPITAoY_7YEDSM~=ytl~V17rEWG0fpvyx;TbNTo&yQY+^R#aJuZva>Qcp@A+kK z*MD#js||J)Suy!iP|NG2@HhRQ>y|7?-nC}m!l&A16;tl6pIQ8Zw=?tM>~tBfdj|yk z`)+z?aV*!@-ZY2XKH}5~?hDN_cR#JLzSO_*MaM1`1Hq;Hr=C3L7uRjddirNrW%Z<| zXE$$R-MxZ4Xftcpeo>*YE6>gS^zU3fe$T;1d#=XLWd~<0|HoJ>$Wiku$qf`j44$rj JF6*2UngD!QaR2}S literal 0 HcmV?d00001