diff --git a/init.lua b/init.lua index b641d57..f019cf1 100644 --- a/init.lua +++ b/init.lua @@ -3,6 +3,13 @@ local MP = minetest.get_modpath(minetest.get_current_modname()) local S, NS = dofile(MP .. "/intllib.lua") +minetest.register_alias("horses:horse3", "mob_horse:horse") +minetest.register_alias("horses:horse2", "mob_horse:horse") +minetest.register_alias("horses:horse1", "mob_horse:horse") +minetest.register_alias("horses:horseh1", "mob_horse:horse") +minetest.register_alias("horses:horsepegh1", "mob_horse:horse") +minetest.register_alias("horses:horsearah1", "mob_horse:horse") + -- rideable horse mobs:register_mob("mob_horse:horse", { @@ -33,12 +40,12 @@ mobs:register_mob("mob_horse:horse", { view_range = 5, follow = {"farming:wheat", "default:apple"}, passive = true, - hp_min = 12, - hp_max = 16, + hp_min = 42, + hp_max = 86, armor = 200, lava_damage = 5, fall_damage = 5, - water_damage = 1, + water_damage = 0, makes_footstep_sound = true, drops = { {name = "mobs:leather", chance = 1, min = 0, max = 2} @@ -145,12 +152,12 @@ self.saddle = true mobs:spawn({ name = "mob_horse:horse", - nodes = {"default:dirt_with_grass", "ethereal:dry_dirt"}, + nodes = {"default:dry_shrub"}, min_light = 14, interval = 60, - chance = 16000, + chance = 120, min_height = 10, - max_height = 31000, + max_height = 40, day_toggle = true, }) @@ -265,6 +272,25 @@ minetest.register_craft({ } }) +-- mithril horseshoes +minetest.register_craftitem(":mobs:horseshoe_mithril", { + description = S("Mithril HorseShoes (use on horse to apply)"), + inventory_image = "mobs_horseshoe_mithril.png", + on_use = function(itemstack, user, pointed_thing) + return apply_shoes(user:get_player_name(), itemstack, pointed_thing, + "mobs:horseshoe_mithril", 12, 8, 10) + end, +}) + +minetest.register_craft({ + output = "mobs:horseshoe_mithril", + recipe = { + {"", "moreores:mithril_block", ""}, + {"moreores:mithril_ingot", "", "moreores:mithril_ingot"}, + {"moreores:mithril_ingot", "", "moreores:mithril_ingot"}, + } +}) + -- lucky blocks if minetest.get_modpath("lucky_block") then diff --git a/textures/mobs_horseshoe_mithril.png b/textures/mobs_horseshoe_mithril.png new file mode 100644 index 0000000..aa6fe05 Binary files /dev/null and b/textures/mobs_horseshoe_mithril.png differ