fixes
|
@ -1,6 +1,6 @@
|
|||
##Change here the Petz Mod preferences
|
||||
|
||||
petz_list = kitty,puppy,ducky,lamb,lion,calf,panda,grizzly,pony,parrot,chicken,piggy,wolf,elephant,elephant_female,pigeon,moth,camel,clownfish,bat,silkworm,chimp,hamster,dolphin,tropicalfish,beaver,turtle,frog,toucan,bee,queen_bee,mr_pumpkin,foxy,penguin,polar_bear,santa_killer,werewolf,tarantula,butterfly,rat
|
||||
petz_list = kitty,puppy,ducky,lamb,lion,calf,panda,grizzly,pony,parrot,chicken,piggy,wolf,elephant,elephant_female,pigeon,moth,camel,clownfish,bat,silkworm,chimp,hamster,dolphin,tropicalfish,beaver,turtle,frog,toucan,bee,queen_bee,mr_pumpkin,foxy,penguin,polar_bear,santa_killer,werewolf,tarantula,butterfly,rat,goat
|
||||
|
||||
##Type of model [mesh -or- cubic]
|
||||
type_model = mesh
|
||||
|
@ -399,3 +399,11 @@ rat_spawn_chance = 0.8
|
|||
rat_spawn_nodes = default:dirt_with_coniferous_litter,default:dirt_with_grass,default:dirt_with_rainforest_litter,default:dirt_with_dry_grass,default:dry_dirt,default:dry_dirt_with_dry_grass
|
||||
rat_predators = petz:kitty
|
||||
rat_spawn_biome = default
|
||||
|
||||
##Goat Specific
|
||||
goat_follow = farming:wheat
|
||||
goat_spawn_chance = 0.6
|
||||
goat_spawn_nodes = default:dirt_with_grass
|
||||
goat_predators = petz:wolf,petz:lion,petz:grizzly
|
||||
goat_spawn_biome = default
|
||||
goat_spawn_herd = 3
|
||||
|
|
|
@ -0,0 +1,97 @@
|
|||
--
|
||||
--GOAT
|
||||
--
|
||||
local S = ...
|
||||
|
||||
local pet_name = "goat"
|
||||
local scale_model = 1.4
|
||||
local mesh = 'petz_goat.b3d'
|
||||
local textures= {"petz_goat.png", "petz_goat2.png", "petz_goat3.png"}
|
||||
local p1 = {x= -0.0625, y = -0.5, z = -0.4375}
|
||||
local p2 = {x= 0.125, y = 0.25, z = 0.375}
|
||||
local collisionbox, collisionbox_baby = petz.get_collisionbox(p1, p2, scale_model, nil)
|
||||
|
||||
minetest.register_entity("petz:"..pet_name,{
|
||||
--Petz specifics
|
||||
type = "goat",
|
||||
init_tamagochi_timer = false,
|
||||
is_pet = true,
|
||||
has_affinity = false,
|
||||
milkable = true,
|
||||
is_wild = false,
|
||||
give_orders = false,
|
||||
can_be_brushed = true,
|
||||
capture_item = "lasso",
|
||||
follow = petz.settings.goat_follow,
|
||||
drops = {
|
||||
{name = "petz:bone", chance = 4, min = 1, max = 1,},
|
||||
},
|
||||
replace_rate = 10,
|
||||
replace_offset = 0,
|
||||
replace_what = {
|
||||
{"group:grass", "air", -1},
|
||||
{"default:dirt_with_grass", "default:dirt", -2}
|
||||
},
|
||||
poop = true,
|
||||
rotate = petz.settings.rotate,
|
||||
physical = true,
|
||||
stepheight = 0.1, --EVIL!
|
||||
collide_with_objects = true,
|
||||
collisionbox = collisionbox,
|
||||
visual = petz.settings.visual,
|
||||
mesh = mesh,
|
||||
textures = textures,
|
||||
visual_size = {x=petz.settings.visual_size.x*scale_model, y=petz.settings.visual_size.y*scale_model},
|
||||
replace_rate = 10,
|
||||
replace_what = {
|
||||
{"group:grass", "air", -1},
|
||||
{"default:dirt_with_grass", "default:dirt", -2}
|
||||
},
|
||||
static_save = true,
|
||||
get_staticdata = mobkit.statfunc,
|
||||
-- api props
|
||||
springiness= 0,
|
||||
buoyancy = 0.5, -- portion of hitbox submerged
|
||||
max_speed = 2,
|
||||
jump_height = 1.5,
|
||||
view_range = 10,
|
||||
lung_capacity = 10, -- seconds
|
||||
max_hp = 15,
|
||||
makes_footstep_sound = true,
|
||||
|
||||
attack={range=0.5, damage_groups={fleshy=3}},
|
||||
animation = {
|
||||
walk={range={x=1, y=12}, speed=25, loop=true},
|
||||
run={range={x=13, y=25}, speed=25, loop=true},
|
||||
stand={
|
||||
{range={x=26, y=46}, speed=5, loop=true},
|
||||
{range={x=47, y=59}, speed=5, loop=true},
|
||||
},
|
||||
},
|
||||
sounds = {
|
||||
misc = "petz_goat_bleat",
|
||||
moaning = "petz_goat_moaning",
|
||||
},
|
||||
|
||||
logic = petz.herbivore_brain,
|
||||
|
||||
on_activate = function(self, staticdata, dtime_s) --on_activate, required
|
||||
mobkit.actfunc(self, staticdata, dtime_s)
|
||||
petz.set_initial_properties(self, staticdata, dtime_s)
|
||||
end,
|
||||
|
||||
on_punch = function(self, puncher, time_from_last_punch, tool_capabilities, dir)
|
||||
petz.on_punch(self, puncher, time_from_last_punch, tool_capabilities, dir)
|
||||
end,
|
||||
|
||||
on_rightclick = function(self, clicker)
|
||||
petz.on_rightclick(self, clicker)
|
||||
end,
|
||||
|
||||
on_step = function(self, dtime)
|
||||
mobkit.stepfunc(self, dtime) -- required
|
||||
petz.on_step(self, dtime)
|
||||
end,
|
||||
})
|
||||
|
||||
petz:register_egg("petz:goat", S("Goat"), "petz_spawnegg_goat.png", true)
|
|
@ -348,3 +348,9 @@ filename: petz_rat_squeak.ogg
|
|||
Author: toefur
|
||||
https://freesound.org/people/toefur/sounds/288941/
|
||||
License: This work is licensed under the Creative Commons 0 License.
|
||||
--------------------------------------------
|
||||
filename: petz_goat_bleat.ogg & petz_goat_moaning.ogg
|
||||
Author: Alexander
|
||||
http://www.orangefreesounds.com/goat-sounds/
|
||||
License: The sound effect is permitted for non-commercial use
|
||||
under license “Attribution-NonCommercial 4.0 International (CC BY-NC 4.0)”
|
||||
|
|
Before Width: | Height: | Size: 211 B |
Before Width: | Height: | Size: 263 B |
Before Width: | Height: | Size: 277 B |
Before Width: | Height: | Size: 247 B |
Before Width: | Height: | Size: 248 B |
Before Width: | Height: | Size: 266 B |
Before Width: | Height: | Size: 244 B |
Before Width: | Height: | Size: 310 B |
Before Width: | Height: | Size: 348 B |
Before Width: | Height: | Size: 266 B |
Before Width: | Height: | Size: 267 B |
Before Width: | Height: | Size: 288 B |
Before Width: | Height: | Size: 240 B |
Before Width: | Height: | Size: 501 B |
Before Width: | Height: | Size: 393 B |
Before Width: | Height: | Size: 358 B |
Before Width: | Height: | Size: 365 B |
Before Width: | Height: | Size: 397 B |
Before Width: | Height: | Size: 306 B |
Before Width: | Height: | Size: 293 B |
Before Width: | Height: | Size: 345 B |
Before Width: | Height: | Size: 365 B |
Before Width: | Height: | Size: 369 B |
Before Width: | Height: | Size: 291 B |
Before Width: | Height: | Size: 296 B |
Before Width: | Height: | Size: 294 B |
Before Width: | Height: | Size: 329 B |
Before Width: | Height: | Size: 360 B |
Before Width: | Height: | Size: 298 B |
Before Width: | Height: | Size: 237 B |
Before Width: | Height: | Size: 248 B |
Before Width: | Height: | Size: 343 B |
Before Width: | Height: | Size: 272 B |
Before Width: | Height: | Size: 346 B |
Before Width: | Height: | Size: 343 B |
Before Width: | Height: | Size: 331 B |
Before Width: | Height: | Size: 222 B |
Before Width: | Height: | Size: 260 B |
Before Width: | Height: | Size: 318 B |
Before Width: | Height: | Size: 302 B |
Before Width: | Height: | Size: 313 B |
Before Width: | Height: | Size: 261 B |
Before Width: | Height: | Size: 317 B |
Before Width: | Height: | Size: 309 B |
Before Width: | Height: | Size: 351 B |
Before Width: | Height: | Size: 299 B |
Before Width: | Height: | Size: 291 B |
Before Width: | Height: | Size: 311 B |
Before Width: | Height: | Size: 216 B |
Before Width: | Height: | Size: 286 B |
Before Width: | Height: | Size: 214 B |
Before Width: | Height: | Size: 242 B |
Before Width: | Height: | Size: 236 B |
Before Width: | Height: | Size: 288 B |
Before Width: | Height: | Size: 221 B |
Before Width: | Height: | Size: 295 B |
Before Width: | Height: | Size: 212 B |
Before Width: | Height: | Size: 265 B |
Before Width: | Height: | Size: 266 B |
Before Width: | Height: | Size: 276 B |
Before Width: | Height: | Size: 291 B |
Before Width: | Height: | Size: 276 B |
Before Width: | Height: | Size: 322 B |
Before Width: | Height: | Size: 373 B |
Before Width: | Height: | Size: 377 B |
Before Width: | Height: | Size: 278 B |
Before Width: | Height: | Size: 256 B |
Before Width: | Height: | Size: 256 B |
Before Width: | Height: | Size: 292 B |
Before Width: | Height: | Size: 332 B |
Before Width: | Height: | Size: 336 B |
Before Width: | Height: | Size: 261 B |
Before Width: | Height: | Size: 253 B |
Before Width: | Height: | Size: 262 B |
Before Width: | Height: | Size: 274 B |
Before Width: | Height: | Size: 325 B |
Before Width: | Height: | Size: 469 B |
Before Width: | Height: | Size: 328 B |
Before Width: | Height: | Size: 264 B |
Before Width: | Height: | Size: 209 B |
Before Width: | Height: | Size: 278 B |
Before Width: | Height: | Size: 293 B |
Before Width: | Height: | Size: 239 B |
Before Width: | Height: | Size: 243 B |
Before Width: | Height: | Size: 274 B |
Before Width: | Height: | Size: 229 B |
Before Width: | Height: | Size: 300 B |
Before Width: | Height: | Size: 373 B |
Before Width: | Height: | Size: 254 B |
Before Width: | Height: | Size: 277 B |
Before Width: | Height: | Size: 303 B |
Before Width: | Height: | Size: 375 B |
Before Width: | Height: | Size: 464 B |