basalt crafting chain bugfix

This commit is contained in:
Joachim Stolberg 2019-06-11 22:51:37 +02:00
parent ec9b906d2a
commit 674737d97c
3 changed files with 20 additions and 2 deletions

View File

@ -40,7 +40,11 @@ local function handler(player_name, node, itemstack, digparams)
end
end
end
node.name = "default:gravel"
if node.name == "techage:basalt_stone" then
node.name = "techage:basalt_gravel"
else
node.name = "default:gravel"
end
minetest.swap_node(pos, node)
minetest.check_single_for_falling(pos)
end

View File

@ -28,9 +28,17 @@ minetest.register_node("techage:basalt_stone", {
description = "Basalt Stone",
tiles = {"default_stone.png^[brighten"},
groups = {cracky = 3, stone = 1},
drop = "default:silver_sand",
drop = 'techage:basalt_cobble',
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("techage:basalt_cobble", {
description = "Basalt Cobble",
tiles = {"default_cobble.png^[brighten"},
groups = {cracky = 3, stone = 2},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("techage:basalt_stone_brick", {
description = "Basalt Stone Brick",
paramtype2 = "facedir",
@ -131,6 +139,12 @@ stairs.register_stair_and_slab(
false
)
minetest.register_craft({
type = "cooking",
output = "techage:basalt_stone",
recipe = "techage:basalt_cobble",
})
minetest.register_craft({
output = "techage:basalt_stone_brick 4",
recipe = {

Binary file not shown.

After

Width:  |  Height:  |  Size: 314 B