initial illuna customizations

master
Milan 2019-02-23 09:09:53 +01:00
parent dc74b26412
commit 8d23a32048
2 changed files with 32 additions and 6 deletions

View File

@ -3,6 +3,13 @@
local MP = minetest.get_modpath(minetest.get_current_modname()) local MP = minetest.get_modpath(minetest.get_current_modname())
local S, NS = dofile(MP .. "/intllib.lua") 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 -- rideable horse
mobs:register_mob("mob_horse:horse", { mobs:register_mob("mob_horse:horse", {
@ -33,12 +40,12 @@ mobs:register_mob("mob_horse:horse", {
view_range = 5, view_range = 5,
follow = {"farming:wheat", "default:apple"}, follow = {"farming:wheat", "default:apple"},
passive = true, passive = true,
hp_min = 12, hp_min = 42,
hp_max = 16, hp_max = 86,
armor = 200, armor = 200,
lava_damage = 5, lava_damage = 5,
fall_damage = 5, fall_damage = 5,
water_damage = 1, water_damage = 0,
makes_footstep_sound = true, makes_footstep_sound = true,
drops = { drops = {
{name = "mobs:leather", chance = 1, min = 0, max = 2} {name = "mobs:leather", chance = 1, min = 0, max = 2}
@ -145,12 +152,12 @@ self.saddle = true
mobs:spawn({ mobs:spawn({
name = "mob_horse:horse", name = "mob_horse:horse",
nodes = {"default:dirt_with_grass", "ethereal:dry_dirt"}, nodes = {"default:dry_shrub"},
min_light = 14, min_light = 14,
interval = 60, interval = 60,
chance = 16000, chance = 120,
min_height = 10, min_height = 10,
max_height = 31000, max_height = 40,
day_toggle = true, 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 -- lucky blocks
if minetest.get_modpath("lucky_block") then if minetest.get_modpath("lucky_block") then

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB