Add files via upload

master
Skandarella 2021-03-06 15:56:50 +01:00 committed by GitHub
parent d999da38f7
commit 671587473a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
47 changed files with 1653 additions and 64 deletions

143
ant.lua Normal file
View File

@ -0,0 +1,143 @@
mobs:register_mob("animalworld:ant", {
type = "monster",
passive = false,
attack_type = "dogfight",
reach = 1,
damage = 1,
hp_min = 1,
hp_max = 10,
armor = 100,
collisionbox = {-0.1, -0.01, -0.1, 0.1, 0.1, 0.1},
visual = "mesh",
mesh = "Ant.b3d",
visual_size = {x = 1, y = 1},
textures = {
{"textureant.png"},
},
sounds = {
random = "animalworld_ant",
attack = "animalworld_ant",
},
makes_footstep_sound = true,
stay_near = {"animalworld:anthill", 5},
view_range = 3,
walk_velocity = 0.5,
walk_chance = 70,
run_velocity = 0.7,
runaway = false,
jump = false,
jump_height = 0,
stepheight = 3,
drops = {
{name = "animalworld:ant", chance = 1, min = 1, max = 1},
},
water_damage = 1,
lava_damage = 4,
light_damage = 0,
fear_height = 3,
animation = {
speed_normal = 200,
stand_start = 0,
stand_end = 0,
walk_start = 0,
walk_end = 100,
punch_start = 100,
punch_end = 200,
-- 50-70 is slide/water idle
},
})
if not mobs.custom_spawn_monster then
mobs:spawn({
name = "animalworld:ant",
nodes = {"default:dirt_with_coniferous_litter"},
neighbors = {"animalworld:anthill"},
min_light = 0,
interval = 30,
chance = 1, -- 15000
active_object_count = 7,
min_height = 0,
max_height = 50,
day_toggle = true
})
end
mobs:register_egg("animalworld:ant", ("Ant"), "aant.png")
mobs:alias_mob("animalworld:ant", "animalworld:ant")
minetest.register_craftitem(":animalworld:anteggs_raw", {
description = ("Raw Ant Eggs"),
inventory_image = "animalworld_anteggs_raw.png",
on_use = minetest.item_eat(2),
groups = {food_meat_raw = 1, flammable = 2},
})
minetest.register_craftitem(":animalworld:anteggs_cooked", {
description = ("Cooked Ant Eggs"),
inventory_image = "animalworld_anteggs_cooked.png",
on_use = minetest.item_eat(6),
groups = {food_meat = 1, flammable = 2},
})
minetest.register_craft({
type = "cooking",
output = "animalworld:anteggs_cooked",
recipe = "animalworld:anteggs_raw",
cooktime = 5,
})
minetest.register_decoration({
deco_type = "simple",
place_on = {"default:dirt_with_coniferous_litter"},
sidelen = 16,
noise_params = {
offset = 0.0012,
scale = 0.0007,
spread = {x = 250, y = 250, z = 250},
seed = 2,
octaves = 3,
persist = 0.66
},
y_max = 50,
y_min = 0,
decoration = "animalworld:anthill"
})
minetest.register_node("animalworld:anthill", {
description = "Anthill",
visual_scale = 0.5,
mesh = "Anthil.b3d",
tiles = {"textureanthil.png"},
inventory_image = "aanthil.png",
paramtype = "light",
paramtype2 = "facedir",
groups = {choppy = 3},
drawtype = "mesh",
collision_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, 0.1, 0.5},
--[[{-0.5, -0.5, -0.5, 0.5, 0.1, 0.5},
{-0.5, -0.5, -0.5, 0.5, 0.1, 0.5}]]
}
},
selection_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, 0.1, 0.5}
}
},
drop = "animalworld:anteggs_raw",
sounds = default.node_sound_dirt_defaults(),
})
minetest.register_craft({
type = "fuel",
recipe = "animalworld:anthill",
burntime = 1,
})

View File

@ -24,11 +24,11 @@ mobs:register_mob("animalworld:anteater", {
walk_velocity = 0.7,
run_velocity = 2,
runaway = false,
runaway_from = {"animalworld:bear", "animalworld:crocodile", "animalworld:tiger", "animalworld:spider", "animalworld:spidermale", "animalworld:shark", "animalworld:hyena", "animalworld:kobra", "animalworld:monitor", "animalworld:snowleopard", "animalworld:volverine", "livingfloatlands:deinotherium", "livingfloatlands:carnotaurus", "livingfloatlands:lycaenops", "livingfloatlands:smilodon", "livingfloatlands:tyrannosaurus", "livingfloatlands:velociraptor"},
runaway_from = {"animalworld:bear", "animalworld:crocodile", "animalworld:tiger", "animalworld:spider", "animalworld:spidermale", "animalworld:shark", "animalworld:hyena", "animalworld:kobra", "animalworld:monitor", "animalworld:snowleopard", "animalworld:volverine", "livingfloatlands:deinotherium", "livingfloatlands:carnotaurus", "livingfloatlands:lycaenops", "livingfloatlands:smilodon", "livingfloatlands:tyrannosaurus", "livingfloatlands:velociraptor", "animalworld:divingbeetle", "animalworld:scorpion",},
jump = false,
jump_height = 3,
pushable = true,
follow = {"fishing:bait:worm", "bees:frame_full", "ethereal:worm"},
follow = {"fishing:bait:worm", "bees:frame_full", "ethereal:worm", "animalworld:ant"},
view_range = 10,
drops = {
{name = "mobs:meat_raw", chance = 1, min = 1, max = 1},

View File

@ -9,7 +9,7 @@ stepheight = 3,
hp_min = 5,
hp_max = 35,
armor = 100,
collisionbox = {-0.3, -0.01, -1, 0.3, 0.3, 0.3},
collisionbox = {-0.2, -0.01, -0.2, 0.2, 0.5, 0.2},
visual = "mesh",
mesh = "Bat.b3d",
visual_size = {x = 1.0, y = 1.0},
@ -23,7 +23,7 @@ stepheight = 3,
walk_velocity = 5,
run_velocity = 6,
runaway = true,
runaway_from = {"animalworld:bear", "animalworld:crocodile", "animalworld:tiger", "animalworld:spider", "animalworld:spidermale", "animalworld:shark", "animalworld:hyena", "animalworld:kobra", "animalworld:monitor", "animalworld:snowleopard", "animalworld:volverine", "livingfloatlands:deinotherium", "livingfloatlands:carnotaurus", "livingfloatlands:lycaenops", "livingfloatlands:smilodon", "livingfloatlands:tyrannosaurus", "livingfloatlands:velociraptor", "player"},
runaway_from = {"animalworld:bear", "animalworld:crocodile", "animalworld:tiger", "animalworld:spider", "animalworld:spidermale", "animalworld:shark", "animalworld:hyena", "animalworld:kobra", "animalworld:monitor", "animalworld:snowleopard", "animalworld:volverine", "livingfloatlands:deinotherium", "livingfloatlands:carnotaurus", "livingfloatlands:lycaenops", "livingfloatlands:smilodon", "livingfloatlands:tyrannosaurus", "livingfloatlands:velociraptor", "animalworld:divingbeetle", "animalworld:scorpion", "player"},
fall_speed = 0,
jump = true,
jump_height = 6,

View File

@ -9,7 +9,7 @@ stepheight = 3,
hp_min = 5,
hp_max = 30,
armor = 100,
collisionbox = {-0.3, -0.01, -1, 0.3, 0.3, 0.3},
collisionbox = {-0.3, -0.01, -0.3, 0.3, 0.5, 0.3},
visual = "mesh",
mesh = "Blackbird.b3d",
visual_size = {x = 1.0, y = 1.0},
@ -23,7 +23,7 @@ stepheight = 3,
walk_velocity = 2,
run_velocity = 4,
runaway = true,
runaway_from = {"animalworld:bear", "animalworld:crocodile", "animalworld:tiger", "animalworld:spider", "animalworld:spidermale", "animalworld:shark", "animalworld:hyena", "animalworld:kobra", "animalworld:monitor", "animalworld:snowleopard", "animalworld:volverine", "livingfloatlands:deinotherium", "livingfloatlands:carnotaurus", "livingfloatlands:lycaenops", "livingfloatlands:smilodon", "livingfloatlands:tyrannosaurus", "livingfloatlands:velociraptor", "player"},
runaway_from = {"animalworld:bear", "animalworld:crocodile", "animalworld:tiger", "animalworld:spider", "animalworld:spidermale", "animalworld:shark", "animalworld:hyena", "animalworld:kobra", "animalworld:monitor", "animalworld:snowleopard", "animalworld:volverine", "livingfloatlands:deinotherium", "livingfloatlands:carnotaurus", "livingfloatlands:lycaenops", "livingfloatlands:smilodon", "livingfloatlands:tyrannosaurus", "livingfloatlands:velociraptor", "animalworld:divingbeetle", "animalworld:scorpion", "player"},
jump = true,
jump_height = 6,
stepheight = 3,

View File

@ -11,7 +11,7 @@ mobs:register_mob("animalworld:camel", {
hp_min = 20,
hp_max = 60,
armor = 100,
collisionbox = {-0.7, -0.01, -0.7, 0.7, 0.95, 0.7},
collisionbox = {-1, -0.01, -0.6, 1, 2, 0.6},
visual = "mesh",
mesh = "Camel.b3d",
textures = {
@ -25,7 +25,7 @@ mobs:register_mob("animalworld:camel", {
walk_velocity = 2,
run_velocity = 5,
runaway = true,
runaway_from = {"animalworld:bear", "animalworld:crocodile", "animalworld:tiger", "animalworld:spider", "animalworld:spidermale", "animalworld:shark", "animalworld:hyena", "animalworld:kobra", "animalworld:monitor", "animalworld:snowleopard", "animalworld:volverine", "livingfloatlands:deinotherium", "livingfloatlands:carnotaurus", "livingfloatlands:lycaenops", "livingfloatlands:smilodon", "livingfloatlands:tyrannosaurus", "livingfloatlands:velociraptor"},
runaway_from = {"animalworld:bear", "animalworld:crocodile", "animalworld:tiger", "animalworld:spider", "animalworld:spidermale", "animalworld:shark", "animalworld:hyena", "animalworld:kobra", "animalworld:monitor", "animalworld:snowleopard", "animalworld:volverine", "livingfloatlands:deinotherium", "livingfloatlands:carnotaurus", "livingfloatlands:lycaenops", "livingfloatlands:smilodon", "livingfloatlands:tyrannosaurus", "livingfloatlands:velociraptor", "animalworld:divingbeetle", "animalworld:scorpion"},
jump = false,
jump_height = 3,
pushable = true,

View File

@ -9,7 +9,7 @@ stepheight = 0.0,
hp_min = 5,
hp_max = 25,
armor = 100,
collisionbox = {-0.4, -0.01, -0.4, 0.4, 0.95, 0.4},
collisionbox = {-0.4, -0.01, -0.4, 0.4, 0.5, 0.4},
visual = "mesh",
mesh = "Carp.b3d",
visual_size = {x = 1.0, y = 1.0},
@ -21,10 +21,10 @@ stepheight = 0.0,
walk_velocity = 2,
run_velocity = 3,
fly = true,
fly_in = "default:water_source", "default:river_water_source", "default:water_flowing",
fly_in = "default:water_source", "default:river_water_source", "default:water_flowing", "default:river_water_flowing",
fall_speed = 0,
runaway = true,
runaway_from = {"animalworld:bear", "animalworld:crocodile", "animalworld:tiger", "animalworld:spider", "animalworld:spidermale", "animalworld:shark", "animalworld:hyena", "animalworld:kobra", "animalworld:monitor", "animalworld:snowleopard", "animalworld:volverine", "livingfloatlands:deinotherium", "livingfloatlands:carnotaurus", "livingfloatlands:lycaenops", "livingfloatlands:smilodon", "livingfloatlands:tyrannosaurus", "livingfloatlands:velociraptor", "player"},
runaway_from = {"animalworld:bear", "animalworld:crocodile", "animalworld:tiger", "animalworld:spider", "animalworld:spidermale", "animalworld:shark", "animalworld:hyena", "animalworld:kobra", "animalworld:monitor", "animalworld:snowleopard", "animalworld:volverine", "livingfloatlands:deinotherium", "livingfloatlands:carnotaurus", "livingfloatlands:lycaenops", "livingfloatlands:smilodon", "livingfloatlands:tyrannosaurus", "livingfloatlands:velociraptor", "animalworld:divingbeetle", "animalworld:divingbeetle", "animalworld:scorpion", "player"},
jump = false,
stepheight = 0.0,
drops = {
@ -51,7 +51,7 @@ stepheight = 0.0,
floats = 0,
follow = {
"ethereal:worm", "seaweed", "fishing:bait_worm",
"default:grass", "farming:cucumber", "farming:cabbage"
"default:grass", "farming:cucumber", "farming:cabbage", "animalworld:ant", "animalworld:termite", "animalworld:fishfood"
},
view_range = 10,

View File

@ -9,7 +9,7 @@ stepheight = 1,
hp_min = 10,
hp_max = 40,
armor = 100,
collisionbox = {-0.268, -0.01, -0.268, 0.268, 0.167, 0.268},
collisionbox = {-0.4, -0.01, -0.4, 0.4, 0.4, 0.4},
visual = "mesh",
mesh = "Crab.b3d",
drawtype = "front",
@ -25,7 +25,7 @@ stepheight = 1,
walk_velocity = 0.7,
run_velocity = 1,
runaway = true,
runaway_from = {"animalworld:bear", "animalworld:crocodile", "animalworld:tiger", "animalworld:spider", "animalworld:spidermale", "animalworld:shark", "animalworld:hyena", "animalworld:kobra", "animalworld:monitor", "animalworld:snowleopard", "animalworld:volverine", "livingfloatlands:deinotherium", "livingfloatlands:carnotaurus", "livingfloatlands:lycaenops", "livingfloatlands:smilodon", "livingfloatlands:tyrannosaurus", "livingfloatlands:velociraptor", "player"},
runaway_from = {"animalworld:bear", "animalworld:crocodile", "animalworld:tiger", "animalworld:spider", "animalworld:spidermale", "animalworld:shark", "animalworld:hyena", "animalworld:kobra", "animalworld:monitor", "animalworld:snowleopard", "animalworld:volverine", "livingfloatlands:deinotherium", "livingfloatlands:carnotaurus", "livingfloatlands:lycaenops", "livingfloatlands:smilodon", "livingfloatlands:tyrannosaurus", "livingfloatlands:velociraptor", "animalworld:divingbeetle", "animalworld:divingbeetle", "animalworld:scorpion", "player"},
jump = false,
jump_height = 6,
drops = {

81
divingbeetle.lua Normal file
View File

@ -0,0 +1,81 @@
mobs:register_mob("animalworld:divingbeetle", {
stepheight = 1,
type = "monster",
passive = false,
attack_type = "dogfight",
attack_npcs = true,
reach = 2,
damage = 1,
hp_min = 5,
hp_max = 25,
armor = 100,
collisionbox = {-0.3, -0.01, -0.3, 0.3, 0.3, 0.3},
visual = "mesh",
mesh = "Divingbeetle.b3d",
textures = {
{"texturedivingbeetle.png"},
},
makes_footstep_sound = false,
sounds = {
},
walk_velocity = 1,
run_velocity = 2,
runaway = false,
jump = false,
jump_height = 3,
pushable = true,
view_range = 6,
drops = {
{name = "animalworld:fishfood", chance = 1, min = 0, max = 2},
},
fly_in = {"default:water_source", "default:river_water_source", "default:water_flowing", "default:river_water_flowing"},
floats = 0,
follow = {
},
water_damage = 0,
lava_damage = 5,
air_damage = 1,
light_damage = 0,
fear_height = 2,
animation = {
speed_normal = 100,
stand_speed = 50,
stand_start = 100,
stand_end = 300,
walk_start = 0,
walk_end = 100,
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,
})
if not mobs.custom_spawn_animal then
mobs:spawn({
name = "animalworld:divingbeetle",
nodes = {"default:water_source", "default:river_water_source"},
neighbors = {"default:papyrus"},
min_light = 0,
interval = 30,
active_object_count = 2,
chance = 1, -- 15000
min_height = -10,
max_height = 30,
})
end
mobs:register_egg("animalworld:divingbeetle", ("Diving Beetle"), "adivingbeetle.png")
mobs:alias_mob("animalworld:divingbeetle", "animalworld:divingbeetle") -- compatibility

82
dragonfly.lua Normal file
View File

@ -0,0 +1,82 @@
mobs:register_mob("animalworld:dragonfly", {
stepheight = 3,
type = "animal",
passive = true,
attack_type = "dogfight",
attack_animals = true,
owner_loyal = true,
reach = 2,
damage = 1,
hp_min = 5,
hp_max = 25,
armor = 100,
collisionbox = {-0.1, -0.01, -0.1, 0.1, 0.2, 0.1},
visual = "mesh",
mesh = "Dragonfly.b3d",
visual_size = {x = 1.0, y = 1.0},
textures = {
{"texturedragonfly.png"},
},
sounds = {
random = "animalworld_dragonfly",
},
makes_footstep_sound = false,
walk_velocity = 5,
run_velocity = 7,
walk_chance = 15,
fall_speed = 0,
jump = true,
jump_height = 6,
stepheight = 3,
fly = true,
drops = {
},
water_damage = 4,
lava_damage = 4,
light_damage = 0,
fear_height = 0,
animation = {
speed_normal = 150,
stand_start = 0,
stand_end = 100,
walk_start = 100,
walk_end = 200,
fly_start = 100, -- swim animation
fly_end = 200,
},
fly_in = {"air"},
floats = 0,
follow = {
"animalworld:termitequeen", "animalworld:ant", "animalworld:termite"
},
view_range = 5,
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_monster then
mobs:spawn({
name = "animalworld:dragonfly",
nodes = {"air"},
neighbors = {"flowers:waterlily_waving"},
min_light = 0,
interval = 30,
active_object_count = 2,
chance = 1, -- 15000
min_height = 0,
max_height = 40,
day_toggle = true
})
end
mobs:register_egg("animalworld:dragonfly", ("Dragonfly"), "adragonfly.png")

View File

@ -9,7 +9,7 @@ stepheight = 2,
hp_min = 75,
hp_max = 120,
armor = 100,
collisionbox = {-2, -0.01, -2, 2, 2, 2},
collisionbox = {-2, -0.01, -1, 2, 2, 1},
visual = "mesh",
mesh = "Elephant.b3d",
visual_size = {x = 1.0, y = 1.0},

View File

@ -8,7 +8,7 @@ stepheight = 3,
hp_min = 5,
hp_max = 25,
armor = 100,
collisionbox = {-0.268, -0.01, -0.268, 0.268, 0.167, 0.268},
collisionbox = {-0.268, -0.01, -0.268, 0.268, 0.25, 0.268},
visual = "mesh",
mesh = "Frog.b3d",
drawtype = "front",
@ -22,7 +22,7 @@ sounds = {
walk_velocity = 2,
run_velocity = 3,
runaway = true,
runaway_from = {"animalworld:bear", "animalworld:crocodile", "animalworld:tiger", "animalworld:spider", "animalworld:spidermale", "animalworld:shark", "animalworld:hyena", "animalworld:kobra", "animalworld:monitor", "animalworld:snowleopard", "animalworld:volverine", "livingfloatlands:deinotherium", "livingfloatlands:carnotaurus", "livingfloatlands:lycaenops", "livingfloatlands:smilodon", "livingfloatlands:tyrannosaurus", "livingfloatlands:velociraptor", "player"},
runaway_from = {"animalworld:bear", "animalworld:crocodile", "animalworld:tiger", "animalworld:spider", "animalworld:spidermale", "animalworld:shark", "animalworld:hyena", "animalworld:kobra", "animalworld:monitor", "animalworld:snowleopard", "animalworld:volverine", "livingfloatlands:deinotherium", "livingfloatlands:carnotaurus", "livingfloatlands:lycaenops", "livingfloatlands:smilodon", "livingfloatlands:tyrannosaurus", "livingfloatlands:velociraptor", "animalworld:divingbeetle", "animalworld:scorpion", "player"},
jump = true,
jump_height = 6,
drops = {
@ -43,7 +43,7 @@ sounds = {
},
fly_in = {"default:water_source", "default:river_water_source", "default:water_flowing", "default:river_water_flowing"},
floats = 0,
follow = {"fishing:bait:worm", "ethereal:worm"},
follow = {"fishing:bait:worm", "ethereal:worm", "animalworld:ant", "animalworld:termite"},
view_range = 6,
on_rightclick = function(self, clicker)

View File

@ -25,7 +25,7 @@ mobs:register_mob("animalworld:gnu", {
walk_velocity = 1,
run_velocity = 4,
runaway = true,
runaway_from = {"animalworld:bear", "animalworld:crocodile", "animalworld:tiger", "animalworld:spider", "animalworld:spidermale", "animalworld:shark", "animalworld:hyena", "animalworld:kobra", "animalworld:monitor", "animalworld:snowleopard", "animalworld:volverine", "livingfloatlands:deinotherium", "livingfloatlands:carnotaurus", "livingfloatlands:lycaenops", "livingfloatlands:smilodon", "livingfloatlands:tyrannosaurus", "livingfloatlands:velociraptor", "player"},
runaway_from = {"animalworld:bear", "animalworld:crocodile", "animalworld:tiger", "animalworld:spider", "animalworld:spidermale", "animalworld:shark", "animalworld:hyena", "animalworld:kobra", "animalworld:monitor", "animalworld:snowleopard", "animalworld:volverine", "livingfloatlands:deinotherium", "livingfloatlands:carnotaurus", "livingfloatlands:lycaenops", "livingfloatlands:smilodon", "livingfloatlands:tyrannosaurus", "livingfloatlands:velociraptor", "animalworld:divingbeetle", "animalworld:scorpion", "player"},
jump = false,
jump_height = 3,
pushable = true,

80
goby.lua Normal file
View File

@ -0,0 +1,80 @@
mobs:register_mob("animalworld:goby", {
stepheight = 0.0,
type = "animal",
passive = true,
attack_type = "dogfight",
attack_animals = false,
reach = 1,
damage = 0,
hp_min = 5,
hp_max = 5,
armor = 100,
collisionbox = {-0.2, -0.01, -0.2, 0.2, 0.2, 0.2},
visual = "mesh",
mesh = "Goby.b3d",
visual_size = {x = 1.0, y = 1.0},
textures = {
{"texturegoby.png"},
},
sounds = {},
makes_footstep_sound = false,
walk_velocity = 0.5,
run_velocity = 1,
fly = true,
fly_in = "default:water_source", "default:river_water_source", "default:water_flowing", "default:river_water_flowing",
fall_speed = 0,
runaway = true,
runaway_from = {"animalworld:bear", "animalworld:crocodile", "animalworld:tiger", "animalworld:spider", "animalworld:spidermale", "animalworld:shark", "animalworld:hyena", "animalworld:kobra", "animalworld:monitor", "animalworld:snowleopard", "animalworld:volverine", "livingfloatlands:deinotherium", "livingfloatlands:carnotaurus", "livingfloatlands:lycaenops", "livingfloatlands:smilodon", "livingfloatlands:tyrannosaurus", "livingfloatlands:velociraptor", "animalworld:divingbeetle", "animalworld:divingbeetle", "animalworld:scorpion", "player"},
jump = false,
stepheight = 0.0,
drops = {
{name = "animalworld: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 = 200,
stand_start = 0,
stand_end = 100,
walk_start = 100,
walk_end = 200,
fly_start = 100, -- swim animation
fly_end = 200,
-- 50-70 is slide/water idle
},
fly_in = {"default:water_source", "default:river_water_source", "default:water_flowing", "default:river_water_flowing"},
floats = 0,
follow = {
"ethereal:worm", "seaweed", "fishing:bait_worm",
"animalworld:ant", "animalworld:termite", "animalworld:fishfood"
},
view_range = 5,
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 = "animalworld:goby",
nodes = {"default:water_source"}, {"default:river_water_source"},
neighbors = {"default:coral_cyan"}, {"default:coral_green"}, {"default:coral_pink"},
min_light = 0,
interval = 30,
chance = 2, -- 15000
active_object_count = 4,
min_height = -15,
max_height = 30,
})
end
mobs:register_egg("animalworld:goby", ("Goby"), "agoby.png")

78
goldenmole.lua Normal file
View File

@ -0,0 +1,78 @@
mobs:register_mob("animalworld:goldenmole", {
type = "animal",
stepheight = 1,
passive = true,
attack_type = "dogfight",
attack_npcs = false,
group_attack = true,
reach = 1,
damage = 0,
hp_min = 35,
hp_max = 135,
armor = 100,
collisionbox = {-0.3, -0.01, -0.3, 0.3, 0.3, 0.3},
visual = "mesh",
mesh = "Goldenmole.b3d",
textures = {
{"texturegoldenmole.png"},
},
makes_footstep_sound = true,
sounds = {
random = "animalworld_goldenmole",
},
walk_velocity = 1,
run_velocity = 3,
runaway_from = {"animalworld:bear", "animalworld:crocodile", "animalworld:tiger", "animalworld:spider", "animalworld:spidermale", "animalworld:shark", "animalworld:hyena", "animalworld:kobra", "animalworld:monitor", "animalworld:snowleopard", "animalworld:volverine", "livingfloatlands:deinotherium", "livingfloatlands:carnotaurus", "livingfloatlands:lycaenops", "livingfloatlands:smilodon", "livingfloatlands:tyrannosaurus", "livingfloatlands:velociraptor", "animalworld:divingbeetle", "animalworld:divingbeetle", "animalworld:scorpion"},
jump = false,
jump_height = 6,
pushable = true,
drops = {
{name = "mobs:meat_raw", chance = 1, min = 1, max = 3},
},
water_damage = 5,
lava_damage = 5,
light_damage = 0,
fear_height = 1,
animation = {
stand_start = 100,
stand_end = 300,
stand_speed = 100,
walk_start = 0,
walk_end = 100,
walk_speed = 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,
},
follow = {"fishing:bait:worm", "bees:frame_full", "ethereal:worm", "animalworld:ant", "animalworld:termite"},
view_range = 10,
})
if not mobs.custom_spawn_animal then
mobs:spawn({
name = "animalworld:goldenmole",
nodes = {"default:desert_sand"},
min_light = 14,
interval = 60,
chance = 8000, -- 15000
active_object_count = 2,
min_height = 10,
max_height = 55,
})
end
mobs:register_egg("animalworld:goldenmole", ("Golden Mole"), "agoldenmole.png")
mobs:alias_mob("animalworld:goldenmole", "animalworld:goldenmole") -- compatibility

View File

@ -6,7 +6,7 @@ stepheight = 1,
hp_min = 15,
hp_max = 40,
armor = 100,
collisionbox = {-0.268, -0.01, -0.268, 0.268, 0.167, 0.268},
collisionbox = {-0.268, -0.01, -0.268, 0.268, 0.5, 0.268},
visual = "mesh",
mesh = "Hare.b3d",
drawtype = "front",
@ -20,7 +20,7 @@ stepheight = 1,
walk_velocity = 3,
run_velocity = 6,
runaway = true,
runaway_from = {"animalworld:bear", "animalworld:crocodile", "animalworld:tiger", "animalworld:spider", "animalworld:spidermale", "animalworld:shark", "animalworld:hyena", "animalworld:kobra", "animalworld:monitor", "animalworld:snowleopard", "animalworld:volverine", "livingfloatlands:deinotherium", "livingfloatlands:carnotaurus", "livingfloatlands:lycaenops", "livingfloatlands:smilodon", "livingfloatlands:tyrannosaurus", "livingfloatlands:velociraptor", "player"},
runaway_from = {"animalworld:bear", "animalworld:crocodile", "animalworld:tiger", "animalworld:spider", "animalworld:spidermale", "animalworld:shark", "animalworld:hyena", "animalworld:kobra", "animalworld:monitor", "animalworld:snowleopard", "animalworld:volverine", "livingfloatlands:deinotherium", "livingfloatlands:carnotaurus", "livingfloatlands:lycaenops", "livingfloatlands:smilodon", "livingfloatlands:tyrannosaurus", "livingfloatlands:velociraptor", "animalworld:divingbeetle", "animalworld:scorpion", "player"},
jump = true,
jump_height = 6,
drops = {

View File

@ -11,10 +11,10 @@ stepheight = 1,
armor = 100,
collisionbox = {-1.4, -0.01, -1.4, 1.4, 1.4, 1.4},
visual = "mesh",
mesh = "Hippo2.b3d",
mesh = "HippoNEW.b3d",
visual_size = {x = 1.0, y = 1.0},
textures = {
{"texturehippo.png"},
{"texturehippoNEW.png"},
},
sounds = {
random = "animalworld_hippo",
@ -38,12 +38,15 @@ stepheight = 1,
speed_normal = 50,
stand_start = 0,
stand_end = 100,
walk_start = 250,
walk_end = 350,
fly_start = 250, -- swim animation
fly_end = 350,
punch_start = 100,
punch_end = 200,
stand_start = 100,
stand_end = 200,
walk_start = 300,
walk_end = 400,
fly_start = 300, -- swim animation
fly_end = 4000,
punch_speed = 100,
punch_start = 200,
punch_end = 300,
-- 50-70 is slide/water idle
},

View File

@ -53,4 +53,22 @@ hunger_ng.add_hunger_data('animalworld:egg', {
hunger_ng.add_hunger_data('animalworld:cheese', {
satiates = 2.0,
})
hunger_ng.add_hunger_data('animalworld:anteggs_raw', {
satiates = 1.0,
})
hunger_ng.add_hunger_data('animalworld:anteggs_cooked', {
satiates = 2.0,
})
hunger_ng.add_hunger_data('animalworld:termitequeen', {
satiates = 1.0,
})
hunger_ng.add_hunger_data('animalworld:escargots', {
satiates = 5.0,
})
hunger_ng.add_hunger_data('animalworld:locust_roasted', {
satiates = 1.0,
})
hunger_ng.add_hunger_data('animalworld:bugice', {
satiates = 1.0,
})
end

View File

@ -2,7 +2,7 @@
-- Load support for intllib.
local path = minetest.get_modpath(minetest.get_current_modname()) .. "/"
local S = minetest.get_translator and minetest.get_translator("wildlife") or
local S = minetest.get_translator and minetest.get_translator("animalworld") or
dofile(path .. "intllib.lua")
mobs.intllib = S
@ -58,10 +58,27 @@ dofile(path .. "lobster.lua") --
dofile(path .. "squid.lua") --
dofile(path .. "kobra.lua") --
dofile(path .. "bat.lua") --
dofile(path .. "ant.lua") --
dofile(path .. "termite.lua") --
dofile(path .. "wasp.lua") --
dofile(path .. "snail.lua") --
dofile(path .. "locust.lua") --
dofile(path .. "dragonfly.lua") --
dofile(path .. "nymph.lua") --
dofile(path .. "divingbeetle.lua") --
dofile(path .. "olm.lua") --
dofile(path .. "goldenmole.lua") --
dofile(path .. "scorpion.lua") --
dofile(path .. "goby.lua") --
dofile(path .. "treelobster.lua") --
dofile(path .. "notoptera.lua") --
dofile(path .. "seahorse.lua") --
dofile(path .. "hunger.lua") --
-- Load custom spawning
if mobs.custom_spawn_animal then
dofile(path .. "spawn.lua")

View File

@ -22,7 +22,7 @@ mobs:register_mob("animalworld:kangaroo", {
walk_velocity = 5,
run_velocity = 5,
runaway = true,
runaway_from = {"animalworld:bear", "animalworld:crocodile", "animalworld:tiger", "animalworld:spider", "animalworld:spidermale", "animalworld:shark", "animalworld:hyena", "animalworld:kobra", "animalworld:monitor", "animalworld:snowleopard", "animalworld:volverine", "livingfloatlands:deinotherium", "livingfloatlands:carnotaurus", "livingfloatlands:lycaenops", "livingfloatlands:smilodon", "livingfloatlands:tyrannosaurus", "livingfloatlands:velociraptor", "player"},
runaway_from = {"animalworld:bear", "animalworld:crocodile", "animalworld:tiger", "animalworld:spider", "animalworld:spidermale", "animalworld:shark", "animalworld:hyena", "animalworld:kobra", "animalworld:monitor", "animalworld:snowleopard", "animalworld:volverine", "livingfloatlands:deinotherium", "livingfloatlands:carnotaurus", "livingfloatlands:lycaenops", "livingfloatlands:smilodon", "livingfloatlands:tyrannosaurus", "livingfloatlands:velociraptor", "animalworld:divingbeetle", "animalworld:scorpion", "player"},
jump = true,
jump_height = 8,
pushable = true,

View File

@ -11,7 +11,7 @@ mobs:register_mob("animalworld:lobster", {
hp_min = 25,
hp_max = 70,
armor = 100,
collisionbox = {-0.6, -0.01, -0.6, 0.6, 0.95, 0.6},
collisionbox = {-0.6, -0.01, -0.6, 0.6, 0.5, 0.6},
visual = "mesh",
mesh = "Lobster.b3d",
textures = {
@ -23,7 +23,7 @@ mobs:register_mob("animalworld:lobster", {
walk_velocity = 0.5,
run_velocity = 1,
runaway = true,
runaway_from = {"animalworld:bear", "animalworld:crocodile", "animalworld:tiger", "animalworld:spider", "animalworld:spidermale", "animalworld:shark", "animalworld:hyena", "animalworld:kobra", "animalworld:monitor", "animalworld:snowleopard", "animalworld:volverine", "livingfloatlands:deinotherium", "livingfloatlands:carnotaurus", "livingfloatlands:lycaenops", "livingfloatlands:smilodon", "livingfloatlands:tyrannosaurus", "livingfloatlands:velociraptor", "player"},
runaway_from = {"animalworld:bear", "animalworld:crocodile", "animalworld:tiger", "animalworld:spider", "animalworld:spidermale", "animalworld:shark", "animalworld:hyena", "animalworld:kobra", "animalworld:monitor", "animalworld:snowleopard", "animalworld:volverine", "livingfloatlands:deinotherium", "livingfloatlands:carnotaurus", "livingfloatlands:lycaenops", "livingfloatlands:smilodon", "livingfloatlands:tyrannosaurus", "livingfloatlands:velociraptor", "animalworld:divingbeetle", "animalworld:scorpion", "player"},
jump = false,
jump_height = 3,
pushable = true,

99
locust.lua Normal file
View File

@ -0,0 +1,99 @@
mobs:register_mob("animalworld:locust", {
stepheight = 3,
type = "animal",
passive = true,
attack_type = "dogfight",
attack_animals = false,
reach = 2,
damage = 0,
hp_min = 5,
hp_max = 20,
armor = 100,
collisionbox = {-0.1, -0.01, -0.1, 0.1, 0.2, 0.1},
visual = "mesh",
mesh = "Locust.b3d",
visual_size = {x = 1.0, y = 1.0},
textures = {
{"texturelocust.png"},
},
sounds = {
random = "animalworld_locust",
distance = 16,
},
makes_footstep_sound = false,
walk_velocity = 3,
walk_chance = 15,
run_velocity = 4,
runaway = true,
runaway_from = {"animalworld:bear", "animalworld:crocodile", "animalworld:tiger", "animalworld:spider", "animalworld:spidermale", "animalworld:shark", "animalworld:hyena", "animalworld:kobra", "animalworld:monitor", "animalworld:snowleopard", "animalworld:volverine", "livingfloatlands:deinotherium", "livingfloatlands:carnotaurus", "livingfloatlands:lycaenops", "livingfloatlands:smilodon", "livingfloatlands:tyrannosaurus", "livingfloatlands:velociraptor", "animalworld:divingbeetle", "animalworld:scorpion", "player"},
jump = true,
jump_height = 6,
stepheight = 3,
drops = {
{name = "animalworld:locust", chance = 1, min = 1, max = 1},
},
water_damage = 1,
lava_damage = 4,
light_damage = 0,
fear_height = 10,
animation = {
speed_normal = 100,
stand_start = 0,
stand_end = 100,
stand2_start = 0,
stand2_end = 1,
walk_start = 100,
walk_end = 200,
fly_start = 250, -- swim animation
fly_end = 350,
},
fly_in = {"air"},
floats = 0,
follow = {"default:dry_shrub ", "default:grass_1", "ethereal:dry_shrub", "farming:seed_wheat", "farming:seed_rye", "default:junglegrass", "ethereal:banana_single", "farming:corn_cob", "farming:cabbage",
"default:apple", "farming:cabbage", "farming:carrot", "farming:cucumber", "farming:grapes", "farming:pineapple", "ethereal:orange", "ethereal:coconut", "ethereal:coconut_slice"},
view_range = 4,
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 = "animalworld:locust",
nodes = {"default:dry_dirt_with_dry_grass", "ethereal:prairie_dirt"},
min_light = 0,
interval = 60,
chance = 8000, -- 15000
active_object_count = 2,
min_height = 10,
max_height = 75,
day_toggle = true,
})
end
mobs:register_egg("animalworld:locust", ("Locust"), "alocust.png")
minetest.register_craftitem(":animalworld:locust_roasted", {
description = ("Roasted Locust"),
inventory_image = "animalworld_locust_roasted.png",
on_use = minetest.item_eat(8),
groups = {food_meat = 1, flammable = 2},
})
minetest.register_craft({
type = "cooking",
output = "animalworld:locust_roasted",
recipe = "animalworld:locust",
cooktime = 2,
})

View File

@ -24,7 +24,7 @@ stepheight = 0.0,
fly_in = "default:water_source", "default:river_water_source", "default:water_flowing", "default:river_water_flowing",
fall_speed = 0,
runaway = true,
runaway_from = {"animalworld:bear", "animalworld:crocodile", "animalworld:tiger", "animalworld:spider", "animalworld:spidermale", "animalworld:shark", "animalworld:hyena", "animalworld:kobra", "animalworld:monitor", "animalworld:snowleopard", "animalworld:volverine", "livingfloatlands:deinotherium", "livingfloatlands:carnotaurus", "livingfloatlands:lycaenops", "livingfloatlands:smilodon", "livingfloatlands:tyrannosaurus", "livingfloatlands:velociraptor", "player"},
runaway_from = {"animalworld:bear", "animalworld:crocodile", "animalworld:tiger", "animalworld:spider", "animalworld:spidermale", "animalworld:shark", "animalworld:hyena", "animalworld:kobra", "animalworld:monitor", "animalworld:snowleopard", "animalworld:volverine", "livingfloatlands:deinotherium", "livingfloatlands:carnotaurus", "livingfloatlands:lycaenops", "livingfloatlands:smilodon", "livingfloatlands:tyrannosaurus", "livingfloatlands:velociraptor", "animalworld:divingbeetle", "animalworld:scorpion", "player"},
jump = false,
stepheight = 0.0,
drops = {

View File

@ -1 +1 @@
name = animalworld
name = animalworld

View File

@ -11,7 +11,7 @@ mobs:register_mob("animalworld:moose", {
hp_min = 25,
hp_max = 60,
armor = 100,
collisionbox = {-0.6, -0.01, -0.6, 0.6, 0.95, 0.6},
collisionbox = {-0.7, -0.01, -0.6, 0.9, 1.7, 0.6},
visual = "mesh",
mesh = "Moose.b3d",
textures = {
@ -25,7 +25,7 @@ mobs:register_mob("animalworld:moose", {
walk_velocity = 1,
run_velocity = 3,
runaway = true,
runaway_from = {"animalworld:bear", "animalworld:crocodile", "animalworld:tiger", "animalworld:spider", "animalworld:spidermale", "animalworld:shark", "animalworld:hyena", "animalworld:kobra", "animalworld:monitor", "animalworld:snowleopard", "animalworld:volverine", "livingfloatlands:deinotherium", "livingfloatlands:carnotaurus", "livingfloatlands:lycaenops", "livingfloatlands:smilodon", "livingfloatlands:tyrannosaurus", "livingfloatlands:velociraptor"},
runaway_from = {"animalworld:bear", "animalworld:crocodile", "animalworld:tiger", "animalworld:spider", "animalworld:spidermale", "animalworld:shark", "animalworld:hyena", "animalworld:kobra", "animalworld:monitor", "animalworld:snowleopard", "animalworld:volverine", "livingfloatlands:deinotherium", "livingfloatlands:carnotaurus", "livingfloatlands:lycaenops", "livingfloatlands:smilodon", "livingfloatlands:tyrannosaurus", "livingfloatlands:velociraptor", "animalworld:divingbeetle", "animalworld:scorpion"},
jump = false,
jump_height = 3,
pushable = true,

View File

@ -26,7 +26,7 @@ stepheight = 1,
walk_velocity = 0.7,
run_velocity = 3,
runaway = true,
runaway_from = {"animalworld:bear", "animalworld:crocodile", "animalworld:tiger", "animalworld:spider", "animalworld:spidermale", "animalworld:shark", "animalworld:hyena", "animalworld:kobra", "animalworld:monitor", "animalworld:snowleopard", "animalworld:volverine", "livingfloatlands:deinotherium", "livingfloatlands:carnotaurus", "livingfloatlands:lycaenops", "livingfloatlands:smilodon", "livingfloatlands:tyrannosaurus", "livingfloatlands:velociraptor"},
runaway_from = {"animalworld:bear", "animalworld:crocodile", "animalworld:tiger", "animalworld:spider", "animalworld:spidermale", "animalworld:shark", "animalworld:hyena", "animalworld:kobra", "animalworld:monitor", "animalworld:snowleopard", "animalworld:volverine", "livingfloatlands:deinotherium", "livingfloatlands:carnotaurus", "livingfloatlands:lycaenops", "livingfloatlands:smilodon", "livingfloatlands:tyrannosaurus", "livingfloatlands:velociraptor", "animalworld:divingbeetle", "animalworld:scorpion"},
drops = {
{name = "animalworld:chicken_raw", chance = 1, min = 1, max = 1},
{name = "animalworld:chicken_feather", chance = 1, min = 0, max = 2},

99
notoptera.lua Normal file
View File

@ -0,0 +1,99 @@
mobs:register_mob("animalworld:notoptera", {
stepheight = 2,
type = "animal",
passive = true,
attack_type = "dogfight",
group_attack = true,
owner_loyal = true,
reach = 2,
damage = 1,
hp_min = 20,
hp_max = 35,
armor = 100,
collisionbox = {-0.3, -0.01, -0.2, 0.3, 0.3, 0.2},
visual = "mesh",
mesh = "Notoptera.b3d",
textures = {
{"texturenotoptera.png"},
},
makes_footstep_sound = true,
sounds = {
},
walk_velocity = 0.5,
run_velocity = 1,
walk_chance = 50,
runaway = true,
runaway_from = {"animalworld:bear", "animalworld:crocodile", "animalworld:tiger", "animalworld:spider", "animalworld:spidermale", "animalworld:shark", "animalworld:hyena", "animalworld:kobra", "animalworld:monitor", "animalworld:snowleopard", "animalworld:volverine", "livingfloatlands:deinotherium", "livingfloatlands:carnotaurus", "livingfloatlands:lycaenops", "livingfloatlands:smilodon", "livingfloatlands:tyrannosaurus", "livingfloatlands:velociraptor", "animalworld:divingbeetle", "animalworld:scorpion", "player"},
jump = true,
jump_height = 6,
pushable = true,
follow = {"default:junglegrass", "default:dry_shrub", "default:blueberry_bush_leaves", "default:grass", "farming:cabbage_6", "farming:lettuce_5", "farming:beetroot_5", "flowers:dandelion_yellow"},
view_range = 5,
drops = {
{name = "animalworld:notoptera", chance = 1, min = 1, max = 1},
},
floats = 0,
water_damage = 2,
lava_damage = 5,
air_damage = 0,
light_damage = 0,
fear_height = 2,
animation = {
speed_normal = 100,
stand_start = 0,
stand_end = 100,
stand2_start = 100,
stan2d_end = 200,
walk_start = 200,
walk_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,
})
if not mobs.custom_spawn_animal then
mobs:spawn({
name = "animalworld:notoptera",
nodes = {"default:permafrost", "default:permafrost_with_moss"},
min_light = 0,
interval = 30,
chance = 100, -- 15000
active_object_count = 4,
min_height = 5,
max_height = 60,
day_toggle = true,
})
end
mobs:register_egg("animalworld:notoptera", ("Notoptera"), "anotoptera.png")
mobs:alias_mob("animalworld:notoptera", "animalworld:notoptera") -- compatibility
minetest.register_craftitem(":animalworld:bugice", {
description = ("Bug on Ice"),
inventory_image = "animalworld_bugice.png",
on_use = minetest.item_eat(2),
groups = {food_meat_raw = 1, flammable = 2},
})
minetest.register_craft({
output = "animalworld:bugice",
type = "shapeless",
recipe =
{"animalworld:notoptera", "default:snow"}
})

87
nymph.lua Normal file
View File

@ -0,0 +1,87 @@
mobs:register_mob("animalworld:nymph", {
stepheight = 1,
type = "animal",
passive = true,
attack_type = "dogfight",
group_attack = true,
owner_loyal = true,
attack_npcs = false,
reach = 2,
damage = 0,
hp_min = 5,
hp_max = 15,
armor = 100,
collisionbox = {-0.3, -0.01, -0.3, 0.3, 0.3, 0.3},
visual = "mesh",
mesh = "Nymph.b3d",
textures = {
{"texturenymph.png"},
},
makes_footstep_sound = false,
sounds = {
},
walk_velocity = 0.6,
run_velocity = 2,
runaway = true,
runaway_from = {"animalworld:bear", "animalworld:crocodile", "animalworld:tiger", "animalworld:spider", "animalworld:spidermale", "animalworld:shark", "animalworld:hyena", "animalworld:kobra", "animalworld:monitor", "animalworld:snowleopard", "animalworld:volverine", "livingfloatlands:deinotherium", "livingfloatlands:carnotaurus", "livingfloatlands:lycaenops", "livingfloatlands:smilodon", "livingfloatlands:tyrannosaurus", "livingfloatlands:velociraptor", "animalworld:divingbeetle", "animalworld:scorpion", "player"},
jump = false,
jump_height = 3,
pushable = true,
view_range = 6,
drops = {
{name = "animalworld:fishfood", chance = 1, min = 0, max = 2},
},
fly_in = {"default:water_source", "default:river_water_source", "default:water_flowing", "default:river_water_flowing"},
floats = 0,
follow = {
},
water_damage = 0,
lava_damage = 5,
air_damage = 1,
light_damage = 0,
fear_height = 2,
animation = {
speed_normal = 100,
stand_start = 0,
stand_end = 100,
walk_start = 100,
walk_end = 200,
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,
})
if not mobs.custom_spawn_animal then
mobs:spawn({
name = "animalworld:nymph",
nodes = {"default:water_source", "default:river_water_source"},
neighbors = {"flowers:waterlily_waving"},
min_light = 0,
interval = 30,
active_object_count = 2,
chance = 1, -- 15000
min_height = -10,
max_height = 30,
})
end
mobs:register_egg("animalworld:nymph", ("Dragonfly Nymph"), "anymph.png")
mobs:alias_mob("animalworld:nymph", "animalworld:nymph") -- compatibility
minetest.register_craftitem("animalworld:fishfood", {
description = ("Fish Food"),
inventory_image = "animalworld_fishfood.png",
})

84
olm.lua Normal file
View File

@ -0,0 +1,84 @@
mobs:register_mob("animalworld:olm", {
stepheight = 0.0,
type = "animal",
passive = true,
attack_type = "dogfight",
attack_animals = false,
reach = 1,
damage = 1,
hp_min = 10,
hp_max = 25,
armor = 100,
collisionbox = {-0.4, -0.01, -0.3, 0.4, 0.2, 0.3},
visual = "mesh",
mesh = "Olm.b3d",
visual_size = {x = 1.0, y = 1.0},
textures = {
{"textureolm.png"},
},
sounds = {},
makes_footstep_sound = false,
walk_velocity = 1,
walk_chance = 10,
run_velocity = 2,
fly = true,
fly_in = "default:water_source", "default:river_water_source", "default:water_flowing", "default:river_water_flowing",
fall_speed = 0,
runaway = true,
runaway_from = {"animalworld:bear", "animalworld:crocodile", "animalworld:tiger", "animalworld:spider", "animalworld:spidermale", "animalworld:shark", "animalworld:hyena", "animalworld:kobra", "animalworld:monitor", "animalworld:snowleopard", "animalworld:volverine", "livingfloatlands:deinotherium", "livingfloatlands:carnotaurus", "livingfloatlands:lycaenops", "livingfloatlands:smilodon", "livingfloatlands:tyrannosaurus", "livingfloatlands:velociraptor", "animalworld:divingbeetle", "animalworld:divingbeetle", "animalworld:scorpion", "player"},
jump = false,
stepheight = 0.0,
drops = {
},
water_damage = 0,
air_damage = 1,
lava_damage = 4,
light_damage = 0,
fear_height = 2,
animation = {
speed_normal = 50,
stand_start = 0,
stand_end = 100,
walk_speed = 100,
walk_start = 150,
walk_end = 250,
fly_speed = 100,
fly_start = 150, -- swim animation
fly_end = 250,
-- 50-70 is slide/water idle
},
fly_in = {"default:water_source", "default:river_water_source", "default:water_flowing", "default:river_water_flowing"},
floats = 0,
follow = {
"ethereal:worm", "seaweed", "fishing:bait_worm", "animalworld:ant", "animalworld:termite", "animalworld:fishfood"
},
view_range = 1,
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 = "animalworld:olm",
nodes = {"default:water_source", "default:river_water_source", "default:water_flowing", "default:river_water_flowing"},
neighbors = {"default:stone"},
min_light = 0,
interval = 30,
chance = 1, -- 15000
active_object_count = 2,
min_height = -500,
max_height = -25,
})
end
mobs:register_egg("animalworld:olm", ("Olm"), "aolm.png")

View File

@ -10,7 +10,7 @@ stepheight = 3,
hp_min = 5,
hp_max = 35,
armor = 100,
collisionbox = {-0.3, -0.01, -1, 0.3, 0.3, 0.3},
collisionbox = {-0.3, -0.01, -0.3, 0.3, 0.5, 0.3},
visual = "mesh",
mesh = "Owl.b3d",
visual_size = {x = 1.0, y = 1.0},

View File

@ -9,7 +9,7 @@ stepheight = 3,
hp_min = 5,
hp_max = 35,
armor = 100,
collisionbox = {-0.3, -0.01, -1, 0.3, 0.3, 0.3},
collisionbox = {-0.3, -0.01, -0.3, 0.3, 0.5, 0.3},
visual = "mesh",
mesh = "Puffin.b3d",
visual_size = {x = 1.0, y = 1.0},
@ -22,7 +22,7 @@ stepheight = 3,
walk_velocity = 5,
run_velocity = 6,
runaway = true,
runaway_from = {"animalworld:bear", "animalworld:crocodile", "animalworld:tiger", "animalworld:spider", "animalworld:spidermale", "animalworld:shark", "animalworld:hyena", "animalworld:kobra", "animalworld:monitor", "animalworld:snowleopard", "animalworld:volverine", "livingfloatlands:deinotherium", "livingfloatlands:carnotaurus", "livingfloatlands:lycaenops", "livingfloatlands:smilodon", "livingfloatlands:tyrannosaurus", "livingfloatlands:velociraptor", "player"},
runaway_from = {"animalworld:bear", "animalworld:crocodile", "animalworld:tiger", "animalworld:spider", "animalworld:spidermale", "animalworld:shark", "animalworld:hyena", "animalworld:kobra", "animalworld:monitor", "animalworld:snowleopard", "animalworld:volverine", "livingfloatlands:deinotherium", "livingfloatlands:carnotaurus", "livingfloatlands:lycaenops", "livingfloatlands:smilodon", "livingfloatlands:tyrannosaurus", "livingfloatlands:velociraptor", "animalworld:divingbeetle", "animalworld:scorpion", "player"},
fall_speed = 0,
jump = true,
jump_height = 6,

View File

@ -10,7 +10,7 @@ mobs:register_mob("animalworld:rat", {
hp_min = 5,
hp_max = 35,
armor = 100,
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1.2, 0.4},
collisionbox = {-0.4, -0.01, -0.4, 0.4, 0.6, 0.4},
visual = "mesh",
mesh = "Rat.b3d",
textures = {
@ -64,8 +64,8 @@ end
if not mobs.custom_spawn_animal then
mobs:spawn({
name = "animalworld:rat",
nodes = {"default:stone", "default:mossycobble"},
min_light = 14,
nodes = {"default:stone", "default:mossycobble", "default:dirt"},
min_light = 0,
interval = 60,
chance = 8000, -- 15000
active_object_count = 2,

View File

@ -11,7 +11,7 @@ mobs:register_mob("animalworld:reindeer", {
hp_min = 25,
hp_max = 50,
armor = 100,
collisionbox = {-0.6, -0.01, -0.6, 0.6, 0.95, 0.6},
collisionbox = {-0.5, -0.01, -0.5, 0.3, 0.95, 0.3},
visual = "mesh",
mesh = "Reindeer.b3d",
textures = {
@ -24,7 +24,7 @@ mobs:register_mob("animalworld:reindeer", {
walk_velocity = 1,
run_velocity = 3,
runaway = true,
runaway_from = {"animalworld:bear", "animalworld:crocodile", "animalworld:tiger", "animalworld:spider", "animalworld:spidermale", "animalworld:shark", "animalworld:hyena", "animalworld:kobra", "animalworld:monitor", "animalworld:snowleopard", "animalworld:volverine", "livingfloatlands:deinotherium", "livingfloatlands:carnotaurus", "livingfloatlands:lycaenops", "livingfloatlands:smilodon", "livingfloatlands:tyrannosaurus", "livingfloatlands:velociraptor", "player"},
runaway_from = {"animalworld:bear", "animalworld:crocodile", "animalworld:tiger", "animalworld:spider", "animalworld:spidermale", "animalworld:shark", "animalworld:hyena", "animalworld:kobra", "animalworld:monitor", "animalworld:snowleopard", "animalworld:volverine", "livingfloatlands:deinotherium", "livingfloatlands:carnotaurus", "livingfloatlands:lycaenops", "livingfloatlands:smilodon", "livingfloatlands:tyrannosaurus", "livingfloatlands:velociraptor", "animalworld:divingbeetle", "animalworld:scorpion", "player"},
jump = false,
jump_height = 3,
pushable = true,
@ -74,11 +74,12 @@ if not mobs.custom_spawn_animal then
mobs:spawn({
name = "animalworld:reindeer",
nodes = {"default:dirt_with_snow", "default:permafrost_with_moss", "ethereal:crystal_dirt"},
neighbors = {"default:pine_tree"},
min_light = 0,
interval = 60,
chance = 8000, -- 15000
interval = 30,
chance = 2, -- 15000
active_object_count = 4,
min_height = 20,
min_height = 16,
max_height = 80,
day_toggle = true,
})

64
scorpion.lua Normal file
View File

@ -0,0 +1,64 @@
mobs:register_mob("animalworld:scorpion", {
type = "monster",
passive = false,
attack_type = "dogfight",
attack_animals = true,
reach = 2,
damage = 10,
hp_min = 5,
hp_max = 30,
armor = 100,
collisionbox = {-0.4, -0.01, -0.4, 0.4, 0.5, 0.4},
visual = "mesh",
mesh = "Scorpion.b3d",
visual_size = {x = 1, y = 1},
textures = {
{"texturescorpion.png"},
},
sounds = {
},
makes_footstep_sound = true,
view_range = 5,
walk_velocity = 0.5,
run_velocity = 2,
runaway = false,
jump = true,
jump_height = 0,
stepheight = 3,
drops = {
{name = "animalworld:raw_athropod", chance = 1, min = 0, max = 2},
},
water_damage = 1,
lava_damage = 4,
light_damage = 0,
fear_height = 3,
animation = {
speed_normal = 75,
stand_speed = 50,
stand_start = 0,
stand_end = 100,
walk_start = 100,
walk_end = 200,
punch_speed = 100,
punch_start = 200,
punch_end = 300,
-- 50-70 is slide/water idle
},
})
if not mobs.custom_spawn_monster then
mobs:spawn({
name = "animalworld:scorpion",
nodes = {"default:desert_sand"}, {"default:desert_sandstone"}, {"default:sandstone"}, {"ethereal:dry_dirt"}, {"ethereal:fiery_dirt"},
min_light = 0,
interval = 60,
chance = 8000, -- 15000
active_object_count = 2,
min_height = -20,
max_height = 50,
day_toggle = false,
})
end
mobs:register_egg("animalworld:scorpion", ("Scorpion"), "ascorpion.png")

83
seahorse.lua Normal file
View File

@ -0,0 +1,83 @@
mobs:register_mob("animalworld:seahorse", {
stepheight = 0.0,
type = "animal",
passive = true,
attack_type = "dogfight",
attack_animals = false,
reach = 1,
damage = 0,
hp_min = 5,
hp_max = 5,
armor = 100,
collisionbox = {-0.1, 0, -0.1, 0.1, 0.6, 0.1},
visual = "mesh",
mesh = "Seahorse.b3d",
visual_size = {x = 1.0, y = 1.0},
textures = {
{"textureseahorse.png"},
{"textureseahorse2.png"},
},
sounds = {},
makes_footstep_sound = false,
walk_velocity = 0.25,
run_velocity = 0.5,
fly = true,
fly_in = "default:water_source", "default:river_water_source", "default:water_flowing", "default:river_water_flowing",
fall_speed = 0,
runaway = true,
runaway_from = {"animalworld:bear", "animalworld:crocodile", "animalworld:tiger", "animalworld:spider", "animalworld:spidermale", "animalworld:shark", "animalworld:hyena", "animalworld:kobra", "animalworld:monitor", "animalworld:snowleopard", "animalworld:volverine", "livingfloatlands:deinotherium", "livingfloatlands:carnotaurus", "livingfloatlands:lycaenops", "livingfloatlands:smilodon", "livingfloatlands:tyrannosaurus", "livingfloatlands:velociraptor", "animalworld:divingbeetle", "animalworld:divingbeetle", "animalworld:scorpion", "player"},
jump = false,
stepheight = 0.0,
drops = {
},
water_damage = 0,
air_damage = 1,
lava_damage = 4,
light_damage = 0,
fear_height = 2,
animation = {
speed_normal = 50,
stand_start = 0,
stand_end = 100,
stand2_start = 0,
stand2_end = 1,
walk_start = 100,
walk_end = 200,
walk_speed = 30,
fly_speed = 30,
fly_start = 100, -- swim animation
fly_end = 200,
-- 50-70 is slide/water idle
},
fly_in = {"default:water_source", "default:river_water_source", "default:water_flowing", "default:river_water_flowing"},
floats = 0,
follow = {
"animalworld:fishfood"
},
view_range = 5,
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 = "animalworld:seahorse",
nodes = {"default:water_source"},
neighbors = {"default:sand_with_kelp"},
min_light = 0,
interval = 30,
chance = 2, -- 15000
active_object_count = 4,
min_height = -15,
max_height = 0,
})
end
mobs:register_egg("animalworld:seahorse", ("Seahorse"), "aseahorse.png")

View File

@ -6,7 +6,7 @@ stepheight = 0.6,
hp_min = 20,
hp_max = 55,
armor = 100,
collisionbox = {-0.4, -0.01, -0.4, 0.4, 0.95, 0.4},
collisionbox = {-0.4, -0.01, -0.4, 0.8, 0.6, 0.4},
visual = "mesh",
mesh = "Seal.b3d",
visual_size = {x = 1.0, y = 1.0},
@ -22,7 +22,7 @@ stepheight = 0.6,
run_velocity = 1,
runaway = true,
runaway = true,
runaway_from = {"animalworld:bear", "animalworld:crocodile", "animalworld:tiger", "animalworld:spider", "animalworld:spidermale", "animalworld:shark", "animalworld:hyena", "animalworld:kobra", "animalworld:monitor", "animalworld:snowleopard", "animalworld:volverine", "livingfloatlands:deinotherium", "livingfloatlands:carnotaurus", "livingfloatlands:lycaenops", "livingfloatlands:smilodon", "livingfloatlands:tyrannosaurus", "livingfloatlands:velociraptor"},
runaway_from = {"animalworld:bear", "animalworld:crocodile", "animalworld:tiger", "animalworld:spider", "animalworld:spidermale", "animalworld:shark", "animalworld:hyena", "animalworld:kobra", "animalworld:monitor", "animalworld:snowleopard", "animalworld:volverine", "livingfloatlands:deinotherium", "livingfloatlands:carnotaurus", "livingfloatlands:lycaenops", "livingfloatlands:smilodon", "livingfloatlands:tyrannosaurus", "livingfloatlands:velociraptor", "animalworld:divingbeetle", "animalworld:scorpion"},
jump = false,
stepheight = 1.1,
drops = {

96
snail.lua Normal file
View File

@ -0,0 +1,96 @@
mobs:register_mob("animalworld:snail", {
stepheight = 3,
type = "animal",
passive = true,
attack_type = "dogfight",
group_attack = true,
owner_loyal = true,
attack_npcs = false,
reach = 2,
damage = 0,
hp_min = 10,
hp_max = 20,
armor = 100,
collisionbox = {-0.2, -0.01, -0.2, 0.2, 0.3, 0.2},
visual = "mesh",
mesh = "Snail.b3d",
textures = {
{"texturesnail.png"},
},
makes_footstep_sound = true,
sounds = {
},
walk_velocity = 0.2,
run_velocity = 0.4,
runaway = false,
jump = false,
jump_height = 3,
pushable = true,
follow = {"default:apple", "default:dry_dirt_with_dry_grass", "farming:seed_wheat", "default:junglegrass", "farming:seed_oat", "default:kelp", "seaweed", "xocean:kelp",
"default:grass", "farming:cucumber", "farming:cabbage", "xocean:seagrass", "farming:lettuce", "default:junglegrass"},
view_range = 5,
drops = {
{name = "animalworld:snail", chance = 1, min = 1, max = 1},
},
water_damage = 0,
lava_damage = 5,
light_damage = 0,
fear_height = 3,
animation = {
speed_normal = 25,
stand_start = 0,
stand_end = 100,
walk_start = 100,
walk_end = 200,
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, 30, 50, 80, false, nil) then return end
end,
})
if not mobs.custom_spawn_animal then
mobs:spawn({
name = "animalworld:snail",
nodes = {"default:dirt_with_grass"},
neighbors = {"farming:cucumber", "farming:cabbage_6", "farming:lettuce_5", "farming:beetroot_5", "flowers:dandelion_yellow"},
min_light = 0,
interval = 30,
chance = 1, -- 15000
active_object_count = 3,
min_height = 6,
max_height = 40,
})
end
mobs:register_egg("animalworld:snail", ("Snail"), "asnail.png")
mobs:alias_mob("animalworld:snail", "animalworld:snail") -- compatibility
minetest.register_craftitem(":animalworld:escargots", {
description = ("Escargots"),
inventory_image = "animalworld_escargots.png",
on_use = minetest.item_eat(2),
groups = {food_meat_raw = 1, flammable = 2},
})
minetest.register_craft({
output = "animalworld:escargots",
type = "shapeless",
recipe =
{"animalworld:snail", "farming:garlic_clove", "animalworld:butter", "farming:bread"}
})

View File

@ -12,7 +12,7 @@ stepheight = 4,
hp_min = 10,
hp_max = 35,
armor = 100,
collisionbox = {-0.5, -0.01, -0.5, 0.5, 0.95, 0.5},
collisionbox = {-0.5, -0.01, -0.5, 0.5, 0.5, 0.5},
visual = "mesh",
mesh = "Spider.b3d",
visual_size = {x = 0.3, y = 0.3},

View File

@ -10,7 +10,7 @@ stepheight = 4,
hp_min = 5,
hp_max = 30,
armor = 100,
collisionbox = {-0.5, -0.01, -0.5, 0.5, 0.95, 0.5},
collisionbox = {-0.3, -0.01, -0.3, 0.3, 0.3, 0.3},
visual = "mesh",
mesh = "Spider.b3d",
visual_size = {x = 0.1, y = 0.1},

View File

@ -9,7 +9,7 @@ stepheight = 0.0,
hp_min = 10,
hp_max = 40,
armor = 100,
collisionbox = {-0.7, -0.01, -0.7, 0.7, 0.95, 0.7},
collisionbox = {-0.7, -0.01, -0.7, 0.7, 0.6, 0.7},
visual = "mesh",
mesh = "Squid.b3d",
visual_size = {x = 1.0, y = 1.0},

265
termite.lua Normal file
View File

@ -0,0 +1,265 @@
mobs:register_mob("animalworld:termite", {
type = "monster",
passive = false,
attack_type = "dogfight",
reach = 1,
damage = 1,
hp_min = 1,
hp_max = 10,
armor = 100,
collisionbox = {-0.1, -0.01, -0.1, 0.1, 0.1, 0.1},
visual = "mesh",
mesh = "Termite.b3d",
visual_size = {x = 1, y = 1},
textures = {
{"texturetermite.png"},
},
sounds = {
random = "animalworld_termite",
attack = "animalworld_termite",
},
makes_footstep_sound = true,
stay_near = {"animalworld:termitemould", 5},
view_range = 3,
walk_velocity = 0.5,
walk_chance = 70,
run_velocity = 0.7,
runaway = false,
jump = false,
jump_height = 0,
stepheight = 3,
drops = {
{name = "animalworld:termite", chance = 1, min = 1, max = 1},
},
water_damage = 1,
lava_damage = 4,
light_damage = 0,
fear_height = 3,
animation = {
speed_normal = 200,
stand_start = 0,
stand_end = 0,
walk_start = 0,
walk_end = 100,
punch_start = 100,
punch_end = 200,
-- 50-70 is slide/water idle
},
})
if not mobs.custom_spawn_monster then
mobs:spawn({
name = "animalworld:termite",
nodes = {"default:dry_dirt_with_dry_grass"},
neighbors = {"animalworld:termitemould"},
min_light = 0,
interval = 30,
chance = 1, -- 15000
active_object_count = 7,
min_height = 0,
max_height = 50,
})
end
mobs:register_egg("animalworld:termite", ("Termite"), "atermite.png")
mobs:alias_mob("animalworld:termite", "animalworld:Termite")
minetest.register_craftitem(":animalworld:termitequeen", {
description = ("Termite Queen"),
inventory_image = "animalworld_termitequeen.png",
on_use = minetest.item_eat(2),
groups = {food_meat_raw = 1, flammable = 2},
})
minetest.register_decoration({
deco_type = "simple",
place_on = {"default:dry_dirt_with_dry_grass"},
neighbors = {"default:acacia_bush_leaves"},
sidelen = 16,
noise_params = {
offset = 0.0012,
scale = 0.0007,
spread = {x = 250, y = 250, z = 250},
seed = 2,
octaves = 3,
persist = 0.66
},
y_max = 50,
y_min = 0,
decoration = "animalworld:termitemould"
})
minetest.register_node("animalworld:termitemould", {
description = "Termite Mound",
visual_scale = 1,
mesh = "Termitemould.b3d",
tiles = {"texturetermitemould.png"},
inventory_image = "atermitemould.png",
paramtype = "light",
paramtype2 = "facedir",
groups = {choppy = 3},
drawtype = "mesh",
collision_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
--[[{-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
{-0.5, -0.5, -0.5, 0.5, 0.5, 0.5}]]
}
},
selection_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, 0.5, 0.5}
}
},
drop = "animalworld:termiteconcrete",
sounds = default.node_sound_dirt_defaults(),
})
minetest.register_node("animalworld:termiteconcrete", {
description = ("Termite Concrete"),
tiles = {"termiteconcrete.png"},
is_ground_content = false,
groups = {cracky = 3, stone = 2},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_craft({
type = "cooking",
output = "animalworld:termitequeen",
recipe = "animalworld:termiteconcrete",
})
minetest.register_node("animalworld:termiteconcreteblue", {
description = ("Termite Concrete Blue"),
tiles = {"termiteconcreteblue.png"},
is_ground_content = false,
groups = {cracky = 3, stone = 2},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_craft({
output = "animalworld:termiteconcreteblue 6",
type = "shapeless",
recipe =
{"animalworld:termiteconcrete", "flowers:geranium"}
})
minetest.register_node("animalworld:termiteconcretegreen", {
description = ("Termite Concrete Green"),
tiles = {"termiteconcretegreen.png"},
is_ground_content = false,
groups = {cracky = 3, stone = 2},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_craft({
output = "animalworld:termiteconcretegreen 6",
type = "shapeless",
recipe =
{"animalworld:termiteconcrete", "flowers:chrysanthemum_green"}
})
minetest.register_node("animalworld:termiteconcreteyellow", {
description = ("Termite Concrete Yellow"),
tiles = {"termiteconcreteyellow.png"},
is_ground_content = false,
groups = {cracky = 3, stone = 2},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_craft({
output = "animalworld:termiteconcreteyellow 6",
type = "shapeless",
recipe =
{"animalworld:termiteconcrete", "flowers:dandelion_yellow"}
})
minetest.register_node("animalworld:termiteconcretered", {
description = ("Termite Concrete Red"),
tiles = {"termiteconcretered.png"},
is_ground_content = false,
groups = {cracky = 3, stone = 2},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_craft({
output = "animalworld:termiteconcretered 6",
type = "shapeless",
recipe =
{"animalworld:termiteconcrete", "flowers:rose"}
})
minetest.register_node("animalworld:termiteconcreteorange", {
description = ("Termite Concrete Orange"),
tiles = {"termiteconcreteorange.png"},
is_ground_content = false,
groups = {cracky = 3, stone = 2},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_craft({
output = "animalworld:termiteconcreteorange 6",
type = "shapeless",
recipe =
{"animalworld:termiteconcrete", "flowers:tulip"}
})
minetest.register_node("animalworld:termiteconcreteviolet", {
description = ("Termite Concrete Violet"),
tiles = {"termiteconcreteviolet.png"},
is_ground_content = false,
groups = {cracky = 3, stone = 2},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_craft({
output = "animalworld:termiteconcreteviolet 6",
type = "shapeless",
recipe =
{"animalworld:termiteconcrete", "flowers:viola"}
})
minetest.register_node("animalworld:termiteconcretewhite", {
description = ("Termite Concrete White"),
tiles = {"termiteconcretewhite.png"},
is_ground_content = false,
groups = {cracky = 3, stone = 2},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_craft({
output = "animalworld:termiteconcretewhite 6",
type = "shapeless",
recipe =
{"animalworld:termiteconcrete", "flowers:dandelion_white"}
})

View File

@ -9,7 +9,7 @@ stepheight = 1,
hp_min = 45,
hp_max = 250,
armor = 100,
collisionbox = {-0.268, -0.01, -0.268, 0.268, 0.167, 0.268},
collisionbox = {-0.3, -0.01, -0.3, 0.3, 0.4, 0.3},
visual = "mesh",
mesh = "Tortoise.b3d",
drawtype = "front",
@ -22,7 +22,7 @@ stepheight = 1,
walk_velocity = 0.2,
run_velocity = 0.3,
runaway = true,
runaway_from = {"animalworld:bear", "animalworld:crocodile", "animalworld:tiger", "animalworld:spider", "animalworld:spidermale", "animalworld:shark", "animalworld:hyena", "animalworld:kobra", "animalworld:monitor", "animalworld:snowleopard", "animalworld:volverine", "livingfloatlands:deinotherium", "livingfloatlands:carnotaurus", "livingfloatlands:lycaenops", "livingfloatlands:smilodon", "livingfloatlands:tyrannosaurus", "livingfloatlands:velociraptor", "player"},
runaway_from = {"animalworld:bear", "animalworld:crocodile", "animalworld:tiger", "animalworld:spider", "animalworld:spidermale", "animalworld:shark", "animalworld:hyena", "animalworld:kobra", "animalworld:monitor", "animalworld:snowleopard", "animalworld:volverine", "livingfloatlands:deinotherium", "livingfloatlands:carnotaurus", "livingfloatlands:lycaenops", "livingfloatlands:smilodon", "livingfloatlands:tyrannosaurus", "livingfloatlands:velociraptor", "animalworld:divingbeetle", "animalworld:scorpion", "player"},
jump = false,
jump_height = 6,
drops = {

View File

@ -9,7 +9,7 @@ stepheight = 6,
hp_min = 5,
hp_max = 30,
armor = 100,
collisionbox = {-0.3, -0.01, -1, 0.3, 0.3, 0.3},
collisionbox = {-0.3, -0.01, -0.3, 0.3, 0.5, 0.3},
visual = "mesh",
mesh = "Toucan.b3d",
visual_size = {x = 1.0, y = 1.0},
@ -25,7 +25,7 @@ stepheight = 6,
fall_speed = -1,
fall_damage = 0,
runaway = true,
runaway_from = {"animalworld:bear", "animalworld:crocodile", "animalworld:tiger", "animalworld:spider", "animalworld:spidermale", "animalworld:shark", "animalworld:hyena", "animalworld:kobra", "animalworld:monitor", "animalworld:snowleopard", "animalworld:volverine", "livingfloatlands:deinotherium", "livingfloatlands:carnotaurus", "livingfloatlands:lycaenops", "livingfloatlands:smilodon", "livingfloatlands:tyrannosaurus", "livingfloatlands:velociraptor"},
runaway_from = {"animalworld:bear", "animalworld:crocodile", "animalworld:tiger", "animalworld:spider", "animalworld:spidermale", "animalworld:shark", "animalworld:hyena", "animalworld:kobra", "animalworld:monitor", "animalworld:snowleopard", "animalworld:volverine", "livingfloatlands:deinotherium", "livingfloatlands:carnotaurus", "livingfloatlands:lycaenops", "livingfloatlands:smilodon", "livingfloatlands:tyrannosaurus", "livingfloatlands:velociraptor", "animalworld:divingbeetle", "animalworld:scorpion"},
jump = true,
jump_height = 8,
stepheight = 6,

82
treelobster.lua Normal file
View File

@ -0,0 +1,82 @@
mobs:register_mob("animalworld:treelobster", {
stepheight = 2,
type = "animal",
passive = false,
attack_type = "dogfight",
group_attack = true,
owner_loyal = true,
reach = 2,
damage = 1,
hp_min = 20,
hp_max = 35,
armor = 100,
collisionbox = {-0.3, -0.01, -0.2, 0.3, 0.3, 0.2},
visual = "mesh",
mesh = "Treelobster.b3d",
textures = {
{"texturetreelobster.png"},
},
makes_footstep_sound = true,
sounds = {
},
walk_velocity = 0.5,
run_velocity = 1,
walk_chance = 20,
runaway = false,
jump = false,
jump_height = 3,
pushable = true,
follow = {"default:junglegrass", "default:jungleleaves", "default:blueberry_bush_leaves", "default:blueberry_bush_leaves_with_berries"},
view_range = 10,
drops = {
{name = "animalworld:raw_athropod", chance = 1, min = 0, max = 2},
},
floats = 0,
water_damage = 2,
lava_damage = 5,
air_damage = 0,
light_damage = 0,
fear_height = 2,
animation = {
speed_normal = 100,
stand_start = 0,
stand_end = 100,
walk_start = 100,
walk_end = 200,
punch_start = 250,
punch_end = 350,
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,
})
if not mobs.custom_spawn_animal then
mobs:spawn({
name = "animalworld:treelobster",
nodes = {"default:dirt_with_rainforest_litter"},
neighbors = {"default:junglegrass"},
min_light = 0,
interval = 30,
chance = 1, -- 15000
active_object_count = 4,
min_height = 5,
max_height = 40,
day_toggle = false,
})
end
mobs:register_egg("animalworld:treelobster", ("Tree Lobster"), "atreelobster.png")
mobs:alias_mob("animalworld:treelobster", "animalworld:treelobster") -- compatibility

View File

@ -9,7 +9,7 @@ stepheight = 0.0,
hp_min = 5,
hp_max = 25,
armor = 100,
collisionbox = {-0.4, -0.01, -0.4, 0.4, 0.95, 0.4},
collisionbox = {-0.4, -0.01, -0.4, 0.4, 0.4, 0.4},
visual = "mesh",
mesh = "Trout.b3d",
visual_size = {x = 1.0, y = 1.0},
@ -24,7 +24,7 @@ stepheight = 0.0,
fly_in = "default:water_source", "default:river_water_source", "default:water_flowing", "default:river_water_flowing",
fall_speed = 0,
runaway = true,
runaway_from = {"animalworld:bear", "animalworld:crocodile", "animalworld:tiger", "animalworld:spider", "animalworld:spidermale", "animalworld:shark", "animalworld:hyena", "animalworld:kobra", "animalworld:monitor", "animalworld:snowleopard", "animalworld:volverine", "livingfloatlands:deinotherium", "livingfloatlands:carnotaurus", "livingfloatlands:lycaenops", "livingfloatlands:smilodon", "livingfloatlands:tyrannosaurus", "livingfloatlands:velociraptor", "player"},
runaway_from = {"animalworld:bear", "animalworld:crocodile", "animalworld:tiger", "animalworld:spider", "animalworld:spidermale", "animalworld:shark", "animalworld:hyena", "animalworld:kobra", "animalworld:monitor", "animalworld:snowleopard", "animalworld:volverine", "livingfloatlands:deinotherium", "livingfloatlands:carnotaurus", "livingfloatlands:lycaenops", "livingfloatlands:smilodon", "livingfloatlands:tyrannosaurus", "livingfloatlands:velociraptor", "animalworld:divingbeetle", "animalworld:scorpion", "player"},
jump = false,
stepheight = 0.0,
drops = {
@ -50,7 +50,7 @@ stepheight = 0.0,
fly_in = {"default:water_source", "default:river_water_source", "default:water_flowing"},
floats = 0,
follow = {
"mobs:meat_raw", "ethereal:worm", "fishing:bait_worm", "water_life:meat_raw", "xocean:fish_edible"
"mobs:meat_raw", "animalworld:ant", "ethereal:worm", "fishing:bait_worm", "water_life:meat_raw", "xocean:fish_edible", "animalworld:fishfood"
},
view_range = 10,

View File

@ -9,7 +9,7 @@ stepheight = 3,
hp_min = 5,
hp_max = 45,
armor = 100,
collisionbox = {-0.3, -0.01, -1, 0.3, 0.3, 0.3},
collisionbox = {-0.3, -0.01, -0.3, 0.3, 0.5, 0.3},
visual = "mesh",
mesh = "Vulture.b3d",
visual_size = {x = 1.0, y = 1.0},
@ -23,7 +23,7 @@ stepheight = 3,
walk_velocity = 5,
run_velocity = 6,
runaway = true,
runaway_from = {"animalworld:bear", "animalworld:crocodile", "animalworld:tiger", "animalworld:spider", "animalworld:spidermale", "animalworld:shark", "animalworld:hyena", "animalworld:kobra", "animalworld:monitor", "animalworld:snowleopard", "animalworld:volverine", "livingfloatlands:deinotherium", "livingfloatlands:carnotaurus", "livingfloatlands:lycaenops", "livingfloatlands:smilodon", "livingfloatlands:tyrannosaurus", "livingfloatlands:velociraptor", "player"},
runaway_from = {"animalworld:bear", "animalworld:crocodile", "animalworld:tiger", "animalworld:spider", "animalworld:spidermale", "animalworld:shark", "animalworld:hyena", "animalworld:kobra", "animalworld:monitor", "animalworld:snowleopard", "animalworld:volverine", "livingfloatlands:deinotherium", "livingfloatlands:carnotaurus", "livingfloatlands:lycaenops", "livingfloatlands:smilodon", "livingfloatlands:tyrannosaurus", "livingfloatlands:velociraptor", "animalworld:divingbeetle", "animalworld:scorpion", "player"},
fall_speed = 0,
jump = true,
jump_height = 6,

127
wasp.lua Normal file
View File

@ -0,0 +1,127 @@
mobs:register_mob("animalworld:wasp", {
type = "monster",
passive = false,
attack_type = "dogfight",
reach = 1,
damage = 2,
hp_min = 1,
hp_max = 10,
armor = 100,
collisionbox = {-0.1, -0.01, -0.1, 0.1, 0.1, 0.1},
visual = "mesh",
mesh = "Wasp.b3d",
visual_size = {x = 1, y = 1},
textures = {
{"texturewasp.png"},
},
sounds = {
random = "animalworld_wasp",
attack = "animalworld_wasp2",
damage = "animalworld_wasp4",
death = "animalworld_wasp3",
},
makes_footstep_sound = false,
stay_near = {"animalworld:waspnest", 5},
view_range = 7,
walk_velocity = 1,
walk_chance = 70,
run_velocity = 2,
fly = true,
fly_in = {"air"},
floats = 0,
fall_speed = 0,
runaway = false,
jump = true,
jump_height = 6,
stepheight = 3,
drops = {
},
water_damage = 1,
lava_damage = 4,
light_damage = 0,
fear_height = 3,
animation = {
speed_normal = 400,
stand_start = 0,
stand_end = 100,
walk_start = 0,
walk_end = 100,
punch_start = 100,
punch_end = 200,
-- 50-70 is slide/water idle
},
})
if not mobs.custom_spawn_monster then
mobs:spawn({
name = "animalworld:wasp",
nodes = {"animalworld:waspnest"},
neighbors = {"air"},
min_light = 0,
interval = 30,
chance = 1, -- 15000
active_object_count = 7,
min_height = 0,
max_height = 50,
day_toggle = true
})
end
mobs:register_egg("animalworld:wasp", ("Wasp"), "awasp.png")
mobs:alias_mob("animalworld:wasp", "animalworld:wasp")
minetest.register_decoration({
deco_type = "simple",
place_on = {"default:aspen_leaves"},
neighbors = {"animalworld:waspnest"},
sidelen = 16,
noise_params = {
offset = 1,
scale = 1,
spread = {x = 250, y = 250, z = 250},
seed = 2,
octaves = 3,
persist = 0.66
},
y_max = 75,
y_min = 0,
decoration = "animalworld:waspnest"
})
minetest.register_node("animalworld:waspnest", {
description = "Wasp Nest",
visual_scale = 0.5,
mesh = "Waspnest.b3d",
tiles = {"texturewaspnest.png"},
inventory_image = "awaspnest.png",
paramtype = "light",
paramtype2 = "facedir",
groups = {choppy = 3},
drawtype = "mesh",
collision_box = {
type = "fixed",
fixed = {
{-0.5, -2.5, -0.5, 0.5, -1.5, 0.5},
--[[{-0.5, -2.5, -0.5, 0.5, -1.5, 0.5},
{-0.5, -2.5, -0.5, 0.5, -1.5, 0.5}]]
}
},
selection_box = {
type = "fixed",
fixed = {
{-0.5, -2.5, -0.5, 0.5, -1.5, 0.5}
}
},
drop = "default:paper",
sounds = default.node_sound_dirt_defaults(),
})
minetest.register_craft({
type = "fuel",
recipe = "animalworld:waspnest",
burntime = 1,
})

View File

@ -9,7 +9,7 @@ mobs:register_mob("animalworld:yak", {
hp_min = 5,
hp_max = 55,
armor = 100,
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1.2, 0.4},
collisionbox = {-0.6, -0.01, -0.4, 0.6, 1.2, 0.4},
visual = "mesh",
mesh = "Yak.b3d",
textures = {