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.
This commit is contained in:
Richard Qian 2016-12-05 18:10:25 -06:00 committed by sofar
parent 4f9b05be4e
commit a8a06d8deb
3 changed files with 19 additions and 8 deletions

View File

@ -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",

View File

@ -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"),

Binary file not shown.

After

Width:  |  Height:  |  Size: 318 B