Fix shields not showing up in item frames from itemframes mod (#6)
Some checks failed
luacheck / luacheck (push) Has been cancelled
Some checks failed
luacheck / luacheck (push) Has been cancelled
This commit is contained in:
parent
0f67c9e6b8
commit
22f3282786
@ -3,10 +3,12 @@ castle_shields.register_shield = function(name, desc, background_color, foregrou
|
||||
local tile_side = "castle_shield_"..background_color..".png"
|
||||
local tile_front = "castle_shield_"..background_color..".png^(castle_shield_"..foreground_color..
|
||||
".png^[mask:castle_shield_mask_"..mask..".png)"
|
||||
local wield_front = tile_front .. "^[mask:castle_shield_overlay.png"
|
||||
|
||||
minetest.register_node(minetest.get_current_modname()..":"..name, {
|
||||
description = desc,
|
||||
tiles = {tile_side, tile_side, tile_side, tile_side, "castle_shield_back.png", tile_front},
|
||||
wield_image = wield_front,
|
||||
drawtype = "nodebox",
|
||||
paramtype2 = "facedir",
|
||||
paramtype = "light",
|
||||
|
BIN
textures/castle_shield_overlay.png
Normal file
BIN
textures/castle_shield_overlay.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 134 B |
Loading…
x
Reference in New Issue
Block a user