diff --git a/extendingladder.lua b/extendingladder.lua index 5ca7651..fe5e106 100644 --- a/extendingladder.lua +++ b/extendingladder.lua @@ -16,6 +16,9 @@ local steel_recipe = { } local steel_name = S("Steel Extendable Ladder") +-- Overlay texture: by 1F616EMO, CC0 +local texture_overlay = "^ropes_ropeladder_overlay.png" + if ropes.replace_default_ladders then minetest.unregister_item("default:ladder_wood") @@ -62,6 +65,8 @@ steel_recipe = { } steel_name = S("Steel Ladder") +texture_overlay = "" + end minetest.register_craft({ @@ -132,7 +137,7 @@ minetest.register_node("ropes:ladder_wood", { _doc_items_usagehelp = ropes.doc.ladder_usagehelp, tiles = {"default_wood.png","default_wood.png","default_wood.png^[transformR270","default_wood.png^[transformR270","default_ladder_wood.png"}, use_texture_alpha = "clip", - inventory_image = "default_ladder_wood.png", + inventory_image = "default_ladder_wood.png" .. texture_overlay, wield_image = "default_ladder_wood.png", paramtype = "light", paramtype2 = "facedir", @@ -166,7 +171,7 @@ minetest.register_node("ropes:ladder_steel", { _doc_items_usagehelp = ropes.doc.ladder_usagehelp, tiles = {"default_steel_block.png","default_steel_block.png","default_steel_block.png","default_steel_block.png","default_ladder_steel.png"}, use_texture_alpha = "clip", - inventory_image = "default_ladder_steel.png", + inventory_image = "default_ladder_steel.png" .. texture_overlay, wield_image = "default_ladder_steel.png", paramtype = "light", paramtype2 = "facedir", diff --git a/textures/ropes_ropeladder_overlay.png b/textures/ropes_ropeladder_overlay.png new file mode 100644 index 0000000..7fd285f Binary files /dev/null and b/textures/ropes_ropeladder_overlay.png differ