Dry vines and leaves, hanging lamps, and nicer ladders.

This commit is contained in:
Signal 2025-11-09 19:29:36 -05:00
parent 1b8091e26b
commit 5211cc20f2
10 changed files with 335 additions and 26 deletions

View file

@ -41,10 +41,16 @@ end
artifact.register_node("stone", {
tiles = {"artifact_stone.png"}
})
artifact.register_node("stone_mossy", {
tiles = {{name = rep("artifact_stone.png", 4).."^artifact_moss.png", align_style = "world", scale = 4}}
})
artifact.register_node("stone_bricks", {
tiles = {"artifact_stone_bricks.png"}
})
artifact.register_node("stone_bricks_mossy", {
tiles = {{name = rep("artifact_stone_bricks.png", 4).."^artifact_moss_bricks.png", align_style = "world", scale = 4}}
})
artifact.register_node("stone_bricks_small", {
tiles = {"artifact_stone_bricks_small.png"}
@ -81,6 +87,28 @@ artifact.register_node("vines", {
tiles = {"artifact_vines.png"},
use_texture_alpha = true
})
artifact.register_node("vines_dry", {
drawtype = "nodebox",
node_box = {
type = "fixed",
fixed = {
-0.5, -0.5, 0.48,
0.5, 0.5, 0.48
}
},
walkable = false,
selection_box = {
type = "fixed",
fixed = {
-0.5, -0.5, 0.5,
0.5, 0.5, 0.45
}
},
paramtype = "light",
paramtype2 = "facedir",
tiles = {"artifact_vines_dry.png"},
use_texture_alpha = true
})
artifact.register_node("leaves", {
drawtype = "allfaces",
@ -88,6 +116,12 @@ artifact.register_node("leaves", {
tiles = {"artifact_leaves.png"},
use_texture_alpha = true
})
artifact.register_node("leaves_dry", {
drawtype = "allfaces",
-- paramtype = "light",
tiles = {"artifact_leaves_dry.png"},
use_texture_alpha = true
})
artifact.register_node("wood_planks", {
@ -106,33 +140,28 @@ artifact.register_node("ladder_wood", {
artifact.register_node("lamp_gold", {
drawtype = "mesh",
mesh = "artifact_lamp.obj",
tiles = {"artifact_lamp_gold.png"},
light_source = 8,
paramtype = "light",
sunlight_propagates = true
})
artifact.register_node("lamp_red", {
drawtype = "mesh",
mesh = "artifact_lamp.obj",
tiles = {"artifact_lamp_red.png"},
light_source = 6,
paramtype = "light",
sunlight_propagates = true
})
artifact.register_node("lamp_blue", {
drawtype = "mesh",
mesh = "artifact_lamp.obj",
tiles = {"artifact_lamp_blue.png"},
light_source = 10,
paramtype = "light",
sunlight_propagates = true
})
local function register_lamp(color, brightness)
artifact.register_node("lamp_"..color, {
drawtype = "mesh",
mesh = "artifact_lamp.obj",
tiles = {"artifact_lamp_"..color..".png"},
light_source = brightness,
paramtype = "light",
sunlight_propagates = true
})
artifact.register_node("lamp_"..color.."_hanging", {
drawtype = "mesh",
mesh = "artifact_lamp_hanging.obj",
tiles = {"artifact_lamp_"..color..".png"},
light_source = brightness,
paramtype = "light",
sunlight_propagates = true
})
end
register_lamp("red", 6)
register_lamp("gold", 8)
register_lamp("blue", 10)
artifact.register_node("light", {
@ -141,6 +170,7 @@ artifact.register_node("light", {
light_source = 14
})
-- Make darkness the default.
minetest.override_item("air", {
sunlight_propagates = false,
light_source = 2