diff --git a/mods/artifact_world/init.lua b/mods/artifact_world/init.lua index ad09006..1488442 100644 --- a/mods/artifact_world/init.lua +++ b/mods/artifact_world/init.lua @@ -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 diff --git a/mods/artifact_world/models/artifact_lamp_hanging.obj b/mods/artifact_world/models/artifact_lamp_hanging.obj new file mode 100644 index 0000000..1f93d70 --- /dev/null +++ b/mods/artifact_world/models/artifact_lamp_hanging.obj @@ -0,0 +1,279 @@ +# Made in Blockbench 4.12.5 +mtllib artifact_lamp_hanging.mtl + +o cube +v 0.125 0.25 0.125 +v 0.125 0.25 -0.125 +v 0.125 0 0.125 +v 0.125 0 -0.125 +v -0.125 0.25 -0.125 +v -0.125 0.25 0.125 +v -0.125 0 -0.125 +v -0.125 0 0.125 +vt 0 1 +vt 0.25 1 +vt 0.25 0.75 +vt 0 0.75 +vt 0 1 +vt 0.25 1 +vt 0.25 0.75 +vt 0 0.75 +vt 0 1 +vt 0.25 1 +vt 0.25 0.75 +vt 0 0.75 +vt 0 1 +vt 0.25 1 +vt 0.25 0.75 +vt 0 0.75 +vt 0 1 +vt 0.25 1 +vt 0.25 0.75 +vt 0 0.75 +vt 0 1 +vt 0.25 1 +vt 0.25 0.75 +vt 0 0.75 +vn 0 0 -1 +vn 1 0 0 +vn 0 0 1 +vn -1 0 0 +vn 0 1 0 +vn 0 -1 0 +usemtl m_ce9dfcf1-fabc-7821-ade4-7b668787e451 +f 4/4/1 7/3/1 5/2/1 2/1/1 +f 3/8/2 4/7/2 2/6/2 1/5/2 +f 8/12/3 3/11/3 1/10/3 6/9/3 +f 7/16/4 8/15/4 6/14/4 5/13/4 +f 6/20/5 1/19/5 2/18/5 5/17/5 +f 7/24/6 4/23/6 3/22/6 8/21/6 +o cube +v -0.03125 0.375 0.03125 +v -0.03125 0.375 -0.03125 +v -0.03125 0.25 0.03125 +v -0.03125 0.25 -0.03125 +v -0.09375 0.375 -0.03125 +v -0.09375 0.375 0.03125 +v -0.09375 0.25 -0.03125 +v -0.09375 0.25 0.03125 +vt 0.8125 0.875 +vt 0.875 0.875 +vt 0.875 0.75 +vt 0.8125 0.75 +vt 0.8125 0.875 +vt 0.875 0.875 +vt 0.875 0.75 +vt 0.8125 0.75 +vt 0.8125 0.875 +vt 0.875 0.875 +vt 0.875 0.75 +vt 0.8125 0.75 +vt 0.8125 0.875 +vt 0.875 0.875 +vt 0.875 0.75 +vt 0.8125 0.75 +vt 0.8125 0.875 +vt 0.875 0.875 +vt 0.875 0.8125 +vt 0.8125 0.8125 +vt 0.8125 0.8125 +vt 0.875 0.8125 +vt 0.875 0.75 +vt 0.8125 0.75 +vn 0 0 -1 +vn 1 0 0 +vn 0 0 1 +vn -1 0 0 +vn 0 1 0 +vn 0 -1 0 +usemtl m_ce9dfcf1-fabc-7821-ade4-7b668787e451 +f 12/28/7 15/27/7 13/26/7 10/25/7 +f 11/32/8 12/31/8 10/30/8 9/29/8 +f 16/36/9 11/35/9 9/34/9 14/33/9 +f 15/40/10 16/39/10 14/38/10 13/37/10 +f 14/44/11 9/43/11 10/42/11 13/41/11 +f 15/48/12 12/47/12 11/46/12 16/45/12 +o cube +v 0.09375 0.375 0.03125 +v 0.09375 0.375 -0.03125 +v 0.09375 0.25 0.03125 +v 0.09375 0.25 -0.03125 +v 0.03125 0.375 -0.03125 +v 0.03125 0.375 0.03125 +v 0.03125 0.25 -0.03125 +v 0.03125 0.25 0.03125 +vt 0.8125 0.875 +vt 0.875 0.875 +vt 0.875 0.75 +vt 0.8125 0.75 +vt 0.8125 0.875 +vt 0.875 0.875 +vt 0.875 0.75 +vt 0.8125 0.75 +vt 0.8125 0.875 +vt 0.875 0.875 +vt 0.875 0.75 +vt 0.8125 0.75 +vt 0.8125 0.875 +vt 0.875 0.875 +vt 0.875 0.75 +vt 0.8125 0.75 +vt 0.8125 0.875 +vt 0.875 0.875 +vt 0.875 0.8125 +vt 0.8125 0.8125 +vt 0.8125 0.8125 +vt 0.875 0.8125 +vt 0.875 0.75 +vt 0.8125 0.75 +vn 0 0 -1 +vn 1 0 0 +vn 0 0 1 +vn -1 0 0 +vn 0 1 0 +vn 0 -1 0 +usemtl m_ce9dfcf1-fabc-7821-ade4-7b668787e451 +f 20/52/13 23/51/13 21/50/13 18/49/13 +f 19/56/14 20/55/14 18/54/14 17/53/14 +f 24/60/15 19/59/15 17/58/15 22/57/15 +f 23/64/16 24/63/16 22/62/16 21/61/16 +f 22/68/17 17/67/17 18/66/17 21/65/17 +f 23/72/18 20/71/18 19/70/18 24/69/18 +o cube +v -0.03125000000000001 0.5 -0.031249999999999993 +v 0.031249999999999993 0.5 -0.03125000000000001 +v -0.03125000000000001 0.3125 -0.031249999999999993 +v 0.031249999999999993 0.3125 -0.03125000000000001 +v 0.03124999999999998 0.5 -0.09375 +v -0.03125000000000002 0.5 -0.09375 +v 0.03124999999999998 0.3125 -0.09375 +v -0.03125000000000002 0.3125 -0.09375 +vt 0.75 0.875 +vt 0.8125 0.875 +vt 0.8125 0.6875 +vt 0.75 0.6875 +vt 0.75 0.875 +vt 0.8125 0.875 +vt 0.8125 0.6875 +vt 0.75 0.6875 +vt 0.75 0.875 +vt 0.8125 0.875 +vt 0.8125 0.6875 +vt 0.75 0.6875 +vt 0.75 0.875 +vt 0.8125 0.875 +vt 0.8125 0.6875 +vt 0.75 0.6875 +vt 0.75 0.875 +vt 0.8125 0.875 +vt 0.8125 0.8125 +vt 0.75 0.8125 +vt 0.75 0.75 +vt 0.8125 0.75 +vt 0.8125 0.6875 +vt 0.75 0.6875 +vn 1 0 -2.220446049250313e-16 +vn 2.220446049250313e-16 0 1 +vn -1 0 2.220446049250313e-16 +vn -2.220446049250313e-16 0 -1 +vn 0 1 0 +vn 0 -1 0 +usemtl m_ce9dfcf1-fabc-7821-ade4-7b668787e451 +f 28/76/19 31/75/19 29/74/19 26/73/19 +f 27/80/20 28/79/20 26/78/20 25/77/20 +f 32/84/21 27/83/21 25/82/21 30/81/21 +f 31/88/22 32/87/22 30/86/22 29/85/22 +f 30/92/23 25/91/23 26/90/23 29/89/23 +f 31/96/24 28/95/24 27/94/24 32/93/24 +o cube +v -0.03124999999999998 0.5 0.09375 +v 0.03125000000000002 0.5 0.09375 +v -0.03124999999999998 0.3125 0.09375 +v 0.03125000000000002 0.3125 0.09375 +v 0.03125000000000001 0.5 0.031249999999999993 +v -0.031249999999999993 0.5 0.03125000000000001 +v 0.03125000000000001 0.3125 0.031249999999999993 +v -0.031249999999999993 0.3125 0.03125000000000001 +vt 0.75 0.875 +vt 0.8125 0.875 +vt 0.8125 0.6875 +vt 0.75 0.6875 +vt 0.75 0.875 +vt 0.8125 0.875 +vt 0.8125 0.6875 +vt 0.75 0.6875 +vt 0.75 0.875 +vt 0.8125 0.875 +vt 0.8125 0.6875 +vt 0.75 0.6875 +vt 0.75 0.875 +vt 0.8125 0.875 +vt 0.8125 0.6875 +vt 0.75 0.6875 +vt 0.75 0.875 +vt 0.8125 0.875 +vt 0.8125 0.8125 +vt 0.75 0.8125 +vt 0.75 0.75 +vt 0.8125 0.75 +vt 0.8125 0.6875 +vt 0.75 0.6875 +vn 1 0 -2.220446049250313e-16 +vn 2.220446049250313e-16 0 1 +vn -1 0 2.220446049250313e-16 +vn -2.220446049250313e-16 0 -1 +vn 0 1 0 +vn 0 -1 0 +usemtl m_ce9dfcf1-fabc-7821-ade4-7b668787e451 +f 36/100/25 39/99/25 37/98/25 34/97/25 +f 35/104/26 36/103/26 34/102/26 33/101/26 +f 40/108/27 35/107/27 33/106/27 38/105/27 +f 39/112/28 40/111/28 38/110/28 37/109/28 +f 38/116/29 33/115/29 34/114/29 37/113/29 +f 39/120/30 36/119/30 35/118/30 40/117/30 +o cube +v 0.03125 0.375 0.03125 +v 0.03125 0.375 -0.03125 +v 0.03125 0.3125 0.03125 +v 0.03125 0.3125 -0.03125 +v -0.03125 0.375 -0.03125 +v -0.03125 0.375 0.03125 +v -0.03125 0.3125 -0.03125 +v -0.03125 0.3125 0.03125 +vt 0.8125 0.875 +vt 0.875 0.875 +vt 0.875 0.8125 +vt 0.8125 0.8125 +vt 0.8125 0.875 +vt 0.875 0.875 +vt 0.875 0.8125 +vt 0.8125 0.8125 +vt 0.8125 0.875 +vt 0.875 0.875 +vt 0.875 0.8125 +vt 0.8125 0.8125 +vt 0.8125 0.875 +vt 0.875 0.875 +vt 0.875 0.8125 +vt 0.8125 0.8125 +vt 0.8125 0.875 +vt 0.875 0.875 +vt 0.875 0.8125 +vt 0.8125 0.8125 +vt 0.8125 0.875 +vt 0.875 0.875 +vt 0.875 0.8125 +vt 0.8125 0.8125 +vn 0 0 -1 +vn 1 0 0 +vn 0 0 1 +vn -1 0 0 +vn 0 1 0 +vn 0 -1 0 +usemtl m_ce9dfcf1-fabc-7821-ade4-7b668787e451 +f 44/124/31 47/123/31 45/122/31 42/121/31 +f 43/128/32 44/127/32 42/126/32 41/125/32 +f 48/132/33 43/131/33 41/130/33 46/129/33 +f 47/136/34 48/135/34 46/134/34 45/133/34 +f 46/140/35 41/139/35 42/138/35 45/137/35 +f 47/144/36 44/143/36 43/142/36 48/141/36 \ No newline at end of file diff --git a/mods/artifact_world/textures/artifact_ladder_wood.png b/mods/artifact_world/textures/artifact_ladder_wood.png index 2417f61..201c856 100644 Binary files a/mods/artifact_world/textures/artifact_ladder_wood.png and b/mods/artifact_world/textures/artifact_ladder_wood.png differ diff --git a/mods/artifact_world/textures/artifact_lamp_blue.png b/mods/artifact_world/textures/artifact_lamp_blue.png index 48a20c8..61a6e9c 100644 Binary files a/mods/artifact_world/textures/artifact_lamp_blue.png and b/mods/artifact_world/textures/artifact_lamp_blue.png differ diff --git a/mods/artifact_world/textures/artifact_lamp_gold.png b/mods/artifact_world/textures/artifact_lamp_gold.png index 0fdf060..1f0b39a 100644 Binary files a/mods/artifact_world/textures/artifact_lamp_gold.png and b/mods/artifact_world/textures/artifact_lamp_gold.png differ diff --git a/mods/artifact_world/textures/artifact_lamp_red.png b/mods/artifact_world/textures/artifact_lamp_red.png index 15d1adf..20d4961 100644 Binary files a/mods/artifact_world/textures/artifact_lamp_red.png and b/mods/artifact_world/textures/artifact_lamp_red.png differ diff --git a/mods/artifact_world/textures/artifact_leaves_dry.png b/mods/artifact_world/textures/artifact_leaves_dry.png new file mode 100644 index 0000000..f5c23ab Binary files /dev/null and b/mods/artifact_world/textures/artifact_leaves_dry.png differ diff --git a/mods/artifact_world/textures/artifact_moss.png b/mods/artifact_world/textures/artifact_moss.png new file mode 100644 index 0000000..d1e2859 Binary files /dev/null and b/mods/artifact_world/textures/artifact_moss.png differ diff --git a/mods/artifact_world/textures/artifact_moss_bricks.png b/mods/artifact_world/textures/artifact_moss_bricks.png new file mode 100644 index 0000000..f26421a Binary files /dev/null and b/mods/artifact_world/textures/artifact_moss_bricks.png differ diff --git a/mods/artifact_world/textures/artifact_vines_dry.png b/mods/artifact_world/textures/artifact_vines_dry.png new file mode 100644 index 0000000..2e18331 Binary files /dev/null and b/mods/artifact_world/textures/artifact_vines_dry.png differ