mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-22 02:21:06 +01:00
First batch of stonecutter recipes under new API
-core blocks -stairs -slabs -walls
This commit is contained in:
parent
19cea45c17
commit
ead2e772c2
7 changed files with 32 additions and 12 deletions
|
@ -1,4 +1,4 @@
|
|||
name = mcl_core
|
||||
description = Core items of MineClone 2: Basic biome blocks (dirt, sand, stones, etc.), derived items, glass, sugar cane, cactus, barrier, mining tools, hand, craftitems, and misc. items which don't really fit anywhere else.
|
||||
depends = mcl_autogroup, mcl_init, mcl_sounds, mcl_particles, mcl_util, mcl_worlds, doc_items, mcl_enchanting, mcl_colors
|
||||
depends = mcl_autogroup, mcl_init, mcl_sounds, mcl_particles, mcl_util, mcl_worlds, doc_items, mcl_enchanting, mcl_colors, mcl_stonecutter
|
||||
optional_depends = doc
|
||||
|
|
|
@ -1124,6 +1124,19 @@ minetest.register_node("mcl_core:snowblock", {
|
|||
_mcl_silk_touch_drop = true,
|
||||
})
|
||||
|
||||
-- Stonecutter recipes
|
||||
mcl_stonecutter.register_recipe("mcl_core:stone", "mcl_core:stonebrick")
|
||||
mcl_stonecutter.register_recipe("mcl_core:stone", "mcl_core:stonebrickcarved")
|
||||
mcl_stonecutter.register_recipe("mcl_core:stonebrick", "mcl_core:stonebrickcarved")
|
||||
mcl_stonecutter.register_recipe("mcl_core:granite", "mcl_core:granite_smooth")
|
||||
mcl_stonecutter.register_recipe("mcl_core:andesite", "mcl_core:andesite_smooth")
|
||||
mcl_stonecutter.register_recipe("mcl_core:diorite", "mcl_core:diorite_smooth")
|
||||
mcl_stonecutter.register_recipe("mcl_core:sandstone", "mcl_core:sandstonesmooth")
|
||||
mcl_stonecutter.register_recipe("mcl_core:sandstone", "mcl_core:sandstonecarved")
|
||||
mcl_stonecutter.register_recipe("mcl_core:redsandstone", "mcl_core:redsandstonesmooth")
|
||||
mcl_stonecutter.register_recipe("mcl_core:redsandstone", "mcl_core:redsandstonecarved")
|
||||
|
||||
|
||||
-- Add entry aliases for the Help
|
||||
if minetest.get_modpath("doc") then
|
||||
doc.add_entry_alias("nodes", "mcl_core:stone_with_redstone", "nodes", "mcl_core:stone_with_redstone_lit")
|
||||
|
|
|
@ -173,6 +173,9 @@ function mcl_stairs.register_stair(subname, recipeitem, groups, images, descript
|
|||
{recipeitem, recipeitem, recipeitem},
|
||||
},
|
||||
})
|
||||
|
||||
-- Stonecutter recipe
|
||||
mcl_stonecutter.register_recipe(recipeitem, "mcl_stairs:stair_".. subname)
|
||||
end
|
||||
|
||||
mcl_stairs.cornerstair.add("mcl_stairs:stair_"..subname, corner_stair_texture_override)
|
||||
|
@ -343,6 +346,8 @@ function mcl_stairs.register_slab(subname, recipeitem, groups, images, descripti
|
|||
},
|
||||
})
|
||||
|
||||
mcl_stonecutter.register_recipe(recipeitem, lower_slab, 2)
|
||||
|
||||
end
|
||||
|
||||
-- Help alias for the upper slab
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
name = mcl_stairs
|
||||
depends = mcl_core, mcl_sounds, mcl_nether, mcl_end, mcl_ocean, mcl_mud
|
||||
depends = mcl_core, mcl_sounds, mcl_nether, mcl_end, mcl_ocean, mcl_mud, mcl_stonecutter
|
||||
|
|
|
@ -37,7 +37,7 @@ mcl_stairs.register_slab("stone_rough", "mcl_core:stone",
|
|||
S("Stone Slab"),
|
||||
mcl_sounds.node_sound_stone_defaults(), 6, 2,
|
||||
S("Double Stone Slab"))
|
||||
mcl_stairs.register_stair("stone_rough", "group:stone",
|
||||
mcl_stairs.register_stair("stone_rough", "mcl_core:stone",
|
||||
{pickaxey=1, material_stone=1,stonecutter_output=1},
|
||||
{"default_stone.png"},
|
||||
S("Stone Stairs"),
|
||||
|
@ -122,13 +122,13 @@ mcl_stairs.register_slab("brick_block", "mcl_core:brick_block",
|
|||
mcl_sounds.node_sound_stone_defaults(), 6, 2,
|
||||
S("Double Brick Slab"))
|
||||
|
||||
mcl_stairs.register_stair("sandstone", "group:normal_sandstone",
|
||||
mcl_stairs.register_stair("sandstone", "mcl_core:sandstone",
|
||||
{pickaxey=1, material_stone=1, stonecutter_output=9},
|
||||
{"mcl_core_sandstone_top.png", "mcl_core_sandstone_bottom.png", "mcl_core_sandstone_normal.png"},
|
||||
S("Sandstone Stairs"),
|
||||
mcl_sounds.node_sound_stone_defaults(), 0.8, 0.8,
|
||||
nil, "mcl_core:sandstone") --fixme: extra parameter from previous release
|
||||
mcl_stairs.register_slab("sandstone", "group:normal_sandstone",
|
||||
mcl_stairs.register_slab("sandstone", "mcl_core:sandstone",
|
||||
{pickaxey=1, material_stone=1, stonecutter_output=9},
|
||||
{"mcl_core_sandstone_top.png", "mcl_core_sandstone_bottom.png", "mcl_core_sandstone_normal.png"},
|
||||
S("Sandstone Slab"),
|
||||
|
@ -147,13 +147,13 @@ mcl_stairs.register_slab("sandstonesmooth2", "mcl_core:sandstonesmooth2",
|
|||
mcl_sounds.node_sound_stone_defaults(), 6, 2,
|
||||
S("Double Smooth Sandstone Slab"))
|
||||
|
||||
mcl_stairs.register_stair("redsandstone", "group:red_sandstone",
|
||||
mcl_stairs.register_stair("redsandstone", "mcl_core:redsandstone",
|
||||
{pickaxey=1, material_stone=1, stonecutter_output=10},
|
||||
{"mcl_core_red_sandstone_top.png", "mcl_core_red_sandstone_bottom.png", "mcl_core_red_sandstone_normal.png"},
|
||||
S("Red Sandstone Stairs"),
|
||||
mcl_sounds.node_sound_stone_defaults(), 0.8, 0.8,
|
||||
nil, "mcl_core:redsandstone") --fixme: extra parameter from previous release
|
||||
mcl_stairs.register_slab("redsandstone", "group:red_sandstone",
|
||||
mcl_stairs.register_slab("redsandstone", "mcl_core:redsandstone",
|
||||
{pickaxey=1, material_stone=1, stonecutter_output=10},
|
||||
{"mcl_core_red_sandstone_top.png", "mcl_core_red_sandstone_bottom.png", "mcl_core_red_sandstone_normal.png"},
|
||||
S("Red Sandstone Slab"),
|
||||
|
@ -186,13 +186,13 @@ mcl_stairs.register_slab("stonebrick", "mcl_core:stonebrick",
|
|||
mcl_sounds.node_sound_stone_defaults(), 6, 2,
|
||||
S("Double Stone Bricks Slab"), "mcl_core:stonebrick") --fixme: extra parameter from previous release
|
||||
|
||||
mcl_stairs.register_stair("quartzblock", "group:quartz_block",
|
||||
mcl_stairs.register_stair("quartzblock", "mcl_nether:quartz_block",
|
||||
{pickaxey=1, material_stone=1, stonecutter_output=14},
|
||||
{"mcl_nether_quartz_block_top.png", "mcl_nether_quartz_block_bottom.png", "mcl_nether_quartz_block_side.png"},
|
||||
S("Quartz Stairs"),
|
||||
mcl_sounds.node_sound_stone_defaults(), 0.8, 0.8,
|
||||
nil, "mcl_nether:quartz_block") --fixme: extra parameter from previous release
|
||||
mcl_stairs.register_slab("quartzblock", "group:quartz_block",
|
||||
mcl_stairs.register_slab("quartzblock", "mcl_nether:quartz_block",
|
||||
{pickaxey=1, material_stone=1, stonecutter_output=14},
|
||||
{"mcl_nether_quartz_block_top.png", "mcl_nether_quartz_block_bottom.png", "mcl_nether_quartz_block_side.png"},
|
||||
S("Quartz Slab"),
|
||||
|
@ -234,13 +234,13 @@ mcl_stairs.register_stair_and_slab("end_bricks", "mcl_end:end_bricks",
|
|||
mcl_sounds.node_sound_stone_defaults(), 6, 2,
|
||||
S("Double End Stone Brick Slab"), nil)
|
||||
|
||||
mcl_stairs.register_stair("purpur_block", "group:purpur_block",
|
||||
mcl_stairs.register_stair("purpur_block", "mcl_end:purpur_block",
|
||||
{pickaxey=1, material_stone=1, stonecutter_output=15},
|
||||
{"mcl_end_purpur_block.png"},
|
||||
S("Purpur Stairs"),
|
||||
mcl_sounds.node_sound_stone_defaults(), 6, 1.5,
|
||||
nil)
|
||||
mcl_stairs.register_slab("purpur_block", "group:purpur_block",
|
||||
mcl_stairs.register_slab("purpur_block", "mcl_end:purpur_block",
|
||||
{pickaxey=1, material_stone=1, stonecutter_output=15},
|
||||
{"mcl_end_purpur_block.png"},
|
||||
S("Purpur Slab"),
|
||||
|
|
|
@ -282,6 +282,8 @@ function mcl_walls.register_wall(nodename, description, source, tiles, inventory
|
|||
{source, source, source},
|
||||
}
|
||||
})
|
||||
|
||||
mcl_stonecutter.register_recipe(source, nodename)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
name = mcl_walls
|
||||
depends = mcl_core, mcl_end, mcl_ocean, mcl_nether, mcl_sounds, mcl_mud
|
||||
depends = mcl_core, mcl_end, mcl_ocean, mcl_nether, mcl_sounds, mcl_mud, mcl_stonecutter
|
||||
optional_depends = doc
|
||||
|
|
Loading…
Reference in a new issue