Commit 8d23a320 authored by Milan's avatar Milan
Browse files

initial illuna customizations

parent dc74b264
Loading
Loading
Loading
Loading
Loading
+32 −6
Original line number Diff line number Diff line
@@ -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

+1.17 KiB
Loading image diff...