forked from VoxeLibre/VoxeLibre
Added leather horse armor w placeholder textures, accurate dmg reduct.
Added leather horse armor Tweaked horse armor damage reduction precentages to be more like Minecraft's Added placeholder files for leather horse armor textures (currently just iron horse armor textures)
This commit is contained in:
parent
bfde7445df
commit
4c986dc0d0
|
@ -366,6 +366,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."),
|
||||
|
@ -376,9 +392,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."),
|
||||
|
@ -389,7 +406,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", {
|
||||
|
@ -402,7 +419,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")
|
||||
|
@ -544,6 +561,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.poison_func(user, 1, 4)
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 1.0 KiB |
Binary file not shown.
After Width: | Height: | Size: 216 B |
Loading…
Reference in New Issue