Skip to content

Commit

Permalink
add granite bricks (#229)
Browse files Browse the repository at this point in the history
Co-authored-by: BuckarooBanzay <[email protected]>
Co-authored-by: sfence <[email protected]>
  • Loading branch information
3 people authored Oct 28, 2021
1 parent e5e4cbe commit 10a80b9
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
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
16 changes: 16 additions & 0 deletions 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 = true,
groups = {cracky=1},
sounds = default.node_sound_stone_defaults(),
})

minetest.register_node( ":technic:marble", {
description = S("Marble"),
tiles = { "technic_marble.png" },
Expand Down Expand Up @@ -149,6 +157,14 @@ minetest.register_craft({
}
})

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

minetest.register_alias("technic:diamond_block", "default:diamondblock")
minetest.register_alias("technic:diamond", "default:diamond")
minetest.register_alias("technic:mineral_diamond", "default:stone_with_diamond")
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.

0 comments on commit 10a80b9

Please sign in to comment.