Compare commits

7 Commits

Author SHA1 Message Date
tenplus1
fd408d6d90 add spanish translation (thx X-DE1), change to stand animation when dismounting horse 2025-11-17 09:15:30 +00:00
tenplus1
efb7b7a84e add danish translation (thx jeppebundsgaard) 2025-08-27 07:27:20 +01:00
tenplus1
0bb39d3c8d tweak animations 2025-08-22 07:47:25 +01:00
tenplus1
06fc86988a horses can attack players out of the blue 2025-05-15 14:37:31 +01:00
tenplus1
3deab2d01c view range 7 2025-01-11 11:36:03 +00:00
tenplus1
58d84da9eb horse can defend itself 2025-01-11 11:35:27 +00:00
tenplus1
ac8cb2ec70 tweak on_sound example 2024-10-01 09:10:37 +01:00
3 changed files with 41 additions and 15 deletions

View File

@@ -23,12 +23,13 @@ mobs:register_mob("mob_horse:horse", {
mesh = "mobs_horse.x",
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1.25, 0.4},
animation = {
speed_normal = 15, speed_run = 30,
stand_start = 25, stand_end = 50, -- 75
stand2_start = 25, stand2_end = 25,
stand3_start = 55, stand3_end = 75, stand3_loop = false,
speed_normal = 15,
stand_start = 25, stand_end = 25, -- stand still
stand2_start = 25, stand2_end = 50, stand2_loop = false, -- head to side
-- stand3_start = 55, stand3_end = 75, stand3_loop = false, -- rear up
walk_start = 75, walk_end = 100,
run_start = 75, run_end = 100
run_start = 75, run_end = 100, speed_run = 30,
punch_start = 55, punch_end = 75, punch_speed = 35
},
textures = {
{"mobs_horse.png"}, -- textures by Mjollna
@@ -36,24 +37,28 @@ mobs:register_mob("mob_horse:horse", {
{"mobs_horseara.png"}
},
fear_height = 3,
runaway = true,
--runaway = true,
fly = false,
walk_chance = 60,
view_range = 5,
view_range = 7,
follow = {
"farming:wheat", "default:apple", "farming:oat",
"farming:barley", "farming:corn"
},
passive = true,
hp_min = 12,
hp_max = 16,
armor = 200,
passive = false, attack_type = "dogfight", reach = 2.5, damage = 3,
attack_chance = 95,
attack_monsters = true,
hp_min = 15,
hp_max = 23,
armor = 100,
lava_damage = 5,
fire_damage = 4,
fall_damage = 1,
water_damage = 0,
makes_footstep_sound = true,
drops = {
{name = "mobs:leather", chance = 1, min = 0, max = 2}
{name = "mobs:leather", chance = 1, min = 0, max = 2},
{name = "mobs:meat_raw", chance = 1, min = 1, max = 2}
},
do_custom = function(self, dtime)
@@ -132,6 +137,8 @@ mobs:register_mob("mob_horse:horse", {
mobs.detach(clicker, {x = 1, y = 0, z = 1})
self:set_animation("stand")
return
end
@@ -211,9 +218,8 @@ mobs:register_mob("mob_horse:horse", {
end,
--[[
on_sound = function(self, def)
-- loudness ranges from (0.0 = cannot hear, to 1.0 = next to sound)
if def.loudness > 0.8 then -- if loud enough startle horse into jumping
self.object:set_velocity({x=0, y=5, z=0})
self.object:set_velocity({x = 0, y = 5, z = 0})
end
end
]]
@@ -340,4 +346,4 @@ if minetest.get_modpath("lucky_block") then
})
end
print("[MOD] Mob Horse loaded")
print("[MOD] Mobs Redo Horse loaded")

10
locale/mob_horse.da.tr Normal file
View File

@@ -0,0 +1,10 @@
# textdomain:mob_horse
, jump height: = , springhøjde :
, stop speed: = , stophastighed :
speed: = hastighed :
Bronze HorseShoes (use on horse to apply)=Bronzehestesko (brug på hest for at skoe den)
Diamond HorseShoes (use on horse to apply)=Diamandhestesko (brug på hest for at skoe den)
Horse=Hest
Horse shoes fitted -= Hesteskoen passede -
Mese HorseShoes (use on horse to apply)=Mesehestesko (brug på hest for at skoe den)
Steel HorseShoes (use on horse to apply)=Stålhestesko (brug på hest for at skoe den)

10
locale/mob_horse.es.tr Normal file
View File

@@ -0,0 +1,10 @@
# textdomain:mob_horse
, jump height: = , altura de salto:
, stop speed: = , desaceleración:
speed: = velocidad:
Bronze HorseShoes (use on horse to apply)=Herraduras de bronze (úsalas en el caballo para herrar)
Diamond HorseShoes (use on horse to apply)=Herraduras de diamante (úsalas en el caballo para herrar)
Horse=Caballo
Horse shoes fitted -= Herrado -
Mese HorseShoes (use on horse to apply)=Herraduras de mese (úsalas en el caballo para herrar)
Steel HorseShoes (use on horse to apply)=Herraduras de acero (úsalas en el caballo para herrar)