butterflies

master
runs 2020-04-17 23:29:01 +02:00
parent 348a2b5966
commit 73f1ce96e4
18 changed files with 198 additions and 1 deletions

View File

@ -21,6 +21,7 @@ Bird Stand=Vogelständer
Blueberry Cheese Cake=Blaubeerkäsekuchen
Blueberry Ice Cream=Blaubeereis
Blueberry Muffin=Blaubeermuffin
Butterfly=Schmetterling
Bone=Knochen
Bottle with Moth=Flasche mit Motte
Brushed=Gebürstet

View File

@ -24,6 +24,7 @@ Blueberry Muffin=Madalena de arándano
Bone=Hueso
Bottle with Moth=Botella con polilla
Brushed=Cepillado
Butterfly=Mariposa
Candy Cane=Bastoncillo dulce
Calf=Ternera
Cat Basket=Cesta para gatos

View File

@ -24,6 +24,7 @@ Blueberry Muffin=Madeleine aux myrtilles
Brushed=Brossé
Bone=Os
Bottle with Moth=Bouteille de papillon nocturne
Butterfly=Papillon
Candy Cane=Sucre d'orge
Calf=Vache
Cheese=Fromage

View File

@ -24,6 +24,7 @@ Blueberry Muffin=Кекс с черникой
Bone= Кость
Bottle with Moth=Бутылка с мотылем
Brushed=Почищенный
Butterfly= бабочка
Candy Cane=Конфетная трость
Calf=Теленок
Cheese=Сыр

BIN
petz/models/butterfly.nbe Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,109 @@
mtllib petz_butterfly.mtl
o converted_out
v 0.0625 -0.375 0
v 0.0625 -0.375 0.0625
v 0.0625 -0.125 0.0625
v 0.0625 -0.125 0
v -0 -0.375 0
v -0 -0.375 0.0625
v -0 -0.125 0.0625
v -0 -0.125 0
v 0.3125 -0.25 0
v 0.3125 -0.25 0.0625
v 0.3125 -1.49012e-08 0.0625
v 0.3125 -1.49012e-08 0
v 0.0625 -0.25 0
v 0.0625 -0.25 0.0625
v 0.0625 -1.49012e-08 0.0625
v 0.0625 -1.49012e-08 0
v 0.25 -0.5 0
v 0.25 -0.5 0.0625
v 0.25 -0.3125 0.0625
v 0.25 -0.3125 0
v 0.0624998 -0.5 0
v 0.0624998 -0.5 0.0625
v 0.0624998 -0.3125 0.0625
v 0.0624998 -0.3125 0
v 0.125 -0.3125 0
v 0.125 -0.3125 0.0625
v 0.125 -0.25 0.0625
v 0.125 -0.25 0
v 0.0625001 -0.3125 0
v 0.0625001 -0.3125 0.0625
v 0.0625001 -0.25 0.0625
v 0.0625001 -0.25 0
v -0 -0.25 0
v -0 -0.25 0.0625
v -0 4.47035e-08 0.0625
v -0 4.47035e-08 0
v -0.25 -0.25 0
v -0.25 -0.25 0.0625
v -0.25 4.47035e-08 0.0625
v -0.25 4.47035e-08 0
v -0 -0.5 0
v -0 -0.5 0.0625
v -0 -0.3125 0.0625
v -0 -0.3125 0
v -0.1875 -0.5 0
v -0.1875 -0.5 0.0625
v -0.1875 -0.3125 0.0625
v -0.1875 -0.3125 0
v -0 -0.3125 0
v -0 -0.3125 0.0625
v -0 -0.25 0.0625
v -0 -0.25 0
v -0.0625 -0.3125 0
v -0.0625 -0.3125 0.0625
v -0.0625 -0.25 0.0625
v -0.0625 -0.25 0
usemtl none
s off
g body
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 right_top_wing
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 right_bottom_wing
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_middle_wing
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_top_wing
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 left_bottom_wing
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 left_middle_wing
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

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
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
disable_monsters = false
@ -403,3 +403,9 @@ tarantula_follow = farming:string
tarantula_spawn_chance = 1.0
tarantula_spawn_nodes = default:dirt_with_rainforest_litter
tarantula_spawn_biome = default
##Butterfly Specific
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

View File

@ -0,0 +1,78 @@
local S = ...
local pet_name = "butterfly"
local scale_model = 1.0
local mesh = 'petz_butterfly.b3d'
local textures= {"petz_butterfly.png","petz_butterfly2.png", "petz_butterfly3.png", "petz_butterfly4.png", "petz_butterfly5.png", "petz_butterfly6.png"}
local p1 = {x= -0.1875, y = -0.5, z = -0.0625}
local p2 = {x= 0.25, y = 0.0, z = 0.0}
local collisionbox, collisionbox_baby = petz.get_collisionbox(p1, p2, scale_model, nil)
minetest.register_entity("petz:"..pet_name,{
--Petz specifics
type = "butterfly",
init_tamagochi_timer = false,
is_pet = false,
can_fly = true,
max_height = 4,
has_affinity = false,
is_wild = false,
give_orders = false,
can_be_brushed = false,
capture_item = "net",
follow = petz.settings.butterfly_follow,
--automatic_face_movement_dir = 0.0,
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 = 2.5,
jump_height = 2.0,
view_range = 10,
lung_capacity = 10, -- seconds
max_hp = 4,
attack={range=0.5, damage_groups={fleshy=3}},
animation = {
walk={range={x=0, y=6}, speed=25, loop=true},
run={range={x=0, y=6}, speed=25, loop=true},
stand={
{range={x=0, y=0}, speed=5, loop=true},
},
fly={range={x=0, y=6}, speed=25, loop=true},
stand_fly={range={x=0, y=6}, speed=25, loop=true},
},
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:butterfly", S("Butterfly"), "petz_spawnegg_butterfly.png", true)

Binary file not shown.

After

Width:  |  Height:  |  Size: 290 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 290 B