diff --git a/control.lua b/control.lua index 1a5394a..8b79c74 100644 --- a/control.lua +++ b/control.lua @@ -232,12 +232,12 @@ minetest.register_node("towercrane:mast_ctrl_on", { description = S("Tower Crane Mast Ctrl On"), drawtype = "node", tiles = { - "towercrane_mast_ctrl.png", - "towercrane_mast_ctrl.png", - "towercrane_mast_ctrl.png", - "towercrane_mast_ctrl.png", - "towercrane_mast_ctrl_on.png", - "towercrane_mast_ctrl_on.png", + "towercrane_base.png", + "towercrane_base.png", + "towercrane_base.png", + "towercrane_base.png", + "towercrane_base.png^towercrane_button_on.png", + "towercrane_base.png^towercrane_button_on.png", }, -- switch the crane OFF on_rightclick = function (pos, node, clicker) @@ -255,6 +255,7 @@ minetest.register_node("towercrane:mast_ctrl_on", { paramtype = "light", paramtype2 = "facedir", + light_source = 3, sunlight_propagates = true, is_ground_content = false, groups = {crumbly=0, not_in_creative_inventory=1}, @@ -264,12 +265,12 @@ minetest.register_node("towercrane:mast_ctrl_off", { description = S("Tower Crane Mast Ctrl Off"), drawtype = "node", tiles = { - "towercrane_mast_ctrl.png", - "towercrane_mast_ctrl.png", - "towercrane_mast_ctrl.png", - "towercrane_mast_ctrl.png", - "towercrane_mast_ctrl_off.png", - "towercrane_mast_ctrl_off.png", + "towercrane_base.png", + "towercrane_base.png", + "towercrane_base.png", + "towercrane_base.png", + "towercrane_base.png^towercrane_button_off.png", + "towercrane_base.png^towercrane_button_off.png", }, -- switch the crane ON on_rightclick = function (pos, node, clicker) diff --git a/init.lua b/init.lua index 83f18b9..e37bbcf 100644 --- a/init.lua +++ b/init.lua @@ -240,14 +240,14 @@ end ------------------------------------------------------------------------------- minetest.register_node("towercrane:base", { description = S("Tower Crane Base"), - inventory_image = "towercrane_invent.png", + inventory_image = "[inventorycube{towercrane_mast.png{towercrane_mast.png{towercrane_mast.png", tiles = { - "towercrane_base_top.png", - "towercrane_base.png", - "towercrane_base.png", - "towercrane_base.png", - "towercrane_base.png", - "towercrane_base.png", + "towercrane_base.png^towercrane_arrow.png", + "towercrane_base.png^towercrane_screws.png", + "towercrane_base.png^towercrane_screws.png", + "towercrane_base.png^towercrane_screws.png", + "towercrane_base.png^towercrane_screws.png", + "towercrane_base.png^towercrane_screws.png", }, paramtype = "light", paramtype2 = "facedir", @@ -309,12 +309,7 @@ minetest.register_node("towercrane:base", { minetest.register_node("towercrane:balance", { description = S("Tower Crane Balance"), tiles = { - "towercrane_base.png", - "towercrane_base.png", - "towercrane_base.png", - "towercrane_base.png", - "towercrane_base.png", - "towercrane_base.png", + "towercrane_base.png^towercrane_screws.png", }, paramtype = "light", paramtype2 = "facedir", @@ -328,11 +323,10 @@ minetest.register_node("towercrane:mast", { drawtype = "glasslike_framed", tiles = { "towercrane_mast.png", - "towercrane_mast.png", - "towercrane_mast.png", - "towercrane_mast.png", - "towercrane_mast.png", - "towercrane_mast.png", + { + name = "towercrane_mast.png", + backface_culling = false, + }, }, paramtype = "light", paramtype2 = "facedir", @@ -346,11 +340,10 @@ minetest.register_node("towercrane:arm", { drawtype = "glasslike_framed", tiles = { "towercrane_arm.png", - "towercrane_arm.png", - "towercrane_arm.png", - "towercrane_arm.png", - "towercrane_arm.png", - "towercrane_arm.png", + { + name = "towercrane_arm.png", + backface_culling = false, + }, }, paramtype = "light", paramtype2 = "facedir", @@ -364,11 +357,10 @@ minetest.register_node("towercrane:arm2", { drawtype = "glasslike_framed", tiles = { "towercrane_arm2.png", - "towercrane_arm2.png", - "towercrane_arm2.png", - "towercrane_arm2.png", - "towercrane_arm2.png", - "towercrane_arm2.png", + { + name = "towercrane_arm2.png", + backface_culling = false, + }, }, paramtype = "light", paramtype2 = "facedir", diff --git a/textures/towercrane_arm.png b/textures/towercrane_arm.png index 4570d7b..40f5719 100644 Binary files a/textures/towercrane_arm.png and b/textures/towercrane_arm.png differ diff --git a/textures/towercrane_arm2.png b/textures/towercrane_arm2.png index 20d5cd3..1871cc4 100644 Binary files a/textures/towercrane_arm2.png and b/textures/towercrane_arm2.png differ diff --git a/textures/towercrane_arrow.png b/textures/towercrane_arrow.png new file mode 100644 index 0000000..fa640af Binary files /dev/null and b/textures/towercrane_arrow.png differ diff --git a/textures/towercrane_base.png b/textures/towercrane_base.png index 09f5be3..3387e77 100644 Binary files a/textures/towercrane_base.png and b/textures/towercrane_base.png differ diff --git a/textures/towercrane_base_top.png b/textures/towercrane_base_top.png deleted file mode 100644 index 4eb5ce4..0000000 Binary files a/textures/towercrane_base_top.png and /dev/null differ diff --git a/textures/towercrane_button_off.png b/textures/towercrane_button_off.png new file mode 100644 index 0000000..0635059 Binary files /dev/null and b/textures/towercrane_button_off.png differ diff --git a/textures/towercrane_button_on.png b/textures/towercrane_button_on.png new file mode 100644 index 0000000..55223d6 Binary files /dev/null and b/textures/towercrane_button_on.png differ diff --git a/textures/towercrane_hook.png b/textures/towercrane_hook.png deleted file mode 100644 index 3271887..0000000 Binary files a/textures/towercrane_hook.png and /dev/null differ diff --git a/textures/towercrane_invent.png b/textures/towercrane_invent.png deleted file mode 100644 index 365f417..0000000 Binary files a/textures/towercrane_invent.png and /dev/null differ diff --git a/textures/towercrane_mast.png b/textures/towercrane_mast.png index 0a1eacf..fc0d298 100644 Binary files a/textures/towercrane_mast.png and b/textures/towercrane_mast.png differ diff --git a/textures/towercrane_mast_ctrl.png b/textures/towercrane_mast_ctrl.png deleted file mode 100644 index 7dc36c3..0000000 Binary files a/textures/towercrane_mast_ctrl.png and /dev/null differ diff --git a/textures/towercrane_mast_ctrl_off.png b/textures/towercrane_mast_ctrl_off.png deleted file mode 100644 index 4247571..0000000 Binary files a/textures/towercrane_mast_ctrl_off.png and /dev/null differ diff --git a/textures/towercrane_mast_ctrl_on.png b/textures/towercrane_mast_ctrl_on.png deleted file mode 100644 index 05363cf..0000000 Binary files a/textures/towercrane_mast_ctrl_on.png and /dev/null differ diff --git a/textures/towercrane_screws.png b/textures/towercrane_screws.png new file mode 100644 index 0000000..43de906 Binary files /dev/null and b/textures/towercrane_screws.png differ