if moreblocks is installed, make usesdirt "dirt brick"

from moreblocks' compressed dirt.
This commit is contained in:
Vanessa Dannenberg 2018-08-22 18:11:05 -04:00
parent 0486451045
commit 3c131c3d32

View File

@ -175,14 +175,25 @@ if not minetest.get_modpath("usesdirt") then
description = "Dirt Brick", description = "Dirt Brick",
groups = {snappy=2,choppy=1,oddly_breakable_by_hand=2}, groups = {snappy=2,choppy=1,oddly_breakable_by_hand=2},
}) })
minetest.register_craft({
output = '"usesdirt:dirt_brick" 6', if minetest.get_modpath("moreblocks") then
recipe = { minetest.register_craft({
{'default:dirt', 'default:dirt', 'default:dirt'}, output = 'usesdirt:dirt_brick 24',
{'default:dirt', 'default:dirt', 'default:dirt'}, recipe = {
{'default:dirt', 'default:dirt', 'default:dirt'}, {'moreblocks:dirt_compressed', 'moreblocks:dirt_compressed', '' },
} {'moreblocks:dirt_compressed', 'moreblocks:dirt_compressed', '' }
}) }
})
else
minetest.register_craft({
output = 'usesdirt:dirt_brick 6',
recipe = {
{'default:dirt', 'default:dirt', 'default:dirt'},
{'default:dirt', 'default:dirt', 'default:dirt'},
{'default:dirt', 'default:dirt', 'default:dirt'},
}
})
end
minetest.register_node(":usesdirt:dirt_ladder", { minetest.register_node(":usesdirt:dirt_ladder", {
description = "Ladder", description = "Ladder",