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) table.sort(creative_list)
inv:set_size("main", #creative_list) inv:set_size("main", #creative_list)
for _,itemstring in ipairs(creative_list) do 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 end
crafting.creative_inventory_size = #creative_list crafting.creative_inventory_size = #creative_list
end end

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -277,11 +277,13 @@ stairs.register_stair_and_slab("cobble", "mcl_core:cobble",
"Cobblestone Slab", "Cobblestone Slab",
mcl_core.node_sound_stone_defaults()) 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}, {cracky=3},
{"default_brick.png"}, {"default_brick.png"},
"Bricks Stairs", -- Original name: Bricks Stairs
"Bricks Slab", "Brick Block Stairs",
-- Original name: Bricks Slab
"Brick Block Slab",
mcl_core.node_sound_stone_defaults()) mcl_core.node_sound_stone_defaults())
stairs.register_stair_and_slab("sandstone", "group:sandstone", stairs.register_stair_and_slab("sandstone", "group:sandstone",