Crafting cleanup.

- Alternate shelf recipe to make it a little more intuitive.
- Label all existing recipes.
This commit is contained in:
Aaron Suen 2019-02-21 14:37:22 -05:00
parent c5ebe7f35a
commit 0638e3f11f
6 changed files with 20 additions and 0 deletions

View File

@ -40,6 +40,7 @@ local function toolhead(name, group)
for _, t in pairs({"annealed", "tempered"}) do
nodecore.register_craft({
label = "assemble lode " .. n,
normal = {y = 1},
nodes = {
{match = modname .. ":toolhead_" .. n .. "_" .. t,

View File

@ -17,6 +17,7 @@ minetest.register_tool(modname .. ":adze", {
})
nodecore.register_craft({
label = "assemble wood adze",
normal = {y = 1},
nodes = {
{match = "nc_tree:stick", replace = "air"},

View File

@ -33,6 +33,7 @@ minetest.register_node(modname .. ":ladder", {
})
nodecore.register_craft({
label = "assemble wood ladder",
normal = {x = 1},
nodes = {
{match = "nc_tree:stick", replace = "air"},
@ -60,6 +61,7 @@ minetest.register_node(modname .. ":frame", {
})
nodecore.register_craft({
label = "assemble wood frame",
normal = {x = 1},
nodes = {
{match = modname .. ":staff", replace = "air"},

View File

@ -58,6 +58,7 @@ minetest.register_node(modname .. ":shelf", {
})
nodecore.register_craft({
label = "assemble shelf",
nodes = {
{match = modname .. ":plank", replace = "air"},
{x = -1, z = -1, match = modname .. ":frame", replace = "air"},
@ -69,3 +70,16 @@ nodecore.register_craft({
modname .. ":shelf 2"
}
})
nodecore.register_craft({
nodes = {
{match = modname .. ":plank", replace = "air"},
{x = 0, z = -1, match = modname .. ":frame", replace = "air"},
{x = 0, z = 1, match = modname .. ":frame", replace = "air"},
{x = -1, z = 0, match = modname .. ":frame", replace = "air"},
{x = 1, z = 0, match = modname .. ":frame", replace = "air"},
},
items = {
modname .. ":shelf 2"
}
})

View File

@ -25,6 +25,7 @@ minetest.register_node(modname .. ":staff", {
})
nodecore.register_craft({
label = "assemble staff",
normal = {y = 1},
nodes = {
{match = "nc_tree:stick", replace = "air"},

View File

@ -32,6 +32,7 @@ local function toolhead(name, from, group, sticks)
})
})
nodecore.register_craft({
label = "assemble wood " .. name:lower(),
normal = {y = 1},
nodes = {
{match = n, replace = "air"},