Compare commits
5 Commits
6cfabc690d
...
ec867fe87e
Author | SHA1 | Date |
---|---|---|
|
ec867fe87e | |
|
26a8302ed0 | |
|
5095facf57 | |
![]() |
79b3f3e333 | |
|
e89ce912d3 |
|
@ -126,5 +126,5 @@ petz.abandon_pet = function(self, msg)
|
||||||
petz.remove_tamed_by_owner(self, true)
|
petz.remove_tamed_by_owner(self, true)
|
||||||
petz.drop_dreamcatcher(self)
|
petz.drop_dreamcatcher(self)
|
||||||
self.init_tamagochi_timer = false -- no more timing
|
self.init_tamagochi_timer = false -- no more timing
|
||||||
self.for_sale = false -- not for sale
|
self.for_sale = kitz.remember(self, "for_sale", false) -- not for sale
|
||||||
end
|
end
|
||||||
|
|
|
@ -737,7 +737,7 @@ minetest.register_craft({
|
||||||
output = "petz:grain_packet",
|
output = "petz:grain_packet",
|
||||||
recipe = {
|
recipe = {
|
||||||
"farming:seed_wheat", "farming:seed_wheat", "farming:seed_wheat",
|
"farming:seed_wheat", "farming:seed_wheat", "farming:seed_wheat",
|
||||||
"farming:seed_wheat", "farming:seed_wheat", "farming:seed_wheat",
|
"farming:seed_wheat", "", "farming:seed_wheat",
|
||||||
"farming:seed_wheat", "farming:seed_wheat", "farming:seed_wheat"
|
"farming:seed_wheat", "farming:seed_wheat", "farming:seed_wheat"
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# WARNING: Do NOT change the Petz Mod preferences here
|
# WARNING: Do NOT change the Petz Mod preferences here
|
||||||
# Do create a 'user.conf' with your favourite preferences instead of.
|
# Do create a 'user.conf' with your favourite preferences instead of.
|
||||||
|
|
||||||
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,squirrel,leopard,snow_leopard,ant,warrior_ant,queen_ant,rooster,hen,bunny
|
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,squirrel,leopard,ant,warrior_ant,queen_ant,rooster,hen,bunny
|
||||||
|
|
||||||
#This list is to remove already existing entities in the game
|
#This list is to remove already existing entities in the game
|
||||||
##Note that overrides the petz_list
|
##Note that overrides the petz_list
|
||||||
|
@ -76,7 +76,7 @@ no_spawn_in_protected = false
|
||||||
horseshoe_speedup = 0.2
|
horseshoe_speedup = 0.2
|
||||||
|
|
||||||
##lashing
|
##lashing
|
||||||
lashing_tame_count = 3
|
lashing_tame_count = 2
|
||||||
|
|
||||||
#Spinning Wheel
|
#Spinning Wheel
|
||||||
##amount of silk to craft a bobbin in a spinning_wheel
|
##amount of silk to craft a bobbin in a spinning_wheel
|
||||||
|
@ -531,6 +531,8 @@ leopard_spawn_chance = 1.0
|
||||||
leopard_spawn_nodes = default:dirt_with_dry_grass,default:dry_dirt,default:dry_dirt_with_dry_grass
|
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_preys = petz:lamb,petz:calf,petz:pony,petz:piggy,petz:camel,petz:goat
|
||||||
leopard_spawn_biome = default
|
leopard_spawn_biome = default
|
||||||
|
leopard_breed = default:blueberries
|
||||||
|
leopard_copulation_distance = 2
|
||||||
|
|
||||||
##Snow Leopard
|
##Snow Leopard
|
||||||
snow_leopard_follow = group:food_meat_raw
|
snow_leopard_follow = group:food_meat_raw
|
||||||
|
@ -539,6 +541,8 @@ snow_leopard_spawn_nodes = default:snowblock,default:ice
|
||||||
snow_leopard_spawn_min_height = 20
|
snow_leopard_spawn_min_height = 20
|
||||||
snow_leopard_preys = petz:lamb,petz:calf,petz:pony,petz:piggy,petz:camel,petz:goat
|
snow_leopard_preys = petz:lamb,petz:calf,petz:pony,petz:piggy,petz:camel,petz:goat
|
||||||
snow_leopard_spawn_biome = default
|
snow_leopard_spawn_biome = default
|
||||||
|
snow_leopard_breed = default:blueberries
|
||||||
|
snow_leopard_copulation_distance = 2
|
||||||
|
|
||||||
##Ant Specific
|
##Ant Specific
|
||||||
ant_preys = petz:queen_ant
|
ant_preys = petz:queen_ant
|
||||||
|
|
|
@ -4,32 +4,47 @@
|
||||||
local S = ...
|
local S = ...
|
||||||
|
|
||||||
local scale_model = 2.0
|
local scale_model = 2.0
|
||||||
|
local scale_baby = 0.5
|
||||||
|
local visual_size = {x=petz.settings.visual_size.x*scale_model, y=petz.settings.visual_size.y*scale_model}
|
||||||
|
local visual_size_baby = {x=petz.settings.visual_size.x*scale_model*scale_baby, y=petz.settings.visual_size.y*scale_model*scale_baby}
|
||||||
local mesh = 'petz_leopard.b3d'
|
local mesh = 'petz_leopard.b3d'
|
||||||
local p1 = {x= -0.0625, y = -0.5, z = -0.375}
|
local p1 = {x= -0.0625, y = -0.5, z = -0.375}
|
||||||
local p2 = {x= 0.125, y = 0.0, z = 0.375}
|
local p2 = {x= 0.125, y = 0.0, z = 0.375}
|
||||||
local collisionbox = petz.get_collisionbox(p1, p2, scale_model, nil)
|
local collisionbox, collisionbox_baby = petz.get_collisionbox(p1, p2, scale_model, scale_baby)
|
||||||
|
|
||||||
for i=1, 2 do
|
for i = 1, 2 do
|
||||||
local type
|
|
||||||
|
local pet_name
|
||||||
local description
|
local description
|
||||||
local textures
|
local skin_colors
|
||||||
if i == 1 then --if male
|
local textures = {}
|
||||||
type = "leopard"
|
local mutation
|
||||||
|
|
||||||
|
if i == 1 then
|
||||||
|
pet_name = "leopard"
|
||||||
description = "Leopard"
|
description = "Leopard"
|
||||||
textures = {"petz_leopard.png", "petz_leopard2.png"}
|
skin_colors = {"green_eyes", "blue_eyes", "black"}
|
||||||
|
mutation = 1
|
||||||
else
|
else
|
||||||
type = "snow_leopard"
|
pet_name = "snow_leopard"
|
||||||
description = "Snow Leopard"
|
description = "Snow Leopard"
|
||||||
textures = {"petz_snow_leopard.png", "petz_snow_leopard2.png"}
|
skin_colors = {"yellow_eyes", "orange_eyes"}
|
||||||
|
mutation = false
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_entity("petz:"..type, {
|
for n = 1, #skin_colors do
|
||||||
|
textures[n] = "petz_"..pet_name.."_"..skin_colors[n]..".png"
|
||||||
|
end
|
||||||
|
|
||||||
|
minetest.register_entity("petz:"..pet_name, {
|
||||||
--Petz specifics
|
--Petz specifics
|
||||||
type = type,
|
type = pet_name,
|
||||||
init_tamagochi_timer = true,
|
init_tamagochi_timer = true,
|
||||||
is_pet = true,
|
is_pet = true,
|
||||||
has_affinity = true,
|
has_affinity = true,
|
||||||
is_wild = true,
|
is_wild = true,
|
||||||
|
breed = true,
|
||||||
|
mutation = mutation,
|
||||||
attack_player = true,
|
attack_player = true,
|
||||||
give_orders = true,
|
give_orders = true,
|
||||||
can_be_brushed = true,
|
can_be_brushed = true,
|
||||||
|
@ -42,12 +57,16 @@ for i=1, 2 do
|
||||||
rotate = petz.settings.rotate,
|
rotate = petz.settings.rotate,
|
||||||
physical = true,
|
physical = true,
|
||||||
stepheight = 0.1, --EVIL!
|
stepheight = 0.1, --EVIL!
|
||||||
collide_with_objects = true,
|
|
||||||
collisionbox = collisionbox,
|
|
||||||
visual = petz.settings.visual,
|
|
||||||
mesh = mesh,
|
mesh = mesh,
|
||||||
textures = textures,
|
textures = textures,
|
||||||
visual_size = {x=petz.settings.visual_size.x*scale_model, y=petz.settings.visual_size.y*scale_model},
|
skin_colors = skin_colors,
|
||||||
|
visual = petz.settings.visual,
|
||||||
|
visual_size = visual_size,
|
||||||
|
visual_size_baby = visual_size_baby,
|
||||||
|
collisionbox = collisionbox,
|
||||||
|
collisionbox_baby = collisionbox_baby,
|
||||||
|
collide_with_objects = true,
|
||||||
|
|
||||||
static_save = true,
|
static_save = true,
|
||||||
get_staticdata = kitz.statfunc,
|
get_staticdata = kitz.statfunc,
|
||||||
-- api props
|
-- api props
|
||||||
|
@ -102,6 +121,6 @@ for i=1, 2 do
|
||||||
end,
|
end,
|
||||||
|
|
||||||
})
|
})
|
||||||
petz:register_egg("petz:"..type, S(description), "petz_spawnegg_"..type..".png", true)
|
petz:register_egg("petz:"..pet_name, S(description), "petz_spawnegg_"..pet_name..".png", true)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
After Width: | Height: | Size: 6.4 KiB |
Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 5.0 KiB |
Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 5.0 KiB |
After Width: | Height: | Size: 7.9 KiB |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 7.0 KiB |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |