initial upload.
commit
12170e0370
|
@ -0,0 +1,3 @@
|
||||||
|
default
|
||||||
|
mobs?
|
||||||
|
mobapi?
|
|
@ -0,0 +1,63 @@
|
||||||
|
if mobs.mod and mobs.mod == "redo" then
|
||||||
|
|
||||||
|
mobs:register_mob("farm_mobs:dog", {
|
||||||
|
type = "animal",
|
||||||
|
passive = false,
|
||||||
|
attack_type = "dogfight",
|
||||||
|
reach = 2,
|
||||||
|
damage = 4,
|
||||||
|
hp_min = 5,
|
||||||
|
hp_max = 20,
|
||||||
|
armor = 200,
|
||||||
|
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1, 0.4},
|
||||||
|
visual = "mesh",
|
||||||
|
visual_size = {x=7,y=7},
|
||||||
|
mesh = "farm_mobs_dog.b3d",
|
||||||
|
textures = {
|
||||||
|
{"farm_mobs_dog.png"},
|
||||||
|
{"farm_mobs_dog1.png"},
|
||||||
|
},
|
||||||
|
makes_footstep_sound = true,
|
||||||
|
-- sounds = {
|
||||||
|
-- random = "mobs_cow",
|
||||||
|
-- },
|
||||||
|
walk_velocity = 1,
|
||||||
|
run_velocity = 2,
|
||||||
|
jump = true,
|
||||||
|
drops = {
|
||||||
|
{name = "mobs:meat_raw", chance = 1, min = 1, max = 3},
|
||||||
|
},
|
||||||
|
water_damage = 0,
|
||||||
|
lava_damage = 5,
|
||||||
|
light_damage = 0,
|
||||||
|
animation = {
|
||||||
|
speed_normal = 10,
|
||||||
|
speed_run = 15,
|
||||||
|
stand_start = 110,
|
||||||
|
stand_end = 140,
|
||||||
|
walk_start = 50,
|
||||||
|
walk_end = 90,
|
||||||
|
run_start = 50,
|
||||||
|
run_end = 90,
|
||||||
|
punch_start = 0,
|
||||||
|
punch_end = 40,
|
||||||
|
},
|
||||||
|
follow = "mobs:meat_raw",
|
||||||
|
view_range = 7,
|
||||||
|
fear_height = 2,
|
||||||
|
on_rightclick = function(self, clicker)
|
||||||
|
|
||||||
|
-- feed or tame
|
||||||
|
if mobs:feed_tame(self, clicker, 8, true, true) then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
mobs:capture_mob(self, clicker, 0, 5, 60, false, nil)
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
|
mobs:register_spawn("farm_mobs:dog",
|
||||||
|
{"default:dirt_with_grass", "ethereal:green_dirt"}, 20, 10, 15000, 1, 31000, true)
|
||||||
|
|
||||||
|
mobs:register_egg("farm_mobs:dog", "Dog", "default_grass.png", 1)
|
||||||
|
|
||||||
|
end
|
Binary file not shown.
|
@ -0,0 +1,3 @@
|
||||||
|
This mod adds a handful of animals to your worlds that you would commonly see on a typical farm.
|
||||||
|
Currently includes: dog,
|
||||||
|
Planned animals: Pig, Sheep, Cow, Bull, Skunk, Raccon, Opossom,
|
Binary file not shown.
After Width: | Height: | Size: 49 KiB |
Binary file not shown.
After Width: | Height: | Size: 50 KiB |
Loading…
Reference in New Issue