diff --git a/oerrki/LICENSE.txt b/oerrki/LICENSE.txt new file mode 100644 index 0000000..8312414 --- /dev/null +++ b/oerrki/LICENSE.txt @@ -0,0 +1,20 @@ +Copyright (c) 2016 BlockMen + + +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. diff --git a/oerrki/README.txt b/oerrki/README.txt new file mode 100644 index 0000000..97c8147 --- /dev/null +++ b/oerrki/README.txt @@ -0,0 +1,31 @@ +Oerrki for Creatures MOB-Engine +=============================== +Copyright (c) 2016 BlockMen + +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: +~~~~~~~ diff --git a/oerrki/depends.txt b/oerrki/depends.txt new file mode 100644 index 0000000..acd6e5b --- /dev/null +++ b/oerrki/depends.txt @@ -0,0 +1,3 @@ +default +creatures + diff --git a/oerrki/init.lua b/oerrki/init.lua new file mode 100644 index 0000000..36dcc86 --- /dev/null +++ b/oerrki/init.lua @@ -0,0 +1,110 @@ +--= Oerrki for Creatures MOB-Engine (cme) =-- +-- Copyright (c) 2016 BlockMen +-- +-- 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 = 5100, max = 18300}, + 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) diff --git a/oerrki/models/creatures_oerrki.b3d b/oerrki/models/creatures_oerrki.b3d new file mode 100644 index 0000000..a8c983a Binary files /dev/null and b/oerrki/models/creatures_oerrki.b3d differ diff --git a/oerrki/sounds/creatures_oerrki_attack.ogg b/oerrki/sounds/creatures_oerrki_attack.ogg new file mode 100644 index 0000000..e70a768 Binary files /dev/null and b/oerrki/sounds/creatures_oerrki_attack.ogg differ diff --git a/oerrki/sounds/creatures_oerrki_hit.1.ogg b/oerrki/sounds/creatures_oerrki_hit.1.ogg new file mode 100644 index 0000000..ba4cf65 Binary files /dev/null and b/oerrki/sounds/creatures_oerrki_hit.1.ogg differ diff --git a/oerrki/sounds/creatures_oerrki_hit.2.ogg b/oerrki/sounds/creatures_oerrki_hit.2.ogg new file mode 100644 index 0000000..718460c Binary files /dev/null and b/oerrki/sounds/creatures_oerrki_hit.2.ogg differ diff --git a/oerrki/sounds/creatures_oerrki_idle.1.ogg b/oerrki/sounds/creatures_oerrki_idle.1.ogg new file mode 100644 index 0000000..32153a8 Binary files /dev/null and b/oerrki/sounds/creatures_oerrki_idle.1.ogg differ diff --git a/oerrki/sounds/creatures_oerrki_idle.2.ogg b/oerrki/sounds/creatures_oerrki_idle.2.ogg new file mode 100644 index 0000000..1c6895c Binary files /dev/null and b/oerrki/sounds/creatures_oerrki_idle.2.ogg differ diff --git a/oerrki/textures/creatures_egg_oerrki.png b/oerrki/textures/creatures_egg_oerrki.png new file mode 100644 index 0000000..3c95baa Binary files /dev/null and b/oerrki/textures/creatures_egg_oerrki.png differ diff --git a/oerrki/textures/creatures_oerrki.png b/oerrki/textures/creatures_oerrki.png new file mode 100644 index 0000000..c48df15 Binary files /dev/null and b/oerrki/textures/creatures_oerrki.png differ