|
|
|
@ -249,52 +249,52 @@ minetest.register_node("nodes:placeholder", {
|
|
|
|
|
-- [5] falling node
|
|
|
|
|
|
|
|
|
|
local nodelist = {
|
|
|
|
|
{"bricks_clay", true, "pickaxe", sounds.stone},
|
|
|
|
|
{"bricks_limestone", true, "pickaxe", sounds.stone},
|
|
|
|
|
{"bricks_marble", true, "pickaxe", sounds.stone},
|
|
|
|
|
{"bricks_sandstone", true, "pickaxe", sounds.stone},
|
|
|
|
|
{"bricks_stone", true, "pickaxe", sounds.stone},
|
|
|
|
|
{"bricks_stone_moss", true, "pickaxe", sounds.stone},
|
|
|
|
|
{"cobble", true, "pickaxe", sounds.stone},
|
|
|
|
|
{"cobble_moss", true, "pickaxe", sounds.stone},
|
|
|
|
|
{"limestone", true, "pickaxe", sounds.stone},
|
|
|
|
|
{"marble", true, "pickaxe", sounds.stone},
|
|
|
|
|
{"sandstone", true, "pickaxe", sounds.stone},
|
|
|
|
|
{"stone", true, "pickaxe", sounds.stone},
|
|
|
|
|
{"stone_moss", true, "pickaxe", sounds.stone},
|
|
|
|
|
{"obsidian", true, false, sounds.stone},
|
|
|
|
|
{"bedrock", true, false, sounds.stone},
|
|
|
|
|
{"redrock", true, false, sounds.stone},
|
|
|
|
|
{"bronze", false, "pickaxe", sounds.metal},
|
|
|
|
|
{"gold", false, "pickaxe", sounds.metal},
|
|
|
|
|
{"emerald", false, "pickaxe", sounds.stone},
|
|
|
|
|
{"iron", false, "pickaxe", sounds.metal},
|
|
|
|
|
{"clay", false, "shovel", sounds.dirt},
|
|
|
|
|
{"dirt", false, "shovel", sounds.dirt},
|
|
|
|
|
{"gravel", false, "shovel", sounds.gravel, 1},
|
|
|
|
|
{"sand", false, "shovel", sounds.sand, 1},
|
|
|
|
|
{"wood_dark", true, "axe", sounds.wood},
|
|
|
|
|
{"wood_light", true, "axe", sounds.wood},
|
|
|
|
|
{"wood_medium", true, "axe", sounds.wood},
|
|
|
|
|
{"grass", false, false, sounds.grass},
|
|
|
|
|
{"snow", false, "shovel", sounds.snow},
|
|
|
|
|
{"ice", false, "pickaxe", sounds.stone},
|
|
|
|
|
{"ore_black", false, "pickaxe", sounds.stone},
|
|
|
|
|
{"ore_blue", false, "pickaxe", sounds.stone},
|
|
|
|
|
{"ore_brown", false, "pickaxe", sounds.stone},
|
|
|
|
|
{"ore_cyan", false, "pickaxe", sounds.stone},
|
|
|
|
|
{"ore_gold", false, "pickaxe", sounds.stone},
|
|
|
|
|
{"ore_green", false, "pickaxe", sounds.stone},
|
|
|
|
|
{"ore_red", false, "pickaxe", sounds.stone},
|
|
|
|
|
{"bricks_clay", true, "pickaxe", sounds.stone, "clay bricks"},
|
|
|
|
|
{"bricks_limestone", true, "pickaxe", sounds.stone, "limestone bricks"},
|
|
|
|
|
{"bricks_marble", true, "pickaxe", sounds.stone, "marble bricks"},
|
|
|
|
|
{"bricks_sandstone", true, "pickaxe", sounds.stone, "sandstone bricks"},
|
|
|
|
|
{"bricks_stone", true, "pickaxe", sounds.stone, "stone bricks"},
|
|
|
|
|
{"bricks_stone_moss", true, "pickaxe", sounds.stone, "mossy stone bricks"},
|
|
|
|
|
{"cobble", true, "pickaxe", sounds.stone, "cobblestone"},
|
|
|
|
|
{"cobble_moss", true, "pickaxe", sounds.stone, "mossy cobblestone"},
|
|
|
|
|
{"limestone", true, "pickaxe", sounds.stone, "limestone"},
|
|
|
|
|
{"marble", true, "pickaxe", sounds.stone, "marble"},
|
|
|
|
|
{"sandstone", true, "pickaxe", sounds.stone, "sandstone"},
|
|
|
|
|
{"stone", true, "pickaxe", sounds.stone, "stone"},
|
|
|
|
|
{"stone_moss", true, "pickaxe", sounds.stone, "mossy stone"},
|
|
|
|
|
{"obsidian", true, false, sounds.stone, "obsidian"},
|
|
|
|
|
{"bedrock", true, false, sounds.stone, "bedrock"},
|
|
|
|
|
{"redrock", true, false, sounds.stone, "red rock"},
|
|
|
|
|
{"bronze", false, "pickaxe", sounds.metal, "bronze"},
|
|
|
|
|
{"gold", false, "pickaxe", sounds.metal, "gold"},
|
|
|
|
|
{"emerald", false, "pickaxe", sounds.stone, "emerald"},
|
|
|
|
|
{"iron", false, "pickaxe", sounds.metal, "iron"},
|
|
|
|
|
{"clay", false, "shovel", sounds.dirt, "clay"},
|
|
|
|
|
{"dirt", false, "shovel", sounds.dirt, "dirt"},
|
|
|
|
|
{"gravel", false, "shovel", sounds.gravel, "gravel", 1},
|
|
|
|
|
{"sand", false, "shovel", sounds.sand, "sand", 1},
|
|
|
|
|
{"wood_dark", true, "axe", sounds.wood, "dark wood"},
|
|
|
|
|
{"wood_light", true, "axe", sounds.wood, "light wood"},
|
|
|
|
|
{"wood_medium", true, "axe", sounds.wood, "medium wood"},
|
|
|
|
|
{"grass", false, false, sounds.grass, "grass block"},
|
|
|
|
|
{"snow", false, "shovel", sounds.snow, "snow"},
|
|
|
|
|
{"ice", false, "pickaxe", sounds.stone, "ice"},
|
|
|
|
|
{"ore_black", false, "pickaxe", sounds.stone, "black ore"},
|
|
|
|
|
{"ore_blue", false, "pickaxe", sounds.stone, "blue ore"},
|
|
|
|
|
{"ore_brown", false, "pickaxe", sounds.stone, "brown ore"},
|
|
|
|
|
{"ore_cyan", false, "pickaxe", sounds.stone, "cyan ore"},
|
|
|
|
|
{"ore_gold", false, "pickaxe", sounds.stone, "gold ore"},
|
|
|
|
|
{"ore_green", false, "pickaxe", sounds.stone, "green ore"},
|
|
|
|
|
{"ore_red", false, "pickaxe", sounds.stone, "red ore"},
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
local function make_stair_slab(name, groups, b1, b2, snd, tex)
|
|
|
|
|
local function make_stair_slab(name, desc, groups, b1, b2, snd, tex)
|
|
|
|
|
if not tex then
|
|
|
|
|
tex = name
|
|
|
|
|
end
|
|
|
|
|
minetest.register_node("nodes:" .. name .. b1 .. "_stairs", {
|
|
|
|
|
description = nm(name .. " stairs" .. b2),
|
|
|
|
|
description = nm(desc .. " stairs" .. b2),
|
|
|
|
|
tiles = {tex .. ".png"},
|
|
|
|
|
drawtype = "mesh",
|
|
|
|
|
mesh = "stairs_stair.obj",
|
|
|
|
@ -318,7 +318,7 @@ local function make_stair_slab(name, groups, b1, b2, snd, tex)
|
|
|
|
|
sounds = snd,
|
|
|
|
|
})
|
|
|
|
|
minetest.register_node("nodes:" .. name .. b1 .. "_slab", {
|
|
|
|
|
description = nm(name .. " slab" .. b2),
|
|
|
|
|
description = nm(desc .. " slab" .. b2),
|
|
|
|
|
tiles = {tex .. ".png"},
|
|
|
|
|
drawtype = "nodebox",
|
|
|
|
|
paramtype = "light",
|
|
|
|
@ -336,7 +336,7 @@ for n, v in pairs(nodelist) do
|
|
|
|
|
local tex = "blocks_tiles.png^[sheet:8x8:" .. (n - 1) % 8 .. "," .. math.floor((n - 1) / 8)
|
|
|
|
|
|
|
|
|
|
local groups = {node = 1}
|
|
|
|
|
if v[5] then
|
|
|
|
|
if v[6] then
|
|
|
|
|
groups.falling_node = 1
|
|
|
|
|
end
|
|
|
|
|
if v[4] == sounds.stone then
|
|
|
|
@ -349,30 +349,30 @@ for n, v in pairs(nodelist) do
|
|
|
|
|
local gg = table.copy(groups)
|
|
|
|
|
gg[v[3]] = 3
|
|
|
|
|
minetest.register_node("nodes:" .. v[1] .. "_breakable", {
|
|
|
|
|
description = nm(v[1]),
|
|
|
|
|
description = nm(v[5]),
|
|
|
|
|
tiles = {tex},
|
|
|
|
|
groups = gg,
|
|
|
|
|
sounds = v[4],
|
|
|
|
|
})
|
|
|
|
|
if v[2] then
|
|
|
|
|
make_stair_slab(v[1], gg, "_breakable", "", v[4], tex)
|
|
|
|
|
make_stair_slab(v[1], v[5], gg, "_breakable", "", v[4], tex)
|
|
|
|
|
end
|
|
|
|
|
frame.register("nodes:" .. v[1] .. "_breakable")
|
|
|
|
|
end
|
|
|
|
|
groups.unbreakable = 1
|
|
|
|
|
minetest.register_node("nodes:" .. v[1], {
|
|
|
|
|
description = nm(v[1]),
|
|
|
|
|
description = nm(v[5]),
|
|
|
|
|
tiles = {tex},
|
|
|
|
|
groups = groups,
|
|
|
|
|
sounds = v[4],
|
|
|
|
|
})
|
|
|
|
|
if v[2] then
|
|
|
|
|
make_stair_slab(v[1], groups, "", "", v[4], tex)
|
|
|
|
|
make_stair_slab(v[1], v[5], groups, "", "", v[4], tex)
|
|
|
|
|
if groups.stone then
|
|
|
|
|
walls.register("nodes:" .. v[1] .. "_wall", v[1] .. " Wall", tex, v[4],
|
|
|
|
|
walls.register("nodes:" .. v[1] .. "_wall", nm(v[5] .. " wall"), nm("Middle " .. v[5] .. " wall"), tex, v[4],
|
|
|
|
|
groups, {"group:stone"})
|
|
|
|
|
else
|
|
|
|
|
walls.register("nodes:" .. v[1] .. "_wall", v[1] .. " Wall", tex, v[4],
|
|
|
|
|
walls.register("nodes:" .. v[1] .. "_wall", nm(v[5] .. " wall"), nm("Middle " ..v[5] .. " wall"), tex, v[4],
|
|
|
|
|
groups, {"group:wood"})
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
@ -433,14 +433,14 @@ for n, v in pairs({"yellow", "white", "violet", "red",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
})
|
|
|
|
|
make_stair_slab("wool_" .. v, {node = 1, unbreakable = 1}, "", "", sounds.cloth, tex)
|
|
|
|
|
make_stair_slab("wool_" .. v, nm(v .. " wool"), {node = 1, unbreakable = 1}, "", "", sounds.cloth, tex)
|
|
|
|
|
minetest.register_node("nodes:wool_" .. v .. "_breakable", {
|
|
|
|
|
description = nm(v .. " wool"),
|
|
|
|
|
tiles = {tex},
|
|
|
|
|
groups = {axe = 1, node = 1},
|
|
|
|
|
sounds = sounds.cloth,
|
|
|
|
|
})
|
|
|
|
|
make_stair_slab("wool_" .. v, {axe = 1, node = 1}, "_breakable", "", sounds.cloth, tex)
|
|
|
|
|
make_stair_slab("wool_" .. v, nm(v .. " wool"), {axe = 1, node = 1}, "_breakable", "", sounds.cloth, tex)
|
|
|
|
|
frame.register("nodes:wool_" .. v .. "_breakable")
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
@ -457,14 +457,14 @@ for n, v in pairs({"black", "violet", "brown", "cyan",
|
|
|
|
|
groups = {node = 1, unbreakable = 1},
|
|
|
|
|
sounds = sounds.clay,
|
|
|
|
|
})
|
|
|
|
|
make_stair_slab("hardened_clay_" .. v, {node = 1, unbreakable = 1}, "", "", sounds.cloth, tex)
|
|
|
|
|
make_stair_slab("hardened_clay_" .. v, nm(v .. " hardened clay"), {node = 1, unbreakable = 1}, "", "", sounds.cloth, tex)
|
|
|
|
|
minetest.register_node("nodes:hardened_clay_" .. v .. "_breakable", {
|
|
|
|
|
description = nm(v .. " hardened clay"),
|
|
|
|
|
tiles = {tex},
|
|
|
|
|
groups = {pickaxe = 1, node = 1},
|
|
|
|
|
sounds = sounds.cloth,
|
|
|
|
|
})
|
|
|
|
|
make_stair_slab("hardened_clay_" .. v, {axe = 1, node = 1}, "_breakable", "", sounds.cloth, tex)
|
|
|
|
|
make_stair_slab("hardened_clay_" .. v, nm(v .. " hardened clay"), {axe = 1, node = 1}, "_breakable", "", sounds.cloth, tex)
|
|
|
|
|
frame.register("nodes:hardened_clay_" .. v .. "_breakable")
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
@ -542,7 +542,7 @@ end
|
|
|
|
|
|
|
|
|
|
-- glass
|
|
|
|
|
minetest.register_node("nodes:glass", {
|
|
|
|
|
description = "glass",
|
|
|
|
|
description = "Glass",
|
|
|
|
|
drawtype = "glasslike_framed_optional",
|
|
|
|
|
sunlight_propagates = true,
|
|
|
|
|
paramtype = "light",
|
|
|
|
@ -552,7 +552,7 @@ minetest.register_node("nodes:glass", {
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
minetest.register_node("nodes:glass_breakable", {
|
|
|
|
|
description = "glass",
|
|
|
|
|
description = "Glass",
|
|
|
|
|
drawtype = "glasslike_framed_optional",
|
|
|
|
|
sunlight_propagates = true,
|
|
|
|
|
paramtype = "light",
|
|
|
|
@ -584,7 +584,7 @@ for _, v in pairs({14, 11, 8, 0}) do
|
|
|
|
|
on_untrigger = lamp_on_untrigger
|
|
|
|
|
end
|
|
|
|
|
minetest.register_node("nodes:lamp_bar_" .. v, {
|
|
|
|
|
description = "A Lamp (" .. v .. ")",
|
|
|
|
|
description = "Wall lamp (" .. v .. ")",
|
|
|
|
|
light_source = v,
|
|
|
|
|
sunlight_propagates = true,
|
|
|
|
|
tiles = {"lamp_bar.png"},
|
|
|
|
@ -606,7 +606,7 @@ for _, v in pairs({14, 11, 8, 0}) do
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
minetest.register_node("nodes:lamp_bar_broken", {
|
|
|
|
|
description = "Broken lamp (flickering)",
|
|
|
|
|
description = "Broken wall lamp (flickering)",
|
|
|
|
|
light_source = 8,
|
|
|
|
|
sunlight_propagates = true,
|
|
|
|
|
tiles = {"lamp_bar.png"},
|
|
|
|
@ -634,7 +634,7 @@ minetest.register_node("nodes:lamp_bar_broken", {
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
minetest.register_node("nodes:lamp_bar_broken_off", {
|
|
|
|
|
description = "Broken lamp (flickering, off)",
|
|
|
|
|
description = "Broken wall lamp (flickering, off)",
|
|
|
|
|
sunlight_propagates = true,
|
|
|
|
|
tiles = {"lamp_bar.png"},
|
|
|
|
|
paramtype = "light",
|
|
|
|
@ -662,7 +662,7 @@ minetest.register_node("nodes:lamp_bar_broken_off", {
|
|
|
|
|
|
|
|
|
|
-- glowblock
|
|
|
|
|
minetest.register_node("nodes:glowblock", {
|
|
|
|
|
description = "A glowblock ",
|
|
|
|
|
description = "Glowblock",
|
|
|
|
|
tiles = {"glowblock.png"},
|
|
|
|
|
light_source = 13,
|
|
|
|
|
groups = {node = 1, unbreakable = 1},
|
|
|
|
@ -697,7 +697,7 @@ for _, v in pairs({14, 11, 8, 0}) do
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
minetest.register_node("nodes:lamp_block_" .. v, {
|
|
|
|
|
description = "A Lamp block (" .. v .. ")",
|
|
|
|
|
description = "Lamp block (" .. v .. ")",
|
|
|
|
|
tiles = tiles,
|
|
|
|
|
light_source = v,
|
|
|
|
|
groups = {node = 1, unbreakable = 1},
|
|
|
|
@ -708,10 +708,14 @@ for _, v in pairs({14, 11, 8, 0}) do
|
|
|
|
|
})
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for n, wood in ipairs({"wood_dark", "wood_light", "wood_medium"}) do
|
|
|
|
|
fences.register_fence("nodes:fence_" .. wood, {
|
|
|
|
|
description = nm(wood .. " fence"),
|
|
|
|
|
local wood_fences = {
|
|
|
|
|
{ "wood_dark", "Dark wood fence" },
|
|
|
|
|
{ "wood_light", "Light wood fence" },
|
|
|
|
|
{ "wood_medium", "Medium wood fence" },
|
|
|
|
|
}
|
|
|
|
|
for n, wood in ipairs(wood_fences) do
|
|
|
|
|
fences.register_fence("nodes:fence_" .. wood[1], {
|
|
|
|
|
description = wood[2],
|
|
|
|
|
texture = "blocks_tiles.png^[sheet:8x8:" .. n - 1 ..",3",
|
|
|
|
|
inventory_image = "default_fence_overlay.png^" .. "blocks_tiles.png^[sheet:8x8:" .. n - 1 ..",3" ..
|
|
|
|
|
"^default_fence_overlay.png^[makealpha:255,126,126",
|
|
|
|
@ -1401,17 +1405,19 @@ frame.register("nodes:fire")
|
|
|
|
|
-- empty (fake) chest
|
|
|
|
|
-- chest-with-key
|
|
|
|
|
-- chest-with-tool
|
|
|
|
|
for _, name in ipairs({
|
|
|
|
|
"nothing",
|
|
|
|
|
"boxes:nexus",
|
|
|
|
|
"tools:axe",
|
|
|
|
|
"tools:pickaxe",
|
|
|
|
|
"tools:shovel",
|
|
|
|
|
"tools:sword",
|
|
|
|
|
"tools:flint_and_steel",
|
|
|
|
|
for _, names in ipairs({
|
|
|
|
|
{ "nothing", "Empty chest" },
|
|
|
|
|
{ "boxes:nexus", "Chest with nexus" },
|
|
|
|
|
{ "tools:axe", "Chest with axe" },
|
|
|
|
|
{ "tools:pickaxe", "Chest with pickaxe" },
|
|
|
|
|
{ "tools:shovel", "Chest with shovel" },
|
|
|
|
|
{ "tools:sword", "Chest with sword" },
|
|
|
|
|
{ "tools:flint_and_steel", "Chest with flint and steel" },
|
|
|
|
|
}) do
|
|
|
|
|
local name = names[1]
|
|
|
|
|
local desc = names[2]
|
|
|
|
|
minetest.register_node("nodes:chest_with_" .. string.gsub(name, ":", "_"), {
|
|
|
|
|
description = "Chest with " .. name,
|
|
|
|
|
description = desc,
|
|
|
|
|
drawtype = "mesh",
|
|
|
|
|
paramtype = "light",
|
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
@ -1439,7 +1445,7 @@ end
|
|
|
|
|
minetest.register_alias("nodes:chest_with_boxes_findme_item", "nodes:chest_with_boxes_nexus")
|
|
|
|
|
|
|
|
|
|
minetest.register_node("nodes:chest_open", {
|
|
|
|
|
description = "Chest",
|
|
|
|
|
description = "Open chest",
|
|
|
|
|
drawtype = "mesh",
|
|
|
|
|
paramtype = "light",
|
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
@ -1460,50 +1466,50 @@ minetest.register_node("nodes:chest_open", {
|
|
|
|
|
-- farming plants
|
|
|
|
|
-- flowerpot combos
|
|
|
|
|
for _, n in pairs({
|
|
|
|
|
{"grass_1", "3,3", 56},
|
|
|
|
|
{"grass_2", "4,3", 56},
|
|
|
|
|
{"grass_3", "5,3", 56},
|
|
|
|
|
{"grass_4", "6,3", 56},
|
|
|
|
|
{"grass_5", "7,3", 56},
|
|
|
|
|
{"dead_bush", "1,3", 56},
|
|
|
|
|
{"rose", "6,4", 9},
|
|
|
|
|
{"dandelion", "0,3", 9},
|
|
|
|
|
{"white_tulip", "4,5", 9},
|
|
|
|
|
{"allium", "6,2", 9},
|
|
|
|
|
{"orchid", "3,4", 9},
|
|
|
|
|
{"daisy", "7,2", 9},
|
|
|
|
|
{"houstonia", "0,4", 9},
|
|
|
|
|
{"paeonia", "4,4", 9},
|
|
|
|
|
{"wheat_stage_0", "0,1", 11},
|
|
|
|
|
{"wheat_stage_1", "1,1", 11},
|
|
|
|
|
{"wheat_stage_2", "2,1", 11},
|
|
|
|
|
{"wheat_stage_3", "3,1", 11},
|
|
|
|
|
{"wheat_stage_4", "4,1", 11},
|
|
|
|
|
{"wheat_stage_5", "5,1", 11},
|
|
|
|
|
{"wheat_stage_6", "6,1", 11},
|
|
|
|
|
{"wheat_stage_7", "7,1", 11},
|
|
|
|
|
{"potatoes_stage_0", "4,0", 10},
|
|
|
|
|
{"potatoes_stage_1", "5,0", 10},
|
|
|
|
|
{"potatoes_stage_2", "6,0", 10},
|
|
|
|
|
{"potatoes_stage_3", "7,0", 10},
|
|
|
|
|
{"carrots_stage_0", "0,0", 8},
|
|
|
|
|
{"carrots_stage_1", "1,0", 8},
|
|
|
|
|
{"carrots_stage_2", "2,0", 8},
|
|
|
|
|
{"carrots_stage_3", "3,0", 8},
|
|
|
|
|
{"sapling_1", "0,2", 8, true},
|
|
|
|
|
{"sapling_2", "1,2", 8, true},
|
|
|
|
|
{"sapling_3", "2,2", 8, true},
|
|
|
|
|
{"sapling_4", "3,2", 8, true},
|
|
|
|
|
{"sapling_5", "4,2", 8, true},
|
|
|
|
|
{"sapling_6", "5,2", 8, true},
|
|
|
|
|
{"mushroom_red", "2,4", 10, true},
|
|
|
|
|
{"mushroom_brown", "1,4", 10, true},
|
|
|
|
|
{"fern", "2,3", 9},
|
|
|
|
|
{"reeds", "5,4", 0},
|
|
|
|
|
{"grass_1", "3,3", 56, "grass (1)"},
|
|
|
|
|
{"grass_2", "4,3", 56, "grass (2)"},
|
|
|
|
|
{"grass_3", "5,3", 56, "grass (3)"},
|
|
|
|
|
{"grass_4", "6,3", 56, "grass (4)"},
|
|
|
|
|
{"grass_5", "7,3", 56, "grass (5)"},
|
|
|
|
|
{"dead_bush", "1,3", 56, "dead bush"},
|
|
|
|
|
{"rose", "6,4", 9, "rose"},
|
|
|
|
|
{"dandelion", "0,3", 9, "dandelion"},
|
|
|
|
|
{"white_tulip", "4,5", 9, "white tulip"},
|
|
|
|
|
{"allium", "6,2", 9, "allium"},
|
|
|
|
|
{"orchid", "3,4", 9, "orchid"},
|
|
|
|
|
{"daisy", "7,2", 9, "daisy"},
|
|
|
|
|
{"houstonia", "0,4", 9, "bluet"},
|
|
|
|
|
{"paeonia", "4,4", 9, "peony"},
|
|
|
|
|
{"wheat_stage_0", "0,1", 11, "wheat (stage 0)"},
|
|
|
|
|
{"wheat_stage_1", "1,1", 11, "wheat (stage 1)"},
|
|
|
|
|
{"wheat_stage_2", "2,1", 11, "wheat (stage 2)"},
|
|
|
|
|
{"wheat_stage_3", "3,1", 11, "wheat (stage 3)"},
|
|
|
|
|
{"wheat_stage_4", "4,1", 11, "wheat (stage 4)"},
|
|
|
|
|
{"wheat_stage_5", "5,1", 11, "wheat (stage 5)"},
|
|
|
|
|
{"wheat_stage_6", "6,1", 11, "wheat (stage 6)"},
|
|
|
|
|
{"wheat_stage_7", "7,1", 11, "wheat (stage 7)"},
|
|
|
|
|
{"potatoes_stage_0", "4,0", 10, "potatoes (stage 0)"},
|
|
|
|
|
{"potatoes_stage_1", "5,0", 10, "potatoes (stage 1)"},
|
|
|
|
|
{"potatoes_stage_2", "6,0", 10, "potatoes (stage 2)"},
|
|
|
|
|
{"potatoes_stage_3", "7,0", 10, "potatoes (stage 3)"},
|
|
|
|
|
{"carrots_stage_0", "0,0", 8, "carrots (stage 0)"},
|
|
|
|
|
{"carrots_stage_1", "1,0", 8, "carrots (stage 1)"},
|
|
|
|
|
{"carrots_stage_2", "2,0", 8, "carrots (stage 2)"},
|
|
|
|
|
{"carrots_stage_3", "3,0", 8, "carrots (stage 3)"},
|
|
|
|
|
{"sapling_1", "0,2", 8, "sapling 1", true},
|
|
|
|
|
{"sapling_2", "1,2", 8, "sapling 2", true},
|
|
|
|
|
{"sapling_3", "2,2", 8, "sapling 3", true},
|
|
|
|
|
{"sapling_4", "3,2", 8, "sapling 4", true},
|
|
|
|
|
{"sapling_5", "4,2", 8, "sapling 5", true},
|
|
|
|
|
{"sapling_6", "5,2", 8, "sapling 6", true},
|
|
|
|
|
{"mushroom_red", "2,4", 10, "red mushroom", true},
|
|
|
|
|
{"mushroom_brown", "1,4", 10, "brown mushroom", true},
|
|
|
|
|
{"fern", "2,3", 9, "fern"},
|
|
|
|
|
{"reeds", "5,4", 0, "reeds"},
|
|
|
|
|
}) do
|
|
|
|
|
local tex = "plant_tiles.png^[sheet:8x8:" .. n[2]
|
|
|
|
|
minetest.register_node("nodes:" .. n[1], {
|
|
|
|
|
description = nm(n[1]),
|
|
|
|
|
description = nm(n[4]),
|
|
|
|
|
drawtype = "plantlike",
|
|
|
|
|
place_param2 = n[3],
|
|
|
|
|
tiles = {tex},
|
|
|
|
@ -1522,9 +1528,9 @@ for _, n in pairs({
|
|
|
|
|
sounds = sounds.grass,
|
|
|
|
|
groups = {node = 1},
|
|
|
|
|
})
|
|
|
|
|
if n[4] then
|
|
|
|
|
if n[5] then
|
|
|
|
|
minetest.register_node("nodes:" .. n[1] .. "_breakable", {
|
|
|
|
|
description = nm(n[1]),
|
|
|
|
|
description = nm(n[4]),
|
|
|
|
|
drawtype = "plantlike",
|
|
|
|
|
place_param2 = n[3],
|
|
|
|
|
tiles = {tex},
|
|
|
|
@ -1548,7 +1554,7 @@ for _, n in pairs({
|
|
|
|
|
frame.register("nodes:" .. n[1])
|
|
|
|
|
end
|
|
|
|
|
minetest.register_node("nodes:flowerpot_" ..n[1], {
|
|
|
|
|
description = nm("Pot with " .. n[1]),
|
|
|
|
|
description = "Pot with " .. n[4],
|
|
|
|
|
drawtype = "mesh",
|
|
|
|
|
mesh = "flowerpot.obj",
|
|
|
|
|
tiles = {
|
|
|
|
@ -1623,12 +1629,12 @@ end
|
|
|
|
|
|
|
|
|
|
-- empty flowerpot
|
|
|
|
|
minetest.register_node("nodes:flowerpot_empty", {
|
|
|
|
|
description = "Pot (empty)",
|
|
|
|
|
description = "Empty pot",
|
|
|
|
|
drawtype = "mesh",
|
|
|
|
|
mesh = "flowerpot.obj",
|
|
|
|
|
tiles = {
|
|
|
|
|
{name = "pot.png"},
|
|
|
|
|
{name = "itb_blank.png"},
|
|
|
|
|
{name = "blank.png"},
|
|
|
|
|
},
|
|
|
|
|
paramtype = "light",
|
|
|
|
|
sunlight_propagates = true,
|
|
|
|
@ -1647,23 +1653,23 @@ minetest.register_node("nodes:flowerpot_empty", {
|
|
|
|
|
|
|
|
|
|
-- soil
|
|
|
|
|
for _, v in pairs({
|
|
|
|
|
"soil",
|
|
|
|
|
"soil_wet",
|
|
|
|
|
{ "soil", "Soil" },
|
|
|
|
|
{ "soil_wet", "Wet soil" },
|
|
|
|
|
}) do
|
|
|
|
|
-- register diggable node version
|
|
|
|
|
minetest.register_node("nodes:" .. v .. "_breakable", {
|
|
|
|
|
description = nm(v),
|
|
|
|
|
tiles = {v .. ".png", "blocks_tiles.png^[sheet:8x8:5,2"},
|
|
|
|
|
minetest.register_node("nodes:" .. v[1] .. "_breakable", {
|
|
|
|
|
description = v[2],
|
|
|
|
|
tiles = {v[1] .. ".png", "blocks_tiles.png^[sheet:8x8:5,2"},
|
|
|
|
|
groups = {node = 1, shovel = 1},
|
|
|
|
|
sounds = sounds.dirt,
|
|
|
|
|
})
|
|
|
|
|
minetest.register_node("nodes:" .. v, {
|
|
|
|
|
description = nm(v),
|
|
|
|
|
tiles = {v .. ".png", "blocks_tiles.png^[sheet:8x8:5,2"},
|
|
|
|
|
minetest.register_node("nodes:" .. v[1], {
|
|
|
|
|
description = v[2],
|
|
|
|
|
tiles = {v[1] .. ".png", "blocks_tiles.png^[sheet:8x8:5,2"},
|
|
|
|
|
groups = {node = 1, unbreakable = 1},
|
|
|
|
|
sounds = sounds.dirt,
|
|
|
|
|
})
|
|
|
|
|
frame.register("nodes:" .. v .. "_breakable")
|
|
|
|
|
frame.register("nodes:" .. v[1] .. "_breakable")
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
-- dirt with grass,
|
|
|
|
@ -1698,13 +1704,13 @@ frame.register("nodes:dirt_with_podzol_breakable")
|
|
|
|
|
|
|
|
|
|
-- mycelium
|
|
|
|
|
minetest.register_node("nodes:mycelium_breakable", {
|
|
|
|
|
description = "mycelium",
|
|
|
|
|
description = "Mycelium",
|
|
|
|
|
tiles = {"mycelium_top.png", "blocks_tiles.png^[sheet:8x8:5,2", "mycelium_side.png"},
|
|
|
|
|
groups = {node = 1, shovel = 1},
|
|
|
|
|
sounds = sounds.dirt,
|
|
|
|
|
})
|
|
|
|
|
minetest.register_node("nodes:mycelium", {
|
|
|
|
|
description = "mycelium",
|
|
|
|
|
description = "Mycelium",
|
|
|
|
|
tiles = {"mycelium_top.png", "blocks_tiles.png^[sheet:8x8:5,2", "mycelium_side.png"},
|
|
|
|
|
groups = {node = 1, unbreakable = 1},
|
|
|
|
|
sounds = sounds.dirt,
|
|
|
|
@ -1743,9 +1749,16 @@ minetest.register_node("nodes:snow_ledge", {
|
|
|
|
|
},
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
for i, v in ipairs({[1] = "blue", [2] = "gray", [3] = "green", [4] = "rail", [5] = "red"}) do
|
|
|
|
|
minetest.register_node("nodes:line_" .. v, {
|
|
|
|
|
description = "Line (" .. v .. ")",
|
|
|
|
|
local lines = {
|
|
|
|
|
{ "blue", "Blue line" },
|
|
|
|
|
{ "gray", "Gray line" },
|
|
|
|
|
{ "green", "Green line" },
|
|
|
|
|
{ "rail", "Rail" },
|
|
|
|
|
{ "red", "Red line" },
|
|
|
|
|
}
|
|
|
|
|
for i, v in ipairs(lines) do
|
|
|
|
|
minetest.register_node("nodes:line_" .. v[1], {
|
|
|
|
|
description = v[2],
|
|
|
|
|
drawtype = "raillike",
|
|
|
|
|
paramtype = "light",
|
|
|
|
|
sunlight_propagates = true,
|
|
|
|
|