Add nether bricks and related stuff

This commit is contained in:
Wuzzy 2017-02-08 19:52:04 +01:00
parent 0033b87309
commit 6c10045b16
7 changed files with 80 additions and 4 deletions

View file

@ -27,6 +27,37 @@ minetest.register_node("mcl_nether:quartz_ore", {
sounds = mcl_core.node_sound_stone_defaults(), sounds = mcl_core.node_sound_stone_defaults(),
}) })
minetest.register_node("mcl_nether:netherrack", {
description = "Netherrack",
stack_max = 64,
tiles = {"mcl_nether_netherrack.png"},
is_ground_content = true,
groups = {cracky=3,building_block=1},
sounds = mcl_core.node_sound_stone_defaults(),
})
minetest.register_node("mcl_nether:nether_brick", {
-- Original name: Nether Brick
description = "Nether Brick Block",
stack_max = 64,
tiles = {"mcl_nether_nether_brick.png"},
is_ground_content = false,
groups = {cracky=2,building_block=1},
sounds = mcl_core.node_sound_stone_defaults(),
})
minetest.register_node("mcl_nether:red_nether_brick", {
-- Original name: Red Nether Brick
description = "Red Nether Brick Block",
stack_max = 64,
tiles = {"mcl_nether_red_nether_brick.png"},
is_ground_content = false,
groups = {cracky=2,building_block=1},
sounds = mcl_core.node_sound_stone_defaults(),
})
minetest.register_node("mcl_nether:quartz_block", { minetest.register_node("mcl_nether:quartz_block", {
description = "Block of Quartz", description = "Block of Quartz",
stack_max = 64, stack_max = 64,
@ -72,7 +103,12 @@ minetest.register_craftitem("mcl_nether:quartz", {
groups = { craftitem = 1 }, groups = { craftitem = 1 },
}) })
minetest.register_craftitem("mcl_nether:netherbrick", {
description = "Nether Brick",
inventory_image = "mcl_nether_netherbrick.png",
stack_max = 64,
groups = { craftitem = 1 },
})
minetest.register_craft({ minetest.register_craft({
type = "cooking", type = "cooking",
@ -113,3 +149,34 @@ minetest.register_craft({
} }
}) })
minetest.register_craft({
type = "cooking",
output = "mcl_nether:netherbrick",
recipe = "mcl_nether:netherrack",
cooktime = 10,
})
minetest.register_craft({
output = "mcl_nether:nether_brick",
recipe = {
{'mcl_nether:netherbrick', 'mcl_nether:netherbrick'},
{'mcl_nether:netherbrick', 'mcl_nether:netherbrick'},
}
})
minetest.register_craft({
output = "mcl_nether:red_nether_brick",
recipe = {
{'mcl_nether:nether_wart', 'mcl_nether:netherbrick'},
{'mcl_nether:netherbrick', 'mcl_nether:nether_wart'},
}
})
minetest.register_craft({
output = "mcl_nether:red_nether_brick",
recipe = {
{'mcl_nether:netherbrick', 'mcl_nether:nether_wart'},
{'mcl_nether:nether_wart', 'mcl_nether:netherbrick'},
}
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 612 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 390 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

View file

@ -669,6 +669,7 @@ for _,v in ipairs({
"stonebrick", "stonebrick",
"quartzblock", "quartzblock",
"purpur_block", "purpur_block",
"nether_brick",
}) do }) do
mcstair.add("stairs:stair_"..v) mcstair.add("stairs:stair_"..v)
end end

View file

@ -335,13 +335,21 @@ stairs.register_stair_and_slab("stonebrick", "group:stonebrick",
) )
stairs.register_stair_and_slab("quartzblock", "group:quartz_block", stairs.register_stair_and_slab("quartzblock", "group:quartz_block",
{snappy=1,cracky=1,level=2}, {cracky=3},
{"mcl_nether_quartz_block_top.png", "mcl_nether_quartz_block_bottom.png", "mcl_nether_quartz_block_side.png"}, {"mcl_nether_quartz_block_top.png", "mcl_nether_quartz_block_bottom.png", "mcl_nether_quartz_block_side.png"},
"Quartz Stairs", "Quartz Stairs",
"Quartz Slab", "Quartz Slab",
mcl_core.node_sound_stone_defaults(), nil, "mcl_nether:quartz_block" mcl_core.node_sound_stone_defaults(), nil, "mcl_nether:quartz_block"
) )
stairs.register_stair_and_slab("nether_brick", "mcl_nether:nether_brick",
{cracky=2},
{"mcl_nether_nether_brick.png"},
"Nether Brick Stairs",
"Nether Brick Slab",
mcl_core.node_sound_stone_defaults()
)
stairs.register_stair_and_slab("purpur_block", "mcl_end:purpur_block", stairs.register_stair_and_slab("purpur_block", "mcl_end:purpur_block",
{cracky=3}, {cracky=3},
{"mcl_end_purpur_block.png"}, {"mcl_end_purpur_block.png"},