mirror of
https://github.com/minetest-mods/ropes.git
synced 2024-11-28 02:13:43 +01:00
Add inventory image overlay to ladders (#30)
Release overlay under CC0 (if ever subject to copyright)
This commit is contained in:
parent
6ce834e307
commit
05db0b84ad
@ -16,6 +16,9 @@ local steel_recipe = {
|
|||||||
}
|
}
|
||||||
local steel_name = S("Steel Extendable Ladder")
|
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
|
if ropes.replace_default_ladders then
|
||||||
|
|
||||||
minetest.unregister_item("default:ladder_wood")
|
minetest.unregister_item("default:ladder_wood")
|
||||||
@ -62,6 +65,8 @@ steel_recipe = {
|
|||||||
}
|
}
|
||||||
steel_name = S("Steel Ladder")
|
steel_name = S("Steel Ladder")
|
||||||
|
|
||||||
|
texture_overlay = ""
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
@ -132,7 +137,7 @@ minetest.register_node("ropes:ladder_wood", {
|
|||||||
_doc_items_usagehelp = ropes.doc.ladder_usagehelp,
|
_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"},
|
tiles = {"default_wood.png","default_wood.png","default_wood.png^[transformR270","default_wood.png^[transformR270","default_ladder_wood.png"},
|
||||||
use_texture_alpha = "clip",
|
use_texture_alpha = "clip",
|
||||||
inventory_image = "default_ladder_wood.png",
|
inventory_image = "default_ladder_wood.png" .. texture_overlay,
|
||||||
wield_image = "default_ladder_wood.png",
|
wield_image = "default_ladder_wood.png",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
@ -166,7 +171,7 @@ minetest.register_node("ropes:ladder_steel", {
|
|||||||
_doc_items_usagehelp = ropes.doc.ladder_usagehelp,
|
_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"},
|
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",
|
use_texture_alpha = "clip",
|
||||||
inventory_image = "default_ladder_steel.png",
|
inventory_image = "default_ladder_steel.png" .. texture_overlay,
|
||||||
wield_image = "default_ladder_steel.png",
|
wield_image = "default_ladder_steel.png",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
|
BIN
textures/ropes_ropeladder_overlay.png
Normal file
BIN
textures/ropes_ropeladder_overlay.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 121 B |
Loading…
Reference in New Issue
Block a user