From 22f32827861b60a98a5c9eaecfe6d0ab850cdc17 Mon Sep 17 00:00:00 2001 From: DragonWrangler1 <146014546+DragonWrangler1@users.noreply.github.com> Date: Fri, 22 Nov 2024 13:20:52 -0700 Subject: [PATCH] Fix shields not showing up in item frames from itemframes mod (#6) --- shield_functions.lua | 2 ++ textures/castle_shield_overlay.png | Bin 0 -> 134 bytes 2 files changed, 2 insertions(+) create mode 100644 textures/castle_shield_overlay.png diff --git a/shield_functions.lua b/shield_functions.lua index dc0b070..63d5364 100644 --- a/shield_functions.lua +++ b/shield_functions.lua @@ -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", diff --git a/textures/castle_shield_overlay.png b/textures/castle_shield_overlay.png new file mode 100644 index 0000000000000000000000000000000000000000..aab9594ce5e7bc72691823a1af12b8da10be68c3 GIT binary patch literal 134 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!73?$#)eFPHV5AX?b1=8JIToCmC|9|a8%-?`Q zEG0pH!3>PdEb|0smjn4qo-U3d9MQ=IjZAE-jC~ZgFgJ7b9Arv1Sm}_#(#)vBxr8w$ VQ0{EUd}EL;44$rjF6*2UngG(_Au0d> literal 0 HcmV?d00001