initial upload.

master
NathanSalapat 2016-04-12 10:51:36 -05:00
commit 12170e0370
8 changed files with 70 additions and 0 deletions

3
depends.txt Normal file
View File

@ -0,0 +1,3 @@
default
mobs?
mobapi?

63
init.lua Normal file
View File

@ -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

0
license.txt Normal file
View File

1
mod.conf Normal file
View File

@ -0,0 +1 @@
name = farm_mobs

BIN
models/farm_mobs_dog.b3d Normal file

Binary file not shown.

3
readme.md Normal file
View File

@ -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,

BIN
textures/farm_mobs_dog.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

BIN
textures/farm_mobs_dog1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB