Skip to content

Commit

Permalink
Fix shields not showing up in item frames from itemframes mod (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
DragonWrangler1 authored Nov 22, 2024
1 parent 0f67c9e commit 22f3282
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions shield_functions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Binary file added textures/castle_shield_overlay.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 22f3282

Please sign in to comment.