diff --git a/mods/ITEMS/mcl_mobitems/init.lua b/mods/ITEMS/mcl_mobitems/init.lua index 4d92c2d43..c1b814fec 100644 --- a/mods/ITEMS/mcl_mobitems/init.lua +++ b/mods/ITEMS/mcl_mobitems/init.lua @@ -440,6 +440,22 @@ minetest.register_craftitem("mcl_mobitems:heart_of_the_sea", { local horse_armor_use = S("Place it on a horse to put on the horse armor. Donkeys and mules can't wear horse armor.") +-- https://minecraft.fandom.com/wiki/Armor#Damage_protection + +minetest.register_craftitem("mcl_mobitems:leather_horse_armor", { + description = S("Leather Horse Armor"), + _doc_items_longdesc = S("Leather horse armor can be worn by horses to increase their protection from harm a little."), + _doc_items_usagehelp = horse_armor_use, + inventory_image = "mcl_mobitems_leather_horse_armor.png", + _horse_overlay_image = "mcl_mobitems_horse_armor_leather.png", + sounds = { + _mcl_armor_equip = "mcl_armor_equip_leather", + }, + stack_max = 1, + groups = { horse_armor = 88 }, +}) + + minetest.register_craftitem("mcl_mobitems:iron_horse_armor", { description = S("Iron Horse Armor"), _doc_items_longdesc = S("Iron horse armor can be worn by horses to increase their protection from harm a bit."), @@ -450,9 +466,10 @@ minetest.register_craftitem("mcl_mobitems:iron_horse_armor", { _mcl_armor_equip = "mcl_armor_equip_iron", }, stack_max = 1, - groups = { horse_armor = 85 }, + groups = { horse_armor = 80 }, }) + minetest.register_craftitem("mcl_mobitems:gold_horse_armor", { description = S("Golden Horse Armor"), _doc_items_longdesc = S("Golden horse armor can be worn by horses to increase their protection from harm."), @@ -463,7 +480,7 @@ minetest.register_craftitem("mcl_mobitems:gold_horse_armor", { _mcl_armor_equip = "mcl_armor_equip_iron", }, stack_max = 1, - groups = { horse_armor = 60 }, + groups = { horse_armor = 72 }, }) minetest.register_craftitem("mcl_mobitems:diamond_horse_armor", { @@ -476,7 +493,7 @@ minetest.register_craftitem("mcl_mobitems:diamond_horse_armor", { _mcl_armor_equip = "mcl_armor_equip_diamond", }, stack_max = 1, - groups = { horse_armor = 45 }, + groups = { horse_armor = 56 }, }) minetest.register_alias("mobs_mc:iron_horse_armor", "mcl_mobitems:iron_horse_armor") @@ -618,6 +635,13 @@ minetest.register_craft({ {"mcl_mobitems:slimeball","mcl_mobitems:slimeball","mcl_mobitems:slimeball",}}, }) +minetest.register_craft({ + output = "mcl_mobitems:leather_horse_armor", + recipe = {{"mcl_mobitems:leather","","mcl_mobitems:leather",}, + {"mcl_mobitems:leather","mcl_mobitems:leather","mcl_mobitems:leather",}, + {"mcl_mobitems:leather","","mcl_mobitems:leather",}}, +}) + minetest.register_on_item_eat(function (hp_change, replace_with_item, itemstack, user, pointed_thing) -- poisoning with spider eye if itemstack:get_name() == "mcl_mobitems:spider_eye" then mcl_potions.give_effect_by_level("poison", user, 1, 4) diff --git a/textures/leather_horse_armor.png b/textures/leather_horse_armor.png new file mode 100644 index 000000000..b25c4e993 Binary files /dev/null and b/textures/leather_horse_armor.png differ diff --git a/textures/mcl_mobitems_horse_armor_leather.png b/textures/mcl_mobitems_horse_armor_leather.png new file mode 100644 index 000000000..3597404bb Binary files /dev/null and b/textures/mcl_mobitems_horse_armor_leather.png differ diff --git a/textures/mcl_mobitems_leather_horse_armor.png b/textures/mcl_mobitems_leather_horse_armor.png new file mode 100644 index 000000000..b25c4e993 Binary files /dev/null and b/textures/mcl_mobitems_leather_horse_armor.png differ diff --git a/tools/Conversion_Table.csv b/tools/Conversion_Table.csv index 8c338c3c7..881122ea3 100644 --- a/tools/Conversion_Table.csv +++ b/tools/Conversion_Table.csv @@ -667,6 +667,8 @@ Source path,Source file,Target file,xs,ys,xl,yl,xt,yt,Blacklisted? /assets/minecraft/textures/item,heart_of_the_sea.png,mcl_mobitems_heart_of_the_sea.png,,,,,,, /assets/minecraft/textures/item,ink_sac.png,mcl_mobitems_ink_sac.png,,,,,,, /assets/minecraft/textures/item,iron_horse_armor.png,mcl_mobitems_iron_horse_armor.png,,,,,,, +/assets/minecraft/textures/item,leather_horse_armor.png,mcl_mobitems_leather_horse_armor.png,,,,,,, +/assets/minecraft/textures/item,leather_horse_armor.png,mobs_mc_leather_horse_armor.png,,,,,,, /assets/minecraft/textures/item,nautilus_shell.png,mcl_mobitems_nautilus_shell.png,,,,,,, /assets/minecraft/textures/item,warped_fungus_on_a_stick.png,mcl_mobitems_warped_fungus_on_a_stick.png,,,,,,, /assets/minecraft/textures/item,golden_horse_armor.png,mcl_mobitems_gold_horse_armor.png,,,,,,,