Add files via upload

This commit is contained in:
Skandarella 2021-01-31 21:16:39 +01:00 committed by GitHub
parent 58fb8ef189
commit 5475612c00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 508 additions and 0 deletions

79
manatee.lua Normal file
View File

@ -0,0 +1,79 @@
mobs:register_mob("wildlife:manatee", {
stepheight = 0.0,
type = "animal",
passive = true,
attack_type = "dogfight",
attack_animals = false,
reach = 1,
damage = 1,
hp_min = 5,
hp_max = 30,
armor = 200,
collisionbox = {-0.7, -0.01, -0.7, 0.7, 0.95, 0.7},
visual = "mesh",
mesh = "Manatee.b3d",
visual_size = {x = 1.0, y = 1.0},
textures = {
{"texturemanatee.png"},
},
sounds = {},
makes_footstep_sound = false,
walk_velocity = 0.5,
run_velocity = 2,
fly = true,
fly_in = "default:water_source", "default:river_water_source", "default:water_flowing",
fall_speed = 0,
runaway = true,
runaway_from = {"wildlife:bear", "wildlife:crocodile", "wildlife:tiger"},
jump = false,
stepheight = 0.0,
drops = {
{name = "mobs:meat_raw", chance = 1, min = 1, max = 1},
},
water_damage = 0,
lava_damage = 4,
light_damage = 0,
fear_height = 2,
animation = {
speed_normal = 75,
stand_start = 0,
stand_end = 100,
walk_start = 100,
walk_end = 250,
fly_start = 100, -- swim animation
fly_end = 250,
punch_start = 100,
punch_end = 200,
-- 50-70 is slide/water idle
},
fly_in = {"default:water_source", "default:river_water_source", "default:water_flowing"},
floats = 0,
follow = {
"default:kelp", "seaweed", "xocean:kelp",
"default:grass", "farming:cucumber", "farming:cabbage"
},
view_range = 10,
on_rightclick = function(self, clicker)
-- feed or tame
if mobs:feed_tame(self, clicker, 4, false, true) then return end
if mobs:protect(self, clicker) then return end
if mobs:capture_mob(self, clicker, 5, 50, 80, false, nil) then return end
end,
})
if not mobs.custom_spawn_animal then
mobs:spawn({
name = "wildlife:manatee",
nodes = {"default:water_source"}, {"default:river_water_source"},
min_light = 14,
interval = 25,
chance = 8000, -- 15000
min_height = 0,
max_height = 10,
day_toggle = true,
})
end
mobs:register_egg("wildlife:manatee", ("Manatee"), "amanatee.png")

1
mod.conf Normal file
View File

@ -0,0 +1 @@
name = wildlife

92
moose.lua Normal file
View File

@ -0,0 +1,92 @@
mobs:register_mob("wildlife:moose", {
stepheight = 1,
type = "animal",
passive = false,
attack_type = "dogfight",
group_attack = true,
owner_loyal = true,
attack_npcs = false,
reach = 2,
damage = 2,
hp_min = 5,
hp_max = 25,
armor = 200,
collisionbox = {-0.6, -0.01, -0.6, 0.6, 0.95, 0.6},
visual = "mesh",
mesh = "Moose.b3d",
textures = {
{"texturemoose.png"},
},
makes_footstep_sound = true,
sounds = {
random = "wildlife_moose",
attack = "wildlife_moose",
},
walk_velocity = 1,
run_velocity = 3,
runaway = true,
runaway_from = {"wildlife:bear", "wildlife:crocodile", "wildlife:tiger"},
jump = false,
jump_height = 3,
pushable = true,
follow = {"default:apple", "farming:potato"},
view_range = 10,
drops = {
{name = "mobs:meat_raw", chance = 1, min = 1, max = 1},
},
water_damage = 0,
lava_damage = 5,
light_damage = 0,
fear_height = 2,
animation = {
speed_normal = 50,
stand_start = 0,
stand_end = 100,
walk_start = 100,
walk_end = 200,
punch_start = 200,
punch_end = 300,
die_start = 1, -- we dont have a specific death animation so we will
die_end = 2, -- re-use 2 standing frames at a speed of 1 fps and
die_speed = 1, -- have mob rotate when dying.
die_loop = false,
die_rotate = true,
},
on_rightclick = function(self, clicker)
if mobs:feed_tame(self, clicker, 8, true, true) then return end
if mobs:protect(self, clicker) then return end
if mobs:capture_mob(self, clicker, 0, 5, 50, false, nil) then return end
end,
})
local spawn_on = {"default:dirt_with_grass", "default:coniferous_litter"}
if minetest.get_mapgen_setting("mg_name") ~= "v6" then
spawn_on = {"default:dirt_with_dry_grass", "default:dry_dirt_with_dry_grass"}
end
if minetest.get_modpath("ethereal") then
spawn_on = {"ethereal:grass_grove"}
end
if not mobs.custom_spawn_animal then
mobs:spawn({
name = "wildlife:moose",
nodes = {"default:dirt_with_grass", "default:dirt_with_coniferous_litter"},
neighbors = spawn_by,
min_light = 0,
interval = 25,
chance = 8000, -- 15000
min_height = 0,
max_height = 300,
day_toggle = true,
})
end
mobs:register_egg("wildlife:moose", ("Moose"), "amoose.png")
mobs:alias_mob("wildlife:moose", "wildlife:moose") -- compatibility

BIN
screenshot.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 561 KiB

75
seal.lua Normal file
View File

@ -0,0 +1,75 @@
mobs:register_mob("wildlife:seal", {
stepheight = 0.6,
type = "animal",
passive = true,
reach = 1,
hp_min = 5,
hp_max = 20,
armor = 200,
collisionbox = {-0.4, -0.01, -0.4, 0.4, 0.95, 0.4},
visual = "mesh",
mesh = "Seal.b3d",
visual_size = {x = 1.0, y = 1.0},
textures = {
{"textureseal.png"},
},
sounds = {
random = "wildlife_seal",
attack = "wildlife_seal",
},
makes_footstep_sound = true,
walk_velocity = 0.8,
run_velocity = 1,
runaway = true,
runaway = true,
runaway_from = {"wildlife:bear", "wildlife:crocodile", "wildlife:tiger"},
jump = false,
stepheight = 1.1,
drops = {
{name = "mobs:meat_raw", chance = 1, min = 1, max = 1},
},
water_damage = 0,
lava_damage = 4,
light_damage = 0,
fear_height = 2,
animation = {
speed_normal = 125,
stand_start = 0,
stand_end = 400,
walk_start = 400,
walk_end = 600,
fly_start = 650, -- swim animation
fly_end = 850,
-- 50-70 is slide/water idle
},
fly_in = {"default:water_source", "default:water_flowing"},
floats = 0,
follow = {
"ethereal:fish_raw", "mobs_fish:clownfish", "mobs_fish:tropical",
"mobs_fish:clownfish_set", "mobs_fish:tropical_set", "xocean:fish_edible"
},
view_range = 10,
on_rightclick = function(self, clicker)
-- feed or tame
if mobs:feed_tame(self, clicker, 4, false, true) then return end
if mobs:protect(self, clicker) then return end
if mobs:capture_mob(self, clicker, 5, 50, 80, false, nil) then return end
end,
})
if not mobs.custom_spawn_animal then
mobs:spawn({
name = "wildlife:seal",
nodes = {"default:snowblock", "default_ice"},
min_light = 14,
interval = 20,
chance = 8000, -- 15000
min_height = 0,
max_height = 10,
day_toggle = true,
})
end
mobs:register_egg("wildlife:seal", ("Seal"), "aseal.png")

23
test.txt Normal file
View File

@ -0,0 +1,23 @@
-- raw fish
minetest.register_craftitem(":wildlife:rawfish", {
description = ("Raw Fish"),
inventory_image = "wildlife_rawfish.png",
on_use = minetest.item_eat(3),
groups = {food_meat_raw = 1, flammable = 2},
})
-- cooked fish
minetest.register_craftitem(":wildlife:cookedfish", {
description = ("Cooked Fish"),
inventory_image = "wildlife_cookedfish.png",
on_use = minetest.item_eat(5),
groups = {food_meat = 1, flammable = 2},
})
minetest.register_craft({
type = "cooking",
output = "wildlife:cookedfish",
recipe = "wildlife:rawfish",
cooktime = 5,
})

76
tiger.lua Normal file
View File

@ -0,0 +1,76 @@
mobs:register_mob("wildlife:tiger", {
stepheight = 1,
type = "monster",
passive = false,
attack_type = "dogfight",
attack_animals = true,
reach = 2,
damage = 6,
hp_min = 5,
hp_max = 25,
armor = 200,
collisionbox = {-0.5, -0.01, -0.5, 0.5, 0.95, 0.5},
visual = "mesh",
mesh = "Tiger.b3d",
visual_size = {x = 1.0, y = 1.0},
textures = {
{"texturetiger.png"},
},
sounds = {
random = "wildlife_tiger",
attack = "wildlife_tiger",
},
makes_footstep_sound = true,
walk_velocity = 2,
run_velocity = 4,
runaway = false,
jump = true,
jump_height = 6,
stepheight = 1,
drops = {
{name = "mobs:meat_raw", chance = 1, min = 1, max = 1},
},
water_damage = 0,
lava_damage = 4,
light_damage = 0,
fear_height = 2,
animation = {
speed_normal = 100,
stand_start = 0,
stand_end = 100,
walk_start = 100,
walk_end = 200,
punch_start = 200,
punch_end = 300,
-- 50-70 is slide/water idle
},
follow = {
"ethereal:fish_raw", "wildlife:rawfish", "mobs_fish:tropical",
"mobs:meat_raw", "wildlife:rabbit_raw", "wildlife:pork_raw"
},
view_range = 15,
on_rightclick = function(self, clicker)
-- feed or tame
if mobs:feed_tame(self, clicker, 4, false, true) then return end
if mobs:protect(self, clicker) then return end
if mobs:capture_mob(self, clicker, 5, 50, 80, false, nil) then return end
end,
})
if not mobs.custom_spawn_animal then
mobs:spawn({
name = "wildlife:tiger",
nodes = {"default:dry_dirt_with_dry_grass"}, {"default:dirt_with_rainforest_litter"},
min_light = 0,
interval = 60,
chance = 8000, -- 15000
min_height = 10,
max_height = 50,
})
end
mobs:register_egg("wildlife:tiger", ("Tiger"), "atiger.png")

83
tortoise.lua Normal file
View File

@ -0,0 +1,83 @@
mobs:register_mob("wildlife:tortoise", {
stepheight = 1,
type = "monster",
passive = false,
reach = 1,
attack_npcs = true,
reach = 2,
damage = 0,
hp_min = 1,
hp_max = 35,
armor = 200,
collisionbox = {-0.268, -0.01, -0.268, 0.268, 0.167, 0.268},
visual = "mesh",
mesh = "Tortoise.b3d",
drawtype = "front",
textures = {
{"texturetortoise.png"},
},
sounds = {},
makes_footstep_sound = false,
walk_velocity = 0.2,
run_velocity = 0.3,
runaway = true,
runaway_from = {"wildlife:bear", "wildlife:crocodile", "wildlife:tiger", "player"},
jump = false,
jump_height = 6,
drops = {
{name = "mobs:meat_raw", chance = 1, min = 1, max = 1},
},
water_damage = 0,
lava_damage = 4,
light_damage = 0,
fear_height = 2,
animation = {
speed_normal = 50,
stand_start = 1,
stand_end = 100,
walk_start = 100,
walk_end = 200,
punch_start = 200,
punch_end = 400,
},
follow = {"farming:carrot", "farming_plus:carrot_item", "default:marram_grass_2"},
view_range = 4,
replace_rate = 10,
replace_what = {"farming:carrot_7", "farming:carrot_8", "farming_plus:carrot"},
replace_with = "air",
on_rightclick = function(self, clicker)
if mobs:feed_tame(self, clicker, 8, true, true) then return end
if mobs:protect(self, clicker) then return end
if mobs:capture_mob(self, clicker, 0, 5, 50, false, nil) then return end
end,
})
local spawn_on = "default:sand"
if minetest.get_modpath("ethereal") then
spawn_on = "ethereal:prairie_dirt"
end
if not mobs.custom_spawn_animal then
mobs:spawn({
name = "wildlife:tortoise",
nodes = {"default:sand"},
min_light = 0,
interval = 60,
chance = 8000, -- 15000
min_height = 5,
max_height = 100,
day_toggle = true,
})
end
mobs:register_egg("wildlife:tortoise", ("Tortoise"), "atortoise.png", 0)
mobs:alias_mob("wildlife:tortoise", "wildlife:tortoise") -- compatibility

79
trout.lua Normal file
View File

@ -0,0 +1,79 @@
mobs:register_mob("wildlife:trout", {
stepheight = 0.0,
type = "animal",
passive = true,
attack_type = "dogfight",
attack_animals = false,
reach = 1,
damage = 1,
hp_min = 5,
hp_max = 5,
armor = 200,
collisionbox = {-0.4, -0.01, -0.4, 0.4, 0.95, 0.4},
visual = "mesh",
mesh = "Trout.b3d",
visual_size = {x = 1.0, y = 1.0},
textures = {
{"texturetrout.png"},
},
sounds = {},
makes_footstep_sound = false,
walk_velocity = 3,
run_velocity = 4,
fly = true,
fly_in = "default:water_source", "default:river_water_source", "default:water_flowing",
fall_speed = 0,
runaway = true,
runaway_from = {"wildlife:bear", "wildlife:crocodile", "wildlife:tiger", "wildlife:elephant", "wildlife:hippo", "player"},
jump = false,
stepheight = 0.0,
drops = {
{name = "wildlife:rawfish", chance = 1, min = 1, max = 1},
},
water_damage = 0,
air_damage = 1,
lava_damage = 4,
light_damage = 0,
fear_height = 2,
animation = {
speed_normal = 125,
stand_start = 0,
stand_end = 100,
walk_start = 150,
walk_end = 250,
fly_start = 150, -- swim animation
fly_end = 250,
punch_start = 100,
punch_end = 200,
-- 50-70 is slide/water idle
},
fly_in = {"default:water_source", "default:river_water_source", "default:water_flowing"},
floats = 0,
follow = {
"mobs:meat_raw"
},
view_range = 10,
on_rightclick = function(self, clicker)
-- feed or tame
if mobs:feed_tame(self, clicker, 4, false, true) then return end
if mobs:protect(self, clicker) then return end
if mobs:capture_mob(self, clicker, 5, 50, 80, false, nil) then return end
end,
})
if not mobs.custom_spawn_animal then
mobs:spawn({
name = "wildlife:trout",
nodes = {"default:water_source"}, {"default:river_water_source"},
min_light = 14,
interval = 10,
chance = 8000, -- 15000
min_height = 1,
max_height = 500,
day_toggle = true,
})
end
mobs:register_egg("wildlife:trout", ("Trout"), "atrout.png")