Compare commits

...

5 Commits

Author SHA1 Message Date
Milan c8b8b654a8 drop useless aliases 2019-02-23 19:40:32 +01:00
Milan 8d23a32048 initial illuna customizations 2019-02-23 09:09:53 +01:00
TenPlus1 dc74b26412 fix saddle issue 2018-09-24 18:20:36 +01:00
TenPlus1 f0a2a8ac05 change drops 2018-07-13 19:06:18 +01:00
TenPlus1 fc0475c7ec added readme.md 2018-06-09 16:14:09 +01:00
3 changed files with 55 additions and 10 deletions

View File

@ -33,15 +33,15 @@ 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:meat_raw", chance = 1, min = 2, max = 3}
{name = "mobs:leather", chance = 1, min = 0, max = 2}
},
do_custom = function(self, dtime)
@ -75,6 +75,7 @@ mobs:register_mob("mob_horse:horse", {
if self.driver then
minetest.add_item(pos, "mobs:saddle")
mobs.detach(self.driver, {x = 1, y = 0, z = 1})
self.saddle = nil
end
-- drop any horseshoes added
@ -118,15 +119,22 @@ mobs:register_mob("mob_horse:horse", {
minetest.add_item(clicker:get_pos(), "mobs:saddle")
end
self.saddle = nil
-- attach player to horse
elseif not self.driver
and clicker:get_wielded_item():get_name() == "mobs:saddle" then
elseif (not self.driver
and clicker:get_wielded_item():get_name() == "mobs:saddle")
or self.saddle then
self.object:set_properties({stepheight = 1.1})
mobs.attach(self, clicker)
-- take saddle from inventory
inv:remove_item("main", "mobs:saddle")
if not self.saddle then
inv:remove_item("main", "mobs:saddle")
end
self.saddle = true
end
end
@ -137,12 +145,12 @@ mobs:register_mob("mob_horse:horse", {
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,
})
@ -257,6 +265,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

18
readme.md Normal file
View File

@ -0,0 +1,18 @@
# MOB Horse
### Spawning
There are three different horse textures (white, brown, black) which will spawn on green grassy areas and dry dirt areas in Ethereal mapgen.
---
### Taming
Horses can be tamed with 10x wheat or apples which then allows the player to pick up the horse using a lasso and ride by right-clicking with a saddle.
---
### Horseshoes
Horseshoes can be crafted using steel, bronze, mese and diamond (4x ingots - 2 down either side with 1x block top middle) and placed on a horse by punching with the item. These can make horses run faster or jump higher depending on tier.
---
### Dead Horse
When riding a horse monsters will generally attack the horse first to get to player riding it, when horse dies the player is dismounted and it will drop any shoes or saddles in use as well as some horse meat.
#### Lucky Blocks: 4

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB