Add inventory image overlay to ladders (#30)

Release overlay under CC0 (if ever subject to copyright)
This commit is contained in:
1F616EMO~nya 2024-08-08 03:34:00 +08:00 committed by GitHub
parent 6ce834e307
commit 05db0b84ad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 2 deletions

@ -16,6 +16,9 @@ local steel_recipe = {
}
local steel_name = S("Steel Extendable Ladder")
-- Overlay texture: by 1F616EMO, CC0 <https://creativecommons.org/publicdomain/zero/1.0/>
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",

Binary file not shown.

After

Width:  |  Height:  |  Size: 121 B