Add "hostile" creatures "ghost", "oerrki", & "zombie" from "Creatures
MOB-Engine" (cme).
@ -29,6 +29,10 @@ The following mods are also included:
|
||||
* friendlies/
|
||||
* chicken ([Creatures MOB-Engine][cme])
|
||||
* sheep ([Creatures MOB-Engine][cme])
|
||||
* hostils/
|
||||
* ghost ([Creatures MOB-Engine][cme])
|
||||
* oerrki ([Creatures MOB-Engine][cme])
|
||||
* zombie ([Creatures MOB-Engine][cme])
|
||||
* lib/
|
||||
* [biome_lib][] ([WTFPL](mods/lib/biome_lib/README.md))
|
||||
* [signs_lib][] ([BSD/WTFPL](mods/lib/signs_lib/copyright.txt))
|
||||
|
26
mods/hostils/ghost/README.txt
Normal file
@ -0,0 +1,26 @@
|
||||
Ghost for Creatures MOB-Engine
|
||||
==============================
|
||||
Copyright (c) 2015-2016 BlockMen <blockmen2015@gmail.com>
|
||||
|
||||
Version: 2.0 Beta
|
||||
|
||||
|
||||
Adds ghosts to Minetest (requires Creatures MOB-Engine).
|
||||
Ghosts only spawn at night-time and not underground.
|
||||
They are flying in the world and attack you players if they notice them.
|
||||
Ghosts have 12 HP and don't drop any items atm.
|
||||
|
||||
|
||||
License:
|
||||
~~~~~~~~
|
||||
Code:
|
||||
(c) Copyright 2015-2016 BlockMen; modified zlib-License
|
||||
see "LICENSE.txt" for details.
|
||||
|
||||
Media(sounds, textures and meshes/models):
|
||||
(c) Copyright (2014-2016) BlockMen; CC-BY-SA 3.0
|
||||
|
||||
|
||||
Github:
|
||||
~~~~~~~
|
||||
https://github.com/BlockMen/cme/ghost
|
2
mods/hostils/ghost/depends.txt
Normal file
@ -0,0 +1,2 @@
|
||||
default
|
||||
creatures
|
110
mods/hostils/ghost/init.lua
Normal file
@ -0,0 +1,110 @@
|
||||
--= Ghost for Creatures MOB-Engine (cme) =--
|
||||
-- Copyright (c) 2015-2016 BlockMen <blockmen2015@gmail.com>
|
||||
--
|
||||
-- init.lua
|
||||
--
|
||||
-- This software is provided 'as-is', without any express or implied warranty. In no
|
||||
-- event will the authors be held liable for any damages arising from the use of
|
||||
-- this software.
|
||||
--
|
||||
-- Permission is granted to anyone to use this software for any purpose, including
|
||||
-- commercial applications, and to alter it and redistribute it freely, subject to the
|
||||
-- following restrictions:
|
||||
--
|
||||
-- 1. The origin of this software must not be misrepresented; you must not
|
||||
-- claim that you wrote the original software. If you use this software in a
|
||||
-- product, an acknowledgment in the product documentation is required.
|
||||
-- 2. Altered source versions must be plainly marked as such, and must not
|
||||
-- be misrepresented as being the original software.
|
||||
-- 3. This notice may not be removed or altered from any source distribution.
|
||||
--
|
||||
|
||||
|
||||
local def = {
|
||||
-- general
|
||||
name = "creatures:ghost",
|
||||
stats = {
|
||||
hp = 12,
|
||||
lifetime = 300, -- 5 Minutes
|
||||
can_burn = true,
|
||||
can_fly = true,
|
||||
has_falldamage = false,
|
||||
has_kockback = true,
|
||||
light = {min = 0, max = 8},
|
||||
hostile = true,
|
||||
},
|
||||
|
||||
modes = {
|
||||
idle = {chance = 0.65, duration = 3, update_yaw = 6},
|
||||
fly = {chance = 0.25, duration = 2.5, moving_speed = 2, max_height = 25, target_offset = 2.1},
|
||||
fly_2 = {chance = 0.1, duration = 4, moving_speed = 1.6, update_yaw = 3, max_height = 25, target_offset = 2.5},
|
||||
-- special modes
|
||||
attack = {chance = 0, moving_speed = 2.6},
|
||||
},
|
||||
|
||||
model = {
|
||||
mesh = "creatures_ghost.b3d",
|
||||
textures = {"creatures_ghost.png"},
|
||||
collisionbox = {-0.25, 0, -0.3, 0.25, 1.3, 0.3},
|
||||
rotation = -90.0,
|
||||
animations = {
|
||||
idle = {start = 0, stop = 80, speed = 15},
|
||||
fly = {start = 102, stop = 122, speed = 12},
|
||||
fly_2 = {start = 102, stop = 122, speed = 10},
|
||||
attack = {start = 102, stop = 122, speed = 25},
|
||||
death = {start = 81, stop = 101, speed = 28, loop = false, duration = 1.32},
|
||||
},
|
||||
},
|
||||
|
||||
sounds = {
|
||||
on_damage = {name = "creatures_ghost_hit", gain = 0.4, distance = 10},
|
||||
on_death = {name = "creatures_ghost_death", gain = 0.7, distance = 10},
|
||||
random = {
|
||||
idle = {name = "creatures_ghost", gain = 0.5, distance = 10, time_min = 23},
|
||||
},
|
||||
},
|
||||
|
||||
combat = {
|
||||
attack_damage = 2,
|
||||
attack_speed = 1.1,
|
||||
attack_radius = 0.9,
|
||||
|
||||
search_enemy = true,
|
||||
search_timer = 2,
|
||||
search_radius = 12,
|
||||
search_type = "player",
|
||||
},
|
||||
|
||||
spawning = {
|
||||
abm_nodes = {
|
||||
spawn_on = {"default:gravel", "default:dirt_with_grass", "default:dirt",
|
||||
"group:leaves", "group:sand"},
|
||||
},
|
||||
abm_interval = 40,
|
||||
abm_chance = 7300,
|
||||
max_number = 1,
|
||||
number = 1,
|
||||
time_range = {min = 18500, max = 4000},
|
||||
light = {min = 0, max = 8},
|
||||
height_limit = {min = 0, max = 80},
|
||||
|
||||
spawn_egg = {
|
||||
description = "Ghost Spawn-Egg",
|
||||
texture = "creatures_egg_ghost.png",
|
||||
},
|
||||
|
||||
spawner = {
|
||||
description = "Ghost Spawner",
|
||||
range = 8,
|
||||
number = 6,
|
||||
light = {min = 0, max = 8},
|
||||
}
|
||||
},
|
||||
|
||||
--drops = {
|
||||
-- {"creatures:rotten_flesh", {min = 1, max = 2}, chance = 0.7},
|
||||
--},
|
||||
|
||||
}
|
||||
|
||||
creatures.register_mob(def)
|
BIN
mods/hostils/ghost/models/creatures_ghost.b3d
Normal file
BIN
mods/hostils/ghost/models/ghost.b3d
Normal file
BIN
mods/hostils/ghost/sounds/creatures_ghost.1.ogg
Normal file
BIN
mods/hostils/ghost/sounds/creatures_ghost.2.ogg
Normal file
BIN
mods/hostils/ghost/sounds/creatures_ghost_death.ogg
Normal file
BIN
mods/hostils/ghost/sounds/creatures_ghost_hit.ogg
Normal file
BIN
mods/hostils/ghost/textures/creatures_egg_ghost.png
Normal file
After Width: | Height: | Size: 718 B |
BIN
mods/hostils/ghost/textures/creatures_ghost.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
31
mods/hostils/oerrki/README.txt
Normal file
@ -0,0 +1,31 @@
|
||||
Oerrki for Creatures MOB-Engine
|
||||
===============================
|
||||
Copyright (c) 2016 BlockMen <blockmen2015@gmail.com>
|
||||
|
||||
Version: 1.0 Beta
|
||||
|
||||
|
||||
Adds classic Minetest Ghost called "Oerrki". (requires Creatures MOB-Engine).
|
||||
Oerrki spawn only at night or in dark places and remain around 5 minutes in the world.
|
||||
Other than Ghosts or Zombies they don't die by sunlight.
|
||||
|
||||
|
||||
License:
|
||||
~~~~~~~~
|
||||
Code:
|
||||
(c) Copyright 2016 BlockMen; modified zlib-License
|
||||
see "LICENSE.txt" for details.
|
||||
|
||||
Mesh/Model:
|
||||
(c) Copyright 2016 BlockMen; CC-BY-SA 3.0
|
||||
derivated from Pavel_S's work; WTFPL
|
||||
|
||||
Textures:
|
||||
(c) Copyright Pavel_S; WTFPL
|
||||
|
||||
Sounds:
|
||||
(c) Copyright 2016 BlockMen; CC-BY-SA 3.0
|
||||
|
||||
|
||||
Github:
|
||||
~~~~~~~
|
3
mods/hostils/oerrki/depends.txt
Normal file
@ -0,0 +1,3 @@
|
||||
default
|
||||
creatures
|
||||
|
110
mods/hostils/oerrki/init.lua
Normal file
@ -0,0 +1,110 @@
|
||||
--= Oerrki for Creatures MOB-Engine (cme) =--
|
||||
-- Copyright (c) 2016 BlockMen <blockmen2015@gmail.com>
|
||||
--
|
||||
-- init.lua
|
||||
--
|
||||
-- This software is provided 'as-is', without any express or implied warranty. In no
|
||||
-- event will the authors be held liable for any damages arising from the use of
|
||||
-- this software.
|
||||
--
|
||||
-- Permission is granted to anyone to use this software for any purpose, including
|
||||
-- commercial applications, and to alter it and redistribute it freely, subject to the
|
||||
-- following restrictions:
|
||||
--
|
||||
-- 1. The origin of this software must not be misrepresented; you must not
|
||||
-- claim that you wrote the original software. If you use this software in a
|
||||
-- product, an acknowledgment in the product documentation is required.
|
||||
-- 2. Altered source versions must be plainly marked as such, and must not
|
||||
-- be misrepresented as being the original software.
|
||||
-- 3. This notice may not be removed or altered from any source distribution.
|
||||
--
|
||||
|
||||
|
||||
local def = {
|
||||
name = "creatures:oerrki",
|
||||
stats = {
|
||||
hp = 13,
|
||||
lifetime = 540, -- 9 Minutes
|
||||
can_jump = 1,
|
||||
can_swim = true,
|
||||
can_burn = true,
|
||||
can_panic = true,
|
||||
has_falldamage = true,
|
||||
has_kockback = true,
|
||||
sneaky = true,
|
||||
hostile = true,
|
||||
},
|
||||
|
||||
model = {
|
||||
mesh = "creatures_oerrki.b3d",
|
||||
textures = {"creatures_oerrki.png"},
|
||||
collisionbox = {-0.25, -0.01, -0.3, 0.25, 1.75, 0.3},
|
||||
rotation = -90.0,
|
||||
animations = {
|
||||
idle = {start = 1, stop = 23, speed = 15},
|
||||
walk = {start = 24, stop = 31, speed = 8, loop = false},
|
||||
walk_long = {start = 24, stop = 31, speed = 8, loop = false},
|
||||
attack = {start = 37, stop = 49, speed = 18},
|
||||
death = {start = 50, stop = 76, speed = 32, loop = false, duration = 2.52},
|
||||
},
|
||||
},
|
||||
|
||||
sounds = {
|
||||
on_damage = {name = "creatures_oerrki_hit", gain = 1.0, distance = 10},
|
||||
on_death = {name = "creatures_oerrki_hit", gain = 1.0, distance = 10},
|
||||
swim = {name = "creatures_splash", gain = 1.0, distance = 10},
|
||||
random = {
|
||||
idle = {name = "creatures_oerrki_idle", gain = 1.0, distance = 25},
|
||||
attack = {name = "creatures_oerrki_attack", gain = 1.0, distance = 20},
|
||||
},
|
||||
},
|
||||
|
||||
modes = {
|
||||
idle = {chance = 0.59, duration = 3, update_yaw = 8},
|
||||
walk = {chance = 0.3, duration = 5.5, moving_speed = 1.5},
|
||||
walk_long = {chance = 0.11, duration = 8, moving_speed = 1.3, update_yaw = 5},
|
||||
|
||||
-- special modes
|
||||
attack = {chance = 0, moving_speed = 2.9},
|
||||
panic = {duration = 4, moving_speed = 3.2},
|
||||
},
|
||||
|
||||
combat = {
|
||||
attack_damage = 2,
|
||||
attack_speed = 0.6,
|
||||
attack_radius = 1.2,
|
||||
|
||||
search_enemy = true,
|
||||
search_timer = 1.6,
|
||||
search_radius = 15,
|
||||
search_type = "player",
|
||||
},
|
||||
|
||||
spawning = {
|
||||
abm_nodes = {
|
||||
spawn_on = {"default:dirt_with_grass", "default:dirt", "default:stone"},
|
||||
},
|
||||
abm_interval = 55,
|
||||
abm_chance = 7800,
|
||||
max_number = 1,
|
||||
number = {min = 1, max = 3},
|
||||
time_range = {min = 18500, max = 5100},
|
||||
light = {min = 0, max = 8},
|
||||
height_limit = {min = -200, max = 50},
|
||||
|
||||
spawn_egg = {
|
||||
description = "Oerrki Spawn-Egg",
|
||||
texture = "creatures_egg_oerrki.png",
|
||||
},
|
||||
|
||||
spawner = {
|
||||
description = "Oerrki Spawner",
|
||||
range = 8,
|
||||
player_range = 20,
|
||||
number = 6,
|
||||
light = {min = 0, max = 8},
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
creatures.register_mob(def)
|
BIN
mods/hostils/oerrki/models/creatures_oerrki.b3d
Normal file
BIN
mods/hostils/oerrki/sounds/creatures_oerrki_attack.ogg
Normal file
BIN
mods/hostils/oerrki/sounds/creatures_oerrki_hit.1.ogg
Normal file
BIN
mods/hostils/oerrki/sounds/creatures_oerrki_hit.2.ogg
Normal file
BIN
mods/hostils/oerrki/sounds/creatures_oerrki_idle.1.ogg
Normal file
BIN
mods/hostils/oerrki/sounds/creatures_oerrki_idle.2.ogg
Normal file
BIN
mods/hostils/oerrki/textures/creatures_egg_oerrki.png
Normal file
After Width: | Height: | Size: 695 B |
BIN
mods/hostils/oerrki/textures/creatures_oerrki.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
32
mods/hostils/zombie/README.txt
Normal file
@ -0,0 +1,32 @@
|
||||
Zombie for Creatures MOB-Engine
|
||||
===============================
|
||||
Copyright (c) 2015-2016 BlockMen <blockmen2015@gmail.com>
|
||||
|
||||
Version: 2.0 Beta
|
||||
|
||||
|
||||
Adds zombies to Minetest (requires Creatures MOB-Engine).
|
||||
Zombies can spawn to every day-time in the world as long there it is dark enough.
|
||||
You will find some in caves, dark forests and ofc a lot at night.
|
||||
If they notice any player near they will attack.
|
||||
Zombies have 20 HP (like players) and drop rotten flesh randomly.
|
||||
|
||||
|
||||
License:
|
||||
~~~~~~~~
|
||||
Code:
|
||||
(c) Copyright 2015-2016 BlockMen; modified zlib-License
|
||||
see "LICENSE.txt" for details.
|
||||
|
||||
Media(textures and meshes/models):
|
||||
(c) Copyright (2014-2016) BlockMen; CC-BY-SA 3.0
|
||||
|
||||
Sounds:
|
||||
- creatures_zombie.1.ogg, Under7dude(https://freesound.org/people/Under7dude) CC0
|
||||
- creatures_zombie.2.ogg, Under7dude(https://freesound.org/people/Under7dude) CC0
|
||||
- creatures_zombie.3.ogg, Under7dude(https://freesound.org/people/Under7dude) CC0
|
||||
- creatures_zombie_death.ogg, Under7dude(https://freesound.org/people/Under7dude) CC0
|
||||
|
||||
Github:
|
||||
~~~~~~~
|
||||
https://github.com/BlockMen/cme/zombie
|
2
mods/hostils/zombie/depends.txt
Normal file
@ -0,0 +1,2 @@
|
||||
default
|
||||
creatures
|
134
mods/hostils/zombie/init.lua
Normal file
@ -0,0 +1,134 @@
|
||||
--= Zombie for Creatures MOB-Engine (cme) =--
|
||||
-- Copyright (c) 2015-2016 BlockMen <blockmen2015@gmail.com>
|
||||
--
|
||||
-- init.lua
|
||||
--
|
||||
-- This software is provided 'as-is', without any express or implied warranty. In no
|
||||
-- event will the authors be held liable for any damages arising from the use of
|
||||
-- this software.
|
||||
--
|
||||
-- Permission is granted to anyone to use this software for any purpose, including
|
||||
-- commercial applications, and to alter it and redistribute it freely, subject to the
|
||||
-- following restrictions:
|
||||
--
|
||||
-- 1. The origin of this software must not be misrepresented; you must not
|
||||
-- claim that you wrote the original software. If you use this software in a
|
||||
-- product, an acknowledgment in the product documentation is required.
|
||||
-- 2. Altered source versions must be plainly marked as such, and must not
|
||||
-- be misrepresented as being the original software.
|
||||
-- 3. This notice may not be removed or altered from any source distribution.
|
||||
--
|
||||
|
||||
|
||||
core.register_craftitem(":creatures:rotten_flesh", {
|
||||
description = "Rotten Flesh",
|
||||
inventory_image = "creatures_rotten_flesh.png",
|
||||
on_use = core.item_eat(1),
|
||||
})
|
||||
|
||||
local def = {
|
||||
-- general
|
||||
name = "creatures:zombie",
|
||||
stats = {
|
||||
hp = 20,
|
||||
lifetime = 300, -- 5 Minutes
|
||||
can_jump = 1,
|
||||
can_swim = true,
|
||||
can_burn = true,
|
||||
has_falldamage = true,
|
||||
has_kockback = true,
|
||||
light = {min = 0, max = 8},
|
||||
hostile = true,
|
||||
},
|
||||
|
||||
modes = {
|
||||
idle = {chance = 0.7, duration = 3, update_yaw = 6},
|
||||
walk = {chance = 0.3, duration = 5.5, moving_speed = 1.5},
|
||||
-- special modes
|
||||
attack = {chance = 0, moving_speed = 2.5},
|
||||
},
|
||||
|
||||
model = {
|
||||
mesh = "creatures_zombie.b3d",
|
||||
textures = {"creatures_zombie.png"},
|
||||
collisionbox = {-0.25, -0.01, -0.3, 0.25, 1.75, 0.3},
|
||||
rotation = -90.0,
|
||||
animations = {
|
||||
idle = {start = 0, stop = 80, speed = 15},
|
||||
walk = {start = 102, stop = 122, speed = 15.5},
|
||||
attack = {start = 102, stop = 122, speed = 25},
|
||||
death = {start = 81, stop = 101, speed = 28, loop = false, duration = 2.12},
|
||||
},
|
||||
},
|
||||
|
||||
sounds = {
|
||||
on_damage = {name = "creatures_zombie_hit", gain = 0.4, distance = 10},
|
||||
on_death = {name = "creatures_zombie_death", gain = 0.7, distance = 10},
|
||||
swim = {name = "creatures_splash", gain = 1.0, distance = 10},
|
||||
random = {
|
||||
idle = {name = "creatures_zombie", gain = 0.7, distance = 12},
|
||||
},
|
||||
},
|
||||
|
||||
combat = {
|
||||
attack_damage = 1,
|
||||
attack_speed = 0.6,
|
||||
attack_radius = 1.1,
|
||||
|
||||
search_enemy = true,
|
||||
search_timer = 2,
|
||||
search_radius = 12,
|
||||
search_type = "player",
|
||||
},
|
||||
|
||||
spawning = {
|
||||
abm_nodes = {
|
||||
spawn_on = {"default:stone", "default:dirt_with_grass", "default:dirt",
|
||||
"default:cobblestone", "default:mossycobble", "group:sand"},
|
||||
},
|
||||
abm_interval = 36,
|
||||
abm_chance = 7600,
|
||||
max_number = 1,
|
||||
number = 2,
|
||||
light = {min = 0, max = 8},
|
||||
height_limit = {min = -200, max = 50},
|
||||
|
||||
spawn_egg = {
|
||||
description = "Zombie Spawn-Egg",
|
||||
texture = "creatures_egg_zombie.png",
|
||||
},
|
||||
|
||||
spawner = {
|
||||
description = "Zombie Spawner",
|
||||
range = 8,
|
||||
number = 6,
|
||||
light = {min = 0, max = 8},
|
||||
}
|
||||
},
|
||||
|
||||
drops = {
|
||||
{"creatures:rotten_flesh", {min = 1, max = 2}, chance = 0.7},
|
||||
}
|
||||
}
|
||||
|
||||
creatures.register_mob(def)
|
||||
|
||||
|
||||
-- Place spawners in dungeons
|
||||
|
||||
local function place_spawner(tab)
|
||||
local pos = tab[math.random(1, (#tab or 4))]
|
||||
pos.y = pos.y - 1
|
||||
local n = core.get_node_or_nil(pos)
|
||||
if n and n.name ~= "air" then
|
||||
pos.y = pos.y + 1
|
||||
core.set_node(pos, {name = "creatures:zombie_spawner"})
|
||||
end
|
||||
end
|
||||
core.set_gen_notify("dungeon")
|
||||
core.register_on_generated(function(minp, maxp, blockseed)
|
||||
local ntf = core.get_mapgen_object("gennotify")
|
||||
if ntf and ntf.dungeon and #ntf.dungeon > 3 then
|
||||
core.after(3, place_spawner, table.copy(ntf.dungeon))
|
||||
end
|
||||
end)
|
BIN
mods/hostils/zombie/models/creatures_zombie.b3d
Normal file
BIN
mods/hostils/zombie/sounds/creatures_zombie.1.ogg
Normal file
BIN
mods/hostils/zombie/sounds/creatures_zombie.2.ogg
Normal file
BIN
mods/hostils/zombie/sounds/creatures_zombie.3.ogg
Normal file
BIN
mods/hostils/zombie/sounds/creatures_zombie_death.ogg
Normal file
BIN
mods/hostils/zombie/sounds/creatures_zombie_hit.ogg
Normal file
BIN
mods/hostils/zombie/textures/creatures_egg_zombie.png
Normal file
After Width: | Height: | Size: 714 B |
BIN
mods/hostils/zombie/textures/creatures_rotten_flesh.png
Normal file
After Width: | Height: | Size: 511 B |
BIN
mods/hostils/zombie/textures/creatures_zombie.png
Normal file
After Width: | Height: | Size: 3.1 KiB |