Add "animal_gull" from "animals_modpack".

This commit is contained in:
AntumDeluge 2016-08-04 14:51:58 -07:00
parent 84d68a5020
commit deb0368cf2
13 changed files with 167 additions and 0 deletions

View File

@ -33,6 +33,7 @@ The following mods are also included:
* friendlies/
* animal_clownfish ([animals_modpack][]) ([CC-BY-SA](mods/friendlies/animal_clownfish/License.txt))
* animal_fish_blue_white ([animals_modpack][]) ([CC-BY-SA](mods/friendlies/animal_fish_blue_white/License.txt))
* animal_gull ([animals_modpack][]) ([CC-BY-SA](mods/friendlies/animal_gull/License.txt))
* chicken ([Creatures MOB-Engine][cme])
* sheep ([Creatures MOB-Engine][cme])
* hostils/

View File

@ -0,0 +1,5 @@
Licenses
Everything not mentioned:
CC-BY-SA 3.0, Author sapier
URL: http://creativecommons.org/licenses/by-sa/3.0/de/legalcode

View File

@ -0,0 +1,5 @@
default
animalmaterials
mob_environments
mobf
intllib?

View File

@ -0,0 +1,145 @@
-------------------------------------------------------------------------------
-- Mob Framework Mod by Sapier
--
-- You may copy, use, modify or do nearly anything except removing this
-- copyright notice.
-- And of course you are NOT allow to pretend you have written it.
--
--! @file init.lua
--! @brief gull implementation
--! @copyright Sapier
--! @author Sapier
--! @date 2013-01-27
--
-- Contact sapier a t gmx net
-------------------------------------------------------------------------------
-- Boilerplate to support localized strings if intllib mod is installed.
local S
if (minetest.get_modpath("intllib")) then
dofile(minetest.get_modpath("intllib").."/intllib.lua")
S = intllib.Getter(minetest.get_current_modname())
else
S = function ( s ) return s end
end
minetest.log("action","MOD: animal_gull loading ...")
local version = "0.2.0"
local gull_groups = {
not_in_creative_inventory=1
}
local selectionbox_gull = {-1, -0.3, -1, 1, 0.3, 1}
gull_prototype = {
name="gull",
modname="animal_gull",
factions = {
member = {
"animals",
"birds"
}
},
generic = {
description= S("Gull"),
base_health=5,
kill_result="",
armor_groups= {
fleshy=85,
},
groups = gull_groups,
envid="flight_1",
population_density = 250,
},
movement = {
min_accel=0.5,
max_accel=1,
max_speed=4,
pattern="flight_pattern1",
canfly=true,
},
animation = {
fly = {
start_frame = 0,
end_frame = 95,
},
},
states = {
{
name = "default",
movgen = "probab_mov_gen",
typical_state_time = 100,
chance = 0,
animation = "fly",
graphics = {
sprite_scale={x=2,y=2},
sprite_div = {x=6,y=1},
visible_height = 1,
visible_width = 1,
},
graphics_3d = {
visual = "mesh",
mesh = "animal_gull.b3d",
textures = {"animal_gull_mesh.png"},
collisionbox = selectionbox_gull,
visual_size= {x=1,y=1,z=1},
},
},
}
}
--compatibility code
minetest.register_entity("animal_gull:gull_spawner",
{
physical = false,
collisionbox = { 0.0,0.0,0.0,0.0,0.0,0.0},
visual = "sprite",
textures = { "invisible.png^[makealpha:128,0,0^[makealpha:128,128,0" },
on_activate = function(self,staticdata)
local pos = self.object:getpos();
minetest.add_entity(pos,"mobf:compat_spawner")
self.object:remove()
end,
})
--spawning code
local gullname = gull_prototype.modname .. ":" .. gull_prototype.name
local gull_env = mobf_environment_by_name(gull_prototype.generic.envid)
mobf_spawner_register("gull_spawner_1",gullname,
{
spawnee = gullname,
spawn_interval = 60,
spawn_inside = gull_env.media,
entities_around =
{
{ type="MAX",distance=1,threshold=0 },
{ type="MAX",entityname=gullname,
distance=gull_prototype.generic.population_density,threshold=2 },
},
relative_height =
{
min = gull_env.min_height_above_ground,
max = gull_env.min_height_above_ground
},
absolute_height =
{
min = 10,
},
surfaces = { "default:water_source", "default:water_flowing"},
collisionbox = selectionbox_gull
})
--register with animals mod
minetest.log("action","\tadding mob "..gull_prototype.name)
mobf_add_mob(gull_prototype)
minetest.log("action","MOD: animal_gull mod version " .. version .. " loaded")

View File

@ -0,0 +1,3 @@
# Translation by Xanthin
Gull = Moewe

View File

@ -0,0 +1,5 @@
# Spanish translation for Animals Modpack.
# Traducción al español de Animals Modpack.
# Author/Autor: Diego Martínez <kaeza>
Gull = Gaviota

View File

@ -0,0 +1,3 @@
# Template
Gull =

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 378 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB