Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix shields not showing up in item frames from itemframes mod #6

Merged
merged 5 commits into from
Nov 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.