fixes
|
@ -108,6 +108,8 @@ Kitty=Gatinho
|
|||
Lasso=Laço
|
||||
Lamb=Cordeiro
|
||||
Leather=Couro
|
||||
Leopard=Leopardo
|
||||
Leopard Skin=Pele de leopardo
|
||||
Lion=Leon
|
||||
Main=Principal
|
||||
Male=Macho
|
||||
|
@ -181,6 +183,8 @@ Silk Pants=Calça de seda
|
|||
Silkworm=Bicho-da-seda
|
||||
Silkworm Cocoon=Casulo de bicho-da-seda
|
||||
Silkworm Eggs=Ovos de bicho-da-seda
|
||||
Snow Leopard=Leopardo-das-neves
|
||||
Snow Leopard Skin=Pele de leopardo-das-neves
|
||||
Speed Stats=Estatísticas rápidas.
|
||||
Spider Eye=Olho de aranha
|
||||
Spinning Wheel=Roda de fiação
|
||||
|
|
|
@ -109,6 +109,8 @@ Lasso=Lasso
|
|||
Lamb=Lamm
|
||||
Leather=Leder
|
||||
Lion=Löwe
|
||||
Leopard=Leopard
|
||||
Leopard Skin=Leopardenfell
|
||||
Main=Hauptseite
|
||||
Male=Männlich
|
||||
Merry Christmas=Frohe Weihnachten
|
||||
|
@ -181,6 +183,8 @@ Silk Pants=Seidenhose
|
|||
Silkworm=Seidenraupe
|
||||
Silkworm Cocoon=Seidenraupenkokon
|
||||
Silkworm Eggs=Seidenraupeneier
|
||||
Snow Leopard=Schneeleopard
|
||||
Snow Leopard Skin=Schneeleopardenfell
|
||||
Speed Stats=Geschwindigkeitswerte
|
||||
Spider Eye=Spinnenauge
|
||||
Spinning Wheel=Spinnrad
|
||||
|
|
|
@ -108,6 +108,8 @@ Kitty=Gatito
|
|||
Lasso=Lazo
|
||||
Lamb=Cordero
|
||||
Leather=Cuero
|
||||
Leopard=Leopardo
|
||||
Leopard Skin=Piel de leopardo
|
||||
Lion=León
|
||||
Main=Principal
|
||||
Male=Macho
|
||||
|
@ -181,6 +183,8 @@ Silk Pants=Pantalones de seda
|
|||
Silkworm=Gusano de seda
|
||||
Silkworm Cocoon=Capullo de gusano de seda
|
||||
Silkworm Eggs=Huevos de gusano de seda
|
||||
Snow Leopard=Leopardo de las nieves
|
||||
Snow Leopard Skin=Piel de leopardo de las nieves
|
||||
Speed Stats=Estadísticas veloc.
|
||||
Spider Eye=Ojo de araña
|
||||
Spinning Wheel=Rueca
|
||||
|
|
|
@ -108,6 +108,8 @@ Kitty=Chat
|
|||
Lasso=Lasso
|
||||
Lamb=Mouton
|
||||
Leather=Cuir
|
||||
Leopard=Léopard
|
||||
Leopard Skin=Peau de léopard
|
||||
Lion=Lion
|
||||
Main=Main
|
||||
Male=Mâle
|
||||
|
@ -181,6 +183,8 @@ Silk Pants=Pantalon de soie
|
|||
Silkworm=Ver à soie
|
||||
Silkworm Cocoon=Cocon de ver à soie
|
||||
Silkworm Eggs=Oeufs de vers à soie
|
||||
Snow Leopard=Peau de panthère des neiges
|
||||
Snow Leopard Skin=
|
||||
Speed Stats=Stats Rapidité
|
||||
Spider Eye=Oeil d'araignée
|
||||
Spinning Wheel=Spinning Wheel
|
||||
|
|
|
@ -108,6 +108,8 @@ Kitty=Котёнок
|
|||
Lasso=Лассо
|
||||
Lamb=Ягнёнок
|
||||
Leather=Кожа
|
||||
Leopard=Леопард
|
||||
Leopard Skin=кожа леопарда
|
||||
Lion=Лев
|
||||
Main=Главный
|
||||
Male=Самец
|
||||
|
@ -181,6 +183,8 @@ Silk Pants=Шелковые брюки
|
|||
Silkworm=Шелкопряд
|
||||
Silkworm Cocoon=Кокон шелкопряда
|
||||
Silkworm Eggs=Яйца шелкопряда
|
||||
Snow Leopard=Ирбис
|
||||
Snow Leopard Skin=Кожа снежного барса
|
||||
Speed Stats=Статистика скорости.
|
||||
Spider Eye=Spider Eye
|
||||
Spinning Wheel=Spinning Wheel
|
||||
|
|
|
@ -556,6 +556,17 @@ minetest.register_craftitem("petz:spider_eye", {
|
|||
inventory_image = "petz_spider_eye.png",
|
||||
})
|
||||
|
||||
--Leopard Drop
|
||||
minetest.register_craftitem("petz:leopard_skin", {
|
||||
description = S("Leopard Skin"),
|
||||
inventory_image = "petz_leopard_skin.png",
|
||||
})
|
||||
|
||||
minetest.register_craftitem("petz:snow_leopard_skin", {
|
||||
description = S("Snow Leopard Skin"),
|
||||
inventory_image = "petz_snow_leopard_skin.png",
|
||||
})
|
||||
|
||||
--minetest.register_node("petz:squirrel_cage", {
|
||||
--description = S("Squirrel Cage"),
|
||||
--drawtype = "glasslike_framed",
|
||||
|
|
|
@ -184,7 +184,7 @@ beaver_spawn_biome = default
|
|||
lamb_follow = farming:wheat
|
||||
lamb_spawn_chance = 0.6
|
||||
lamb_spawn_nodes = default:dirt_with_grass
|
||||
lamb_predators = petz:wolf,petz:lion,petz:grizzly
|
||||
lamb_predators = petz:wolf,petz:lion,petz:grizzly,petz:leopard
|
||||
lamb_spawn_biome = default
|
||||
lamb_spawn_herd = 3
|
||||
lamb_breed = default:blueberries
|
||||
|
@ -195,7 +195,7 @@ lamb_colorized = true
|
|||
lion_follow = group:food_meat_raw
|
||||
lion_spawn_chance = 1.0
|
||||
lion_spawn_nodes = default:dirt_with_dry_grass,default:dry_dirt,default:dry_dirt_with_dry_grass
|
||||
lion_preys = petz:lamb,petz:calf,petz:pony,petz:piggy,petz:camel
|
||||
lion_preys = petz:lamb,petz:calf,petz:pony,petz:piggy,petz:camel,petz:goat
|
||||
lion_spawn_biome = default
|
||||
|
||||
##Wolf Specific
|
||||
|
@ -215,7 +215,7 @@ wolf_convert_count = 5
|
|||
calf_follow = farming:wheat
|
||||
calf_spawn_chance = 0.6
|
||||
calf_spawn_nodes = default:dirt_with_grass
|
||||
calf_predators = petz:lion
|
||||
calf_predators = petz:lion,petz:leopard
|
||||
calf_spawn_biome = default
|
||||
calf_spawn_herd = 3
|
||||
|
||||
|
@ -244,7 +244,7 @@ grizzly_spawn_biome = default
|
|||
pony_follow = farming:wheat
|
||||
pony_spawn_chance = 0.6
|
||||
pony_spawn_nodes = default:dirt_with_grass
|
||||
pony_predators = petz:lion
|
||||
pony_predators = petz:lion,petz:leopard
|
||||
pony_spawn_biome = default
|
||||
pony_spawn_herd = 5
|
||||
|
||||
|
@ -265,7 +265,7 @@ chicken_predators = petz:foxy
|
|||
piggy_follow = farming:wheat
|
||||
piggy_spawn_chance = 0.6
|
||||
piggy_spawn_nodes = default:dirt_with_grass
|
||||
piggy_predators = petz:lion,petz:wolf
|
||||
piggy_predators = petz:lion,petz:wolf,petz:leopard
|
||||
piggy_spawn_biome = default
|
||||
piggy_spawn_herd = 3
|
||||
|
||||
|
@ -318,7 +318,7 @@ bat_spawn_biome = default
|
|||
camel_follow = default:dry_shrub
|
||||
camel_spawn_chance = 0.6
|
||||
camel_spawn_nodes = default:desert_sand
|
||||
camel_predators = petz:lion
|
||||
camel_predators = petz:lion,petz:leopard
|
||||
camel_spawn_biome = default
|
||||
camel_breed = default:blueberries
|
||||
camel_copulation_distance = 3
|
||||
|
@ -427,7 +427,7 @@ rat_spawn_biome = default
|
|||
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_predators = petz:wolf,petz:lion,petz:grizzly,petz:leopard
|
||||
goat_spawn_biome = default
|
||||
goat_spawn_herd = 3
|
||||
|
||||
|
@ -438,3 +438,18 @@ squirrel_spawn_nodes = default:dirt_with_coniferous_litter,default:dirt_with_gra
|
|||
squirrel_predators = petz:foxy
|
||||
squirrel_spawn_biome = default
|
||||
squirrel_spawn_herd = 3
|
||||
|
||||
##Leopard Specific
|
||||
leopard_follow = group:food_meat_raw
|
||||
leopard_spawn_chance = 1.0
|
||||
leopard_spawn_nodes = default:dirt_with_dry_grass,default:dry_dirt,default:dry_dirt_with_dry_grass
|
||||
leopard_preys = petz:lamb,petz:calf,petz:pony,petz:piggy,petz:camel,petz:goat
|
||||
leopard_spawn_biome = default
|
||||
|
||||
##Snow Leopard
|
||||
snow_leopard_follow = group:food_meat_raw
|
||||
snow_leopard_spawn_chance = 1.0
|
||||
snow_leopard_spawn_nodes = default:snowblock,default:ice
|
||||
snow_leopard_spawn_min_height = 20
|
||||
snow_leopard_preys = petz:lamb,petz:calf,petz:pony,petz:piggy,petz:camel,petz:goat
|
||||
snow_leopard_spawn_biome = default
|
||||
|
|
|
@ -0,0 +1,103 @@
|
|||
--
|
||||
--LEOPARD
|
||||
--
|
||||
local S = ...
|
||||
|
||||
local scale_model = 2.0
|
||||
local mesh = 'petz_leopard.b3d'
|
||||
local p1 = {x= -0.0625, y = -0.5, z = -0.125}
|
||||
local p2 = {x= 0.125, y = 0.0, z = 0.25}
|
||||
local collisionbox, collisionbox_baby = petz.get_collisionbox(p1, p2, scale_model, nil)
|
||||
|
||||
for i=1, 2 do
|
||||
local type
|
||||
local description
|
||||
local textures = {}
|
||||
if i == 1 then --if male
|
||||
type = "leopard"
|
||||
description = "Leopard"
|
||||
textures = {"petz_leopard.png", "petz_leopard2.png"}
|
||||
else
|
||||
type = "snow_leopard"
|
||||
description = "Snow Leopard"
|
||||
textures = {"petz_snow_leopard.png", "petz_snow_leopard2.png"}
|
||||
end
|
||||
|
||||
minetest.register_entity("petz:"..type, {
|
||||
--Petz specifics
|
||||
type = type,
|
||||
init_tamagochi_timer = true,
|
||||
is_pet = true,
|
||||
has_affinity = true,
|
||||
is_wild = true,
|
||||
attack_player = true,
|
||||
give_orders = true,
|
||||
can_be_brushed = true,
|
||||
capture_item = "lasso",
|
||||
follow = petz.settings.leopard_follow,
|
||||
drops = {
|
||||
{name = "petz:bone", chance = 5, min = 1, max = 1,},
|
||||
{name = "petz:leopard_skin", chance = 3, 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 = 4.0,
|
||||
jump_height = 1.5,
|
||||
view_range = 10,
|
||||
lung_capacity = 10, -- seconds
|
||||
max_hp = 25,
|
||||
|
||||
attack = {range=0.5, damage_groups= {fleshy = 9}},
|
||||
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},
|
||||
},
|
||||
sit = {range={x=60, y=65}, speed=5, loop=false},
|
||||
attack = {range={x=72, y=84}, speed=5, loop=false},
|
||||
},
|
||||
sounds = {
|
||||
misc = "petz_leopard_roar",
|
||||
moaning = "petz_leopard_moaning",
|
||||
attack = "petz_leopard_attack",
|
||||
},
|
||||
|
||||
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:"..type, S(description), "petz_spawnegg_"..type..".png", true)
|
||||
end
|
||||
|
|
@ -369,3 +369,18 @@ filename: petz_squirrel_moaning.ogg
|
|||
Author: Partners In Rhyme
|
||||
https://www.freesoundeffects.com/free-track/sq2-466210/
|
||||
License: Free
|
||||
--------------------------------------------
|
||||
filename: petz_leopard_roar.ogg
|
||||
Author: CGEffex
|
||||
https://freesound.org/people/CGEffex/sounds/98337/
|
||||
License: This work is licensed under the Attribution License.
|
||||
--------------------------------------------
|
||||
filename: petz_leopard_moaning.ogg
|
||||
Author: missburusdeer2011
|
||||
https://freesound.org/people/missburusdeer2011/sounds/516271/
|
||||
License: This work is licensed under the Attribution License.
|
||||
--------------------------------------------
|
||||
filename: petz_leopard_attack.ogg
|
||||
Author: Darsycho
|
||||
https://freesound.org/people/Darsycho/sounds/442114/
|
||||
License: This work is licensed under the Creative Commons 0 License.
|
||||
|
|
After Width: | Height: | Size: 5.0 KiB |
After Width: | Height: | Size: 5.0 KiB |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 4.3 KiB |
After Width: | Height: | Size: 3.5 KiB |
After Width: | Height: | Size: 2.3 KiB |