From 33c6e5cdad0b25cbb3aa43e11cdf9153967fb222 Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Tue, 4 May 2021 08:59:01 +0200 Subject: [PATCH 1/2] Fix wearing pumpkin heads as armor --- mods/ITEMS/mcl_farming/pumpkin.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mods/ITEMS/mcl_farming/pumpkin.lua b/mods/ITEMS/mcl_farming/pumpkin.lua index 8d234d586d..86ddf707b6 100644 --- a/mods/ITEMS/mcl_farming/pumpkin.lua +++ b/mods/ITEMS/mcl_farming/pumpkin.lua @@ -117,8 +117,9 @@ pumpkin_face_base_def.groups.armor_head=1 pumpkin_face_base_def.groups.non_combat_armor_head=1 pumpkin_face_base_def._mcl_armor_mob_range_factor = 0 pumpkin_face_base_def._mcl_armor_mob_range_mob = "mobs_mc:enderman" -pumpkin_face_base_def._mcl_armor_entry = "head" -pumpkin_face_base_def.groups.non_combat_armor=1 +pumpkin_face_base_def._mcl_armor_element = "head" +pumpkin_face_base_def._mcl_armor_texture = "mcl_farming_pumpkin_face.png" +pumpkin_face_base_def._mcl_armor_preview = "mcl_farming_pumpkin_face_preview.png" if minetest.get_modpath("mcl_armor") then pumpkin_face_base_def.on_secondary_use = mcl_armor.equip_on_use end From f96258ca5c6eb3407dd3a2aba9b5dfa4e4243f0c Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Tue, 4 May 2021 09:01:53 +0200 Subject: [PATCH 2/2] Fix mob heads not showing their texture when worn as head armor --- mods/ITEMS/mcl_heads/init.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mods/ITEMS/mcl_heads/init.lua b/mods/ITEMS/mcl_heads/init.lua index ec6a5638e2..0f41adb89d 100644 --- a/mods/ITEMS/mcl_heads/init.lua +++ b/mods/ITEMS/mcl_heads/init.lua @@ -112,6 +112,8 @@ local function addhead(name, texture, desc, longdesc, rangemob, rangefactor) _mcl_armor_mob_range_mob = rangemob, _mcl_armor_mob_range_factor = rangefactor, _mcl_armor_element = "head", + _mcl_armor_texture = "mcl_heads_" .. name .. ".png", + _mcl_armor_preview = "mcl_heads_" .. name .. "_preview.png", _mcl_blast_resistance = 1, _mcl_hardness = 1, })