Skip to content

Commit

Permalink
Add granite brick node (#593)
Browse files Browse the repository at this point in the history
  • Loading branch information
sfence authored and SmallJoker committed Dec 19, 2023
1 parent 49d4105 commit a296446
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 1 deletion.
6 changes: 6 additions & 0 deletions extranodes/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ if minetest.get_modpath("moreblocks") then
tiles={"technic_granite.png"},
})

stairsplus:register_all("technic", "granite_bricks", "technic:granite_bricks", {
description=S("Granite Bricks"),
groups={cracky=1, not_in_creative_inventory=1},
tiles={"technic_granite_bricks.png"},
})

stairsplus:register_all("technic", "concrete", "technic:concrete", {
description=S("Concrete"),
groups={cracky=3, not_in_creative_inventory=1},
Expand Down
18 changes: 17 additions & 1 deletion technic_worldgen/nodes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,14 @@ minetest.register_node( ":technic:granite", {
sounds = default.node_sound_stone_defaults(),
})

minetest.register_node( ":technic:granite_bricks", {
description = S("Granite Bricks"),
tiles = { "technic_granite_bricks.png" },
is_ground_content = false,
groups = {cracky=1},
sounds = default.node_sound_stone_defaults(),
})

minetest.register_node( ":technic:marble", {
description = S("Marble"),
tiles = { "technic_marble.png" },
Expand All @@ -65,7 +73,7 @@ minetest.register_node( ":technic:marble", {
minetest.register_node( ":technic:marble_bricks", {
description = S("Marble Bricks"),
tiles = { "technic_marble_bricks.png" },
is_ground_content = true,
is_ground_content = false,
groups = {cracky=3},
sounds = default.node_sound_stone_defaults(),
})
Expand Down Expand Up @@ -133,6 +141,14 @@ minetest.register_node(":technic:stainless_steel_block", {
sounds = default.node_sound_stone_defaults()
})

minetest.register_craft({
output = 'technic:granite_bricks 4',
recipe = {
{'technic:granite','technic:granite'},
{'technic:granite','technic:granite'}
}
})

minetest.register_craft({
output = 'technic:marble_bricks 4',
recipe = {
Expand Down
Binary file added technic_worldgen/textures/technic_granite_bricks.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a296446

Please sign in to comment.