From 05db0b84ad9a1e9614e1d33edb29cdf85a965de1 Mon Sep 17 00:00:00 2001 From: 1F616EMO~nya Date: Thu, 8 Aug 2024 03:34:00 +0800 Subject: [PATCH] Add inventory image overlay to ladders (#30) Release overlay under CC0 (if ever subject to copyright) --- extendingladder.lua | 9 +++++++-- textures/ropes_ropeladder_overlay.png | Bin 0 -> 121 bytes 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 textures/ropes_ropeladder_overlay.png 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 0000000000000000000000000000000000000000..7fd285f6cac5103c8f4ff2151b92311ed2db819a GIT binary patch literal 121 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!D3?x-;bCrM;TYyi9E0CV^pGn6hg%!wRED7=p zW^j0RBMrz=^mK6ysbEZIU^>Re_Kcb5kGw=mxq-wt1C4DAt{apVL^0e<