1
0
Fork 0

Merge pull request 'leather_horse_armor' (#4) from leather_horse_armor into mod-master

Reviewed-on: #4
This commit is contained in:
WolfySoy 2024-07-02 12:25:21 +02:00
commit b8b1bc1ab2
5 changed files with 29 additions and 3 deletions

View File

@ -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)

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

View File

@ -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,,,,,,,

1 Source path Source file Target file xs ys xl yl xt yt Blacklisted?
667 /assets/minecraft/textures/item heart_of_the_sea.png mcl_mobitems_heart_of_the_sea.png
668 /assets/minecraft/textures/item ink_sac.png mcl_mobitems_ink_sac.png
669 /assets/minecraft/textures/item iron_horse_armor.png mcl_mobitems_iron_horse_armor.png
670 /assets/minecraft/textures/item leather_horse_armor.png mcl_mobitems_leather_horse_armor.png
671 /assets/minecraft/textures/item leather_horse_armor.png mobs_mc_leather_horse_armor.png
672 /assets/minecraft/textures/item nautilus_shell.png mcl_mobitems_nautilus_shell.png
673 /assets/minecraft/textures/item warped_fungus_on_a_stick.png mcl_mobitems_warped_fungus_on_a_stick.png
674 /assets/minecraft/textures/item golden_horse_armor.png mcl_mobitems_gold_horse_armor.png