master
runs 2020-04-19 21:18:42 +02:00
parent 7adc22c14d
commit 652086b117
16 changed files with 260 additions and 1 deletions

View File

@ -128,6 +128,7 @@ Poop Block=Mistblock
Pregnant=Trächtig
Pumpkin Hood=Kürbishaube
Puppy=Hündchen
Rat=Ratte
Prince Crown=Prinzenkrone
Prince of North Coat=Umhang des Prinz des Nordens
Queen Bee=Bienenkönigin

View File

@ -128,6 +128,7 @@ Puppy=Cachorrito
Prince Crown=Corona de príncipe
Prince of North Coat=Casaca del Príncipe del Norte
Queen Bee=Abeja reina
Rat=Rata
Raw Chicken=Pollo crudo
Raw Ducky=Pato crudo
Raw Parrot=Loro crudo

View File

@ -128,6 +128,7 @@ Puppy=Chien
Prince Crown=Couronne de Prince.
Prince of North Coat=Prince de la côte nord
Queen Bee=Abeille reine
Rat=Rat
Raw Chicken=Poulet cru
Raw Ducky=Canard cru
Raw Parrot=Perroquet cru

View File

@ -128,6 +128,7 @@ Puppy=Щенок
Prince Crown=Королевская корона
Prince of North Coat=Принц Северного плаща
Queen Bee=Королева пчел
Rat=Крыса
Raw Chicken=Сырая курица
Raw Ducky=Сырая Утка
Raw Parrot=Сырой попугай

BIN
petz/models/petz_rat.b3d Normal file

Binary file not shown.

BIN
petz/models/petz_rat.blend Normal file

Binary file not shown.

BIN
petz/models/petz_rat.blend1 Normal file

Binary file not shown.

154
petz/models/petz_rat.obj Normal file
View File

@ -0,0 +1,154 @@
mtllib petz_rat.mtl
o converted_out
v 0.0625 -0.375 -0.5
v 0.0625 -0.375 -0.3125
v 0.0625 -0.25 -0.3125
v 0.0625 -0.25 -0.5
v -0.0625 -0.375 -0.5
v -0.0625 -0.375 -0.3125
v -0.0625 -0.25 -0.3125
v -0.0625 -0.25 -0.5
v 0.125 -0.375 -0.3125
v 0.125 -0.375 -0.125
v 0.125 -0.1875 -0.125
v 0.125 -0.1875 -0.3125
v -0.125 -0.375 -0.3125
v -0.125 -0.375 -0.125
v -0.125 -0.1875 -0.125
v -0.125 -0.1875 -0.3125
v 0.1875 -0.375 -0.125
v 0.1875 -0.375 0.25
v 0.1875 -0.125 0.25
v 0.1875 -0.125 -0.125
v -0.1875 -0.375 -0.125
v -0.1875 -0.375 0.25
v -0.1875 -0.125 0.25
v -0.1875 -0.125 -0.125
v 0.25 -0.3125 -0.375
v 0.25 -0.3125 -0.3125
v 0.25 -0.125 -0.3125
v 0.25 -0.125 -0.375
v 0.0625 -0.3125 -0.375
v 0.0625 -0.3125 -0.3125
v 0.0625 -0.125 -0.3125
v 0.0625 -0.125 -0.375
v -0.0625 -0.3125 -0.375
v -0.0625 -0.3125 -0.3125
v -0.0625 -0.125 -0.3125
v -0.0625 -0.125 -0.375
v -0.25 -0.3125 -0.375
v -0.25 -0.3125 -0.3125
v -0.25 -0.125 -0.3125
v -0.25 -0.125 -0.375
v 0.0625 -0.25 0.25
v 0.0625 -0.25 0.5
v 0.0625 -0.1875 0.5
v 0.0625 -0.1875 0.25
v 1.11759e-08 -0.25 0.25
v 1.11759e-08 -0.25 0.5
v 1.11759e-08 -0.1875 0.5
v 1.11759e-08 -0.1875 0.25
v 0.125 -0.5 -0.3125
v 0.125 -0.5 -0.25
v 0.125 -0.375 -0.25
v 0.125 -0.375 -0.3125
v 0.0625 -0.5 -0.3125
v 0.0625 -0.5 -0.25
v 0.0625 -0.375 -0.25
v 0.0625 -0.375 -0.3125
v 0.125 -0.5 0.125
v 0.125 -0.5 0.1875
v 0.125 -0.375 0.1875
v 0.125 -0.375 0.125
v 0.0625 -0.5 0.125
v 0.0625 -0.5 0.1875
v 0.0625 -0.375 0.1875
v 0.0625 -0.375 0.125
v -0.0625 -0.5 0.125
v -0.0625 -0.5 0.1875
v -0.0625 -0.375 0.1875
v -0.0625 -0.375 0.125
v -0.125 -0.5 0.125
v -0.125 -0.5 0.1875
v -0.125 -0.375 0.1875
v -0.125 -0.375 0.125
v -0.0625 -0.5 -0.3125
v -0.0625 -0.5 -0.25
v -0.0625 -0.375 -0.25
v -0.0625 -0.375 -0.3125
v -0.125 -0.5 -0.3125
v -0.125 -0.5 -0.25
v -0.125 -0.375 -0.25
v -0.125 -0.375 -0.3125
usemtl none
s off
g head
f 1 2 3 4
f 5 6 7 8
f 1 4 8 5
f 2 3 7 6
f 1 2 6 5
f 4 3 7 8
g front_body
f 9 10 11 12
f 13 14 15 16
f 9 12 16 13
f 10 11 15 14
f 9 10 14 13
f 12 11 15 16
g bottom_body
f 17 18 19 20
f 21 22 23 24
f 17 20 24 21
f 18 19 23 22
f 17 18 22 21
f 20 19 23 24
g right_ear
f 25 26 27 28
f 29 30 31 32
f 25 28 32 29
f 26 27 31 30
f 25 26 30 29
f 28 27 31 32
g left_ear
f 33 34 35 36
f 37 38 39 40
f 33 36 40 37
f 34 35 39 38
f 33 34 38 37
f 36 35 39 40
g tail
f 41 42 43 44
f 45 46 47 48
f 41 44 48 45
f 42 43 47 46
f 41 42 46 45
f 44 43 47 48
g front_right_leg
f 49 50 51 52
f 53 54 55 56
f 49 52 56 53
f 50 51 55 54
f 49 50 54 53
f 52 51 55 56
g back_right_leg
f 57 58 59 60
f 61 62 63 64
f 57 60 64 61
f 58 59 63 62
f 57 58 62 61
f 60 59 63 64
g front_left_leg
f 65 66 67 68
f 69 70 71 72
f 65 68 72 69
f 66 67 71 70
f 65 66 70 69
f 68 67 71 72
g font_left_leg
f 73 74 75 76
f 77 78 79 80
f 73 76 80 77
f 74 75 79 78
f 73 74 78 77
f 76 75 79 80

BIN
petz/nodeboxes/petz_rat.nbe Normal file

Binary file not shown.

View File

@ -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
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
disable_monsters = false
@ -139,6 +139,8 @@ penguin_spawn = true
polar_bear_spawn = true
santa_killer_spawn = true
tarantula = true
butterfly = true
rat = true
##Enviromental Damage
air_damage = 1
@ -156,6 +158,7 @@ kitty_follow = petz:raw_chicken
kitty_spawn_chance = 0.6
kitty_spawn_nodes = default:dirt_with_grass
kitty_spawn_biome = default
kitty_preys = petz:rat
##Puppy Specific
puppy_follow = petz:bone
@ -409,3 +412,10 @@ butterfly_follow = default:torch
butterfly_spawn_chance = 1.0
butterfly_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
butterfly_spawn_biome = default
##Rat Specific
rat_follow = farming:wheat
rat_spawn_chance = 1.0
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

86
petz/petz/rat_mobkit.lua Normal file
View File

@ -0,0 +1,86 @@
--
--RAT
--
local S = ...
local pet_name = "rat"
local scale_model = 1.2
petz.rat = {}
local mesh = 'petz_rat.b3d'
local textures= {"petz_rat.png"}
local p1 = {x= -0.1875, y = -0.5, z = -0.25}
local p2 = {x= 0.18755, y = -0.125, z = 0.375}
local collisionbox, collisionbox_baby = petz.get_collisionbox(p1, p2, scale_model, nil)
minetest.register_entity("petz:"..pet_name,{
--Petz specifics
type = "rat",
init_tamagochi_timer = false,
is_pet = false,
has_affinity = false,
is_wild = true,
attack_player = true,
give_orders = false,
can_be_brushed = false,
capture_item = "lasso",
drops = {
{name = "petz:bone", chance = 5, min = 1, max = 1,},
},
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},
static_save = true,
get_staticdata = mobkit.statfunc,
-- api props
springiness= 0,
buoyancy = 0.5, -- portion of hitbox submerged
max_speed = 3.0,
jump_height = 2.0,
view_range = 10,
lung_capacity = 10, -- seconds
max_hp = 20,
attack={range=0.5, damage_groups={fleshy=7}},
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},
{range={x=82, y=94}, speed=5, loop=true},
},
},
sounds = {
misc = "pet_rat_squeak",
attack = "pet_rat_squeak",
},
logic = petz.predator_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:rat", S("Rat"), "petz_spawnegg_rat.png", true)

View File

@ -343,3 +343,8 @@ filename: petz_replace.ogg
Author: www.zapsplat.com
https://www.zapsplat.com/music/cow-eat-grass-or-foliage-single-chew/
License: https://www.zapsplat.com/license-type/standard-license/
--------------------------------------------
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.

Binary file not shown.

BIN
petz/textures/petz_rat.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 806 B

BIN
petz/textures/petz_rat.png~ Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 805 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 332 B