Mehr Mods hinzugefügt
7
mods/mobs_sky/mobs_birds/License.txt
Normal file
|
@ -0,0 +1,7 @@
|
|||
Licenses
|
||||
|
||||
Code: MIT
|
||||
|
||||
Model and textures:
|
||||
CC-BY-SA 3.0, Author sapier
|
||||
URL: http://creativecommons.org/licenses/by-sa/3.0/de/legalcode
|
222
mods/mobs_sky/mobs_birds/init.lua
Normal file
|
@ -0,0 +1,222 @@
|
|||
|
||||
-- local variables
|
||||
|
||||
local l_spawn_chance_gull = 24000
|
||||
local l_spawn_chance_bird = 36000
|
||||
|
||||
-- load settings
|
||||
|
||||
local ENABLE_GULLS = core.settings:get_bool("mobs_birds.enable_gulls") ~= false
|
||||
local ENABLE_LARGE = core.settings:get_bool("mobs_birds.enable_large_birds") ~= false
|
||||
local ENABLE_SMALL = core.settings:get_bool("mobs_birds.enable_small_birds") ~= false
|
||||
|
||||
if not ENABLE_LARGE then
|
||||
l_spawn_chance_bird = l_spawn_chance_bird - 18000
|
||||
end
|
||||
|
||||
if not ENABLE_SMALL then
|
||||
l_spawn_chance_bird = l_spawn_chance_bird - 18000
|
||||
end
|
||||
|
||||
-- Mineclone check
|
||||
|
||||
local mod_mcl = core.get_modpath("mcl_core")
|
||||
|
||||
-- gulls
|
||||
|
||||
if ENABLE_GULLS then
|
||||
|
||||
mobs:register_mob("mobs_birds:gull", {
|
||||
type = "animal",
|
||||
passive = true,
|
||||
hp_min = 5,
|
||||
hp_max = 10,
|
||||
armor = 100,
|
||||
collisionbox = {-1, -0.3, -1, 1, 0.3, 1},
|
||||
visual = "mesh",
|
||||
mesh = "animal_gull.b3d",
|
||||
textures = {
|
||||
{"animal_gull_mesh.png"},
|
||||
{"gull_black.png"},
|
||||
{"gull_gray.png"},
|
||||
{"gull_grayblue.png"}
|
||||
},
|
||||
rotate = 270,
|
||||
walk_velocity = 4,
|
||||
run_velocity = 6,
|
||||
fall_speed = 0,
|
||||
stepheight = 3,
|
||||
fly = true,
|
||||
keep_flying = true,
|
||||
water_damage = 0,
|
||||
lava_damage = 10,
|
||||
light_damage = 0,
|
||||
view_range = 14,
|
||||
animation = {
|
||||
speed_normal = 24, speed_run = 24,
|
||||
stand_start = 1, stand_end = 95,
|
||||
walk_start = 1, walk_end = 95,
|
||||
fly_start = 1, fly_end = 95,
|
||||
run_start = 1, run_end = 95
|
||||
},
|
||||
|
||||
on_rightclick = function(self, clicker)
|
||||
mobs:capture_mob(self, clicker, 5, 60, 0, true, nil)
|
||||
end
|
||||
})
|
||||
|
||||
mobs:register_egg("mobs_birds:gull", "Gull", "default_cloud.png", 1)
|
||||
end
|
||||
|
||||
-- large birds
|
||||
|
||||
if ENABLE_LARGE then
|
||||
|
||||
mobs:register_mob("mobs_birds:bird_lg", {
|
||||
type = "animal",
|
||||
passive = true,
|
||||
hp_min = 5,
|
||||
hp_max = 10,
|
||||
armor = 100,
|
||||
collisionbox = {-0.5, -0.3, -0.5, 0.5, 0.3, 0.5},
|
||||
visual = "mesh",
|
||||
mesh = "animal_gull.b3d",
|
||||
textures = {
|
||||
{"bird_blueish.png"},
|
||||
{"bird_brown.png"},
|
||||
{"bird_gray.png"},
|
||||
{"bird_grayblue.png"},
|
||||
{"bird_red.png"},
|
||||
{"bird_redish.png"}
|
||||
},
|
||||
visual_size = {x = .5, y = .5},
|
||||
rotate = 270,
|
||||
walk_velocity = 4,
|
||||
run_velocity = 6,
|
||||
fall_speed = 0,
|
||||
stepheight = 3,
|
||||
fly = true,
|
||||
keep_flying = true,
|
||||
water_damage = 0,
|
||||
lava_damage = 10,
|
||||
light_damage = 0,
|
||||
view_range = 12,
|
||||
animation = {
|
||||
speed_normal = 24, speed_run = 24,
|
||||
stand_start = 1, stand_end = 95,
|
||||
walk_start = 1, walk_end = 95,
|
||||
run_start = 1, run_end = 95
|
||||
},
|
||||
|
||||
on_rightclick = function(self, clicker)
|
||||
mobs:capture_mob(self, clicker, 5, 60, 0, true, nil)
|
||||
end
|
||||
})
|
||||
|
||||
mobs:register_egg("mobs_birds:bird_lg", "Large bird", "default_cloud.png", 1)
|
||||
end
|
||||
|
||||
-- small birds
|
||||
|
||||
if ENABLE_SMALL then
|
||||
|
||||
mobs:register_mob("mobs_birds:bird_sm", {
|
||||
type = "animal",
|
||||
passive = true,
|
||||
hp_min = 2,
|
||||
hp_max = 5,
|
||||
armor = 100,
|
||||
collisionbox = {-0.25, -0.3, -0.25, 0.25, 0.3, 0.25},
|
||||
visual = "mesh",
|
||||
mesh = "animal_gull.b3d",
|
||||
textures = {
|
||||
{"bird_blueish.png"},
|
||||
{"bird_brown.png"},
|
||||
{"bird_gray.png"},
|
||||
{"bird_grayblue.png"},
|
||||
{"bird_red.png"},
|
||||
{"bird_redish.png"}
|
||||
},
|
||||
visual_size = {x = .25, y = .25},
|
||||
rotate = 270,
|
||||
walk_velocity = 4,
|
||||
run_velocity = 6,
|
||||
fall_speed = 0,
|
||||
stepheight = 3,
|
||||
fly = true,
|
||||
keep_flying = true,
|
||||
water_damage = 0,
|
||||
lava_damage = 10,
|
||||
light_damage = 0,
|
||||
view_range = 10,
|
||||
animation = {
|
||||
speed_normal = 24, speed_run = 24,
|
||||
stand_start = 1, stand_end = 95,
|
||||
walk_start = 1, walk_end = 95,
|
||||
run_start = 1, run_end = 95
|
||||
},
|
||||
|
||||
on_rightclick = function(self, clicker)
|
||||
mobs:capture_mob(self, clicker, 5, 60, 0, true, nil)
|
||||
end
|
||||
})
|
||||
|
||||
mobs:register_egg("mobs_birds:bird_sm", "Small bird", "default_cloud.png", 1)
|
||||
end
|
||||
|
||||
-- Check for custom spawn.lua
|
||||
|
||||
local MP = core.get_modpath(core.get_current_modname()) .. "/"
|
||||
local input = io.open(MP .. "spawn.lua", "r")
|
||||
|
||||
if input then
|
||||
input:close() ; input = nil ; dofile(MP .. "spawn.lua")
|
||||
else
|
||||
if ENABLE_GULLS then
|
||||
|
||||
mobs:spawn({
|
||||
name = "mobs_birds:gull",
|
||||
nodes = {"air"},
|
||||
neighbors = {"group:water"},
|
||||
max_light = 5,
|
||||
interval = 30,
|
||||
chance = l_spawn_chance_gull,
|
||||
min_height = 0,
|
||||
max_height = 200
|
||||
})
|
||||
end
|
||||
|
||||
if ENABLE_SMALL then
|
||||
|
||||
mobs:spawn({
|
||||
name = "mobs_birds:bird_sm",
|
||||
nodes = {"air"},
|
||||
neighbors = {
|
||||
"group:leaves" , (mod_mcl and "mcl_core:cactus" or "default:cactus")
|
||||
},
|
||||
max_light = 5,
|
||||
interval = 30,
|
||||
chance = l_spawn_chance_bird,
|
||||
min_height = 0,
|
||||
max_height = 200
|
||||
})
|
||||
end
|
||||
|
||||
if ENABLE_LARGE then
|
||||
|
||||
mobs:spawn({
|
||||
name = "mobs_birds:bird_lg",
|
||||
nodes = {"air"},
|
||||
neighbors = {
|
||||
"group:leaves" , (mod_mcl and "mcl_core:cactus" or "default:cactus")
|
||||
},
|
||||
max_light = 5,
|
||||
interval = 30,
|
||||
chance = l_spawn_chance_bird,
|
||||
min_height = 0,
|
||||
max_height = 200
|
||||
})
|
||||
end
|
||||
end
|
||||
|
||||
print("[MOD] Mobs Redo Birds loaded")
|
4
mods/mobs_sky/mobs_birds/mod.conf
Normal file
|
@ -0,0 +1,4 @@
|
|||
name = mobs_birds
|
||||
description = Adds birds into your world.
|
||||
depends = mobs
|
||||
min_minetest_version = 5.0
|
BIN
mods/mobs_sky/mobs_birds/models/animal_gull.b3d
Normal file
BIN
mods/mobs_sky/mobs_birds/models/animal_gull.xcf
Normal file
BIN
mods/mobs_sky/mobs_birds/models/gull.blend
Normal file
3
mods/mobs_sky/mobs_birds/settingtypes.txt
Normal file
|
@ -0,0 +1,3 @@
|
|||
mobs_birds.enable_gulls (Enable Gulls) bool true
|
||||
mobs_birds.enable_large_birds (Enable Large Birds) bool true
|
||||
mobs_birds.enable_small_birds (Enable Small Birds) bool true
|
54
mods/mobs_sky/mobs_birds/spawn_example.lua
Normal file
|
@ -0,0 +1,54 @@
|
|||
|
||||
-- load settings
|
||||
|
||||
local ENABLE_GULLS = core.settings:get_bool("mobs_birds.enable_gulls") ~= false
|
||||
local ENABLE_LARGE = core.settings:get_bool("mobs_birds.enable_large_birds") ~= false
|
||||
local ENABLE_SMALL = core.settings:get_bool("mobs_birds.enable_small_birds") ~= false
|
||||
|
||||
-- Custom spawn examples
|
||||
|
||||
if ENABLE_GULL then
|
||||
|
||||
mobs:spawn({
|
||||
name = "mobs_birds:gull",
|
||||
nodes = {"air"},
|
||||
neighbors = {"group:water"},
|
||||
max_light = 5,
|
||||
interval = 30,
|
||||
chance = 24000,
|
||||
min_height = 0,
|
||||
max_height = 200
|
||||
})
|
||||
end
|
||||
|
||||
if ENABLE_SMALL then
|
||||
|
||||
mobs:spawn({
|
||||
name = "mobs_birds:bird_sm",
|
||||
nodes = {"air"},
|
||||
neighbors = {
|
||||
"group:leaves" , (mod_mcl and "mcl_core:cactus" or "default:cactus")
|
||||
},
|
||||
max_light = 5,
|
||||
interval = 30,
|
||||
chance = 18000,
|
||||
min_height = 0,
|
||||
max_height = 200
|
||||
})
|
||||
end
|
||||
|
||||
if ENABLE_LARGE then
|
||||
|
||||
mobs:spawn({
|
||||
name = "mobs_birds:bird_lg",
|
||||
nodes = {"air"},
|
||||
neighbors = {
|
||||
"group:leaves" , (mod_mcl and "mcl_core:cactus" or "default:cactus")
|
||||
},
|
||||
max_light = 5,
|
||||
interval = 30,
|
||||
chance = 18000,
|
||||
min_height = 0,
|
||||
max_height = 200
|
||||
})
|
||||
end
|
BIN
mods/mobs_sky/mobs_birds/textures/animal_gull_mesh.png
Normal file
After Width: | Height: | Size: 2.9 KiB |
BIN
mods/mobs_sky/mobs_birds/textures/bird_blueish.png
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
mods/mobs_sky/mobs_birds/textures/bird_brown.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
mods/mobs_sky/mobs_birds/textures/bird_gray.png
Normal file
After Width: | Height: | Size: 6.5 KiB |
BIN
mods/mobs_sky/mobs_birds/textures/bird_grayblue.png
Normal file
After Width: | Height: | Size: 9.6 KiB |
BIN
mods/mobs_sky/mobs_birds/textures/bird_red.png
Normal file
After Width: | Height: | Size: 9.8 KiB |
BIN
mods/mobs_sky/mobs_birds/textures/bird_redish.png
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
mods/mobs_sky/mobs_birds/textures/gull_black.png
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
mods/mobs_sky/mobs_birds/textures/gull_gray.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
mods/mobs_sky/mobs_birds/textures/gull_grayblue.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
mods/mobs_sky/mobs_birds/textures/originals/animal_gull_gull.png
Normal file
After Width: | Height: | Size: 2.5 KiB |
After Width: | Height: | Size: 378 B |
BIN
mods/mobs_sky/mobs_birds/textures/originals/animal_gull_mesh.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
mods/mobs_sky/mobs_birds/textures/originals/bird_blueish.png
Normal file
After Width: | Height: | Size: 55 KiB |
BIN
mods/mobs_sky/mobs_birds/textures/originals/bird_brown.png
Normal file
After Width: | Height: | Size: 53 KiB |
BIN
mods/mobs_sky/mobs_birds/textures/originals/bird_gray.png
Normal file
After Width: | Height: | Size: 39 KiB |
BIN
mods/mobs_sky/mobs_birds/textures/originals/bird_grayblue.png
Normal file
After Width: | Height: | Size: 48 KiB |
BIN
mods/mobs_sky/mobs_birds/textures/originals/bird_red.png
Normal file
After Width: | Height: | Size: 49 KiB |
BIN
mods/mobs_sky/mobs_birds/textures/originals/bird_redish.png
Normal file
After Width: | Height: | Size: 57 KiB |
BIN
mods/mobs_sky/mobs_birds/textures/originals/gull_black.png
Normal file
After Width: | Height: | Size: 18 KiB |
BIN
mods/mobs_sky/mobs_birds/textures/originals/gull_gray.png
Normal file
After Width: | Height: | Size: 33 KiB |
BIN
mods/mobs_sky/mobs_birds/textures/originals/gull_grayblue.png
Normal file
After Width: | Height: | Size: 47 KiB |