Add flower pot craft, rename brick stuff

This commit is contained in:
Wuzzy 2017-02-01 18:51:26 +01:00
parent b8aec37c98
commit 147a983956
7 changed files with 23 additions and 12 deletions

View file

@ -75,7 +75,7 @@ local function set_inv(filter, player)
table.sort(creative_list)
inv:set_size("main", #creative_list)
for _,itemstring in ipairs(creative_list) do
inv:add_item("main", ItemStack(itemstring))
inv:add_item("main", ItemStack(itemstring .. " " .. minetest.registered_items[itemstring].stack_max))
end
crafting.creative_inventory_size = #creative_list
end

View file

@ -577,10 +577,10 @@ minetest.register_craft({
})
minetest.register_craft({
output = 'mcl_core:brick',
output = 'mcl_core:brick_block',
recipe = {
{'mcl_core:clay_brick', 'mcl_core:clay_brick'},
{'mcl_core:clay_brick', 'mcl_core:clay_brick'},
{'mcl_core:brick', 'mcl_core:brick'},
{'mcl_core:brick', 'mcl_core:brick'},
}
})
@ -817,7 +817,7 @@ minetest.register_craft({
minetest.register_craft({
type = "cooking",
output = "mcl_core:clay_brick",
output = "mcl_core:brick",
recipe = "mcl_core:clay_lump",
cooktime = 10,
})

View file

@ -90,7 +90,7 @@ minetest.register_craftitem("mcl_core:emerald", {
groups = { craftitem=1 },
})
minetest.register_craftitem("mcl_core:clay_brick", {
minetest.register_craftitem("mcl_core:brick", {
description = "Brick",
inventory_image = "default_clay_brick.png",
stack_max = 64,

View file

@ -411,8 +411,9 @@ minetest.register_node("mcl_core:clay", {
}),
})
minetest.register_node("mcl_core:brick", {
description = "Bricks",
minetest.register_node("mcl_core:brick_block", {
-- Original name: “Bricks”
description = "Brick Block",
tiles = {"default_brick.png"},
is_ground_content = false,
stack_max = 64,

View file

@ -331,6 +331,14 @@ minetest.register_node("mcl_flowers:pot",{
end,
})
minetest.register_craft({
output = "mcl_flowers:pot",
recipe = {
{ "mcl_core:brick", "", "mcl_core:brick", },
{ "", "mcl_core:brick", "" },
},
})
-- Lily Pad
minetest.register_node("mcl_flowers:waterlily", {
description = "Lily Pad",

View file

@ -662,7 +662,7 @@ end
for _,v in ipairs({
"stone",
"cobble",
"brick",
"brick_block",
"sandstone",
"redsandstone",
"stonebrick",

View file

@ -277,11 +277,13 @@ stairs.register_stair_and_slab("cobble", "mcl_core:cobble",
"Cobblestone Slab",
mcl_core.node_sound_stone_defaults())
stairs.register_stair_and_slab("brick", "mcl_core:brick",
stairs.register_stair_and_slab("brick_block", "mcl_core:brick_block",
{cracky=3},
{"default_brick.png"},
"Bricks Stairs",
"Bricks Slab",
-- Original name: Bricks Stairs
"Brick Block Stairs",
-- Original name: Bricks Slab
"Brick Block Slab",
mcl_core.node_sound_stone_defaults())
stairs.register_stair_and_slab("sandstone", "group:sandstone",