parent
b7b01d5efc
commit
e7618c436e
|
@ -101,6 +101,7 @@ The game includes the mods from the default [minetest_game](https://github.com/m
|
||||||
* [sand_monster][mobs_monster] ([MIT][lic.sand_monster]) -- version: [3dd5954 Git][ver.sand_monster] *2021-05-20*
|
* [sand_monster][mobs_monster] ([MIT][lic.sand_monster]) -- version: [3dd5954 Git][ver.sand_monster] *2021-05-20*
|
||||||
* [shark][] ([CC0 / CC BY-SA][lic.shark]) -- version: [9e0e048 Git][ver.shark] *2021-05-19*
|
* [shark][] ([CC0 / CC BY-SA][lic.shark]) -- version: [9e0e048 Git][ver.shark] *2021-05-19*
|
||||||
* [sheep][creatures] ([Zlib][lic.creatures] / [CC BY-SA][lic.ccbysa3.0]) -- version: [ff39b4a Git][ver.sheep] *2021-05-13*
|
* [sheep][creatures] ([Zlib][lic.creatures] / [CC BY-SA][lic.ccbysa3.0]) -- version: [ff39b4a Git][ver.sheep] *2021-05-13*
|
||||||
|
* [skeleton][cmer_skeleton] ([MIT][lic.cmer_skeleton]) -- version: [1.0][ver.cmer_skeleton] *2021-05-23*
|
||||||
* [sneeker][] ([MIT][lic.sneeker]) -- version: [1.0][ver.sneeker] *2021-05-08*
|
* [sneeker][] ([MIT][lic.sneeker]) -- version: [1.0][ver.sneeker] *2021-05-08*
|
||||||
* [spider][cmer_spider] ([unilicense][lic.cmer_spider]) -- version: [d1a9a82 Git][ver.cmer_spider] *2021-05-19*
|
* [spider][cmer_spider] ([unilicense][lic.cmer_spider]) -- version: [d1a9a82 Git][ver.cmer_spider] *2021-05-19*
|
||||||
* [stone_monster][mobs_monster] ([MIT][lic.stone_monster]) -- version: [fa52f6f Git][ver.stone_monster] *2021-05-20*
|
* [stone_monster][mobs_monster] ([MIT][lic.stone_monster]) -- version: [fa52f6f Git][ver.stone_monster] *2021-05-20*
|
||||||
|
@ -277,6 +278,7 @@ The game includes the mods from the default [minetest_game](https://github.com/m
|
||||||
[chatlog]: https://forum.minetest.net/viewtopic.php?t=18287
|
[chatlog]: https://forum.minetest.net/viewtopic.php?t=18287
|
||||||
[christmas]: https://forum.minetest.net/viewtopic.php?t=3950
|
[christmas]: https://forum.minetest.net/viewtopic.php?t=3950
|
||||||
[cleaner]: https://github.com/AntumMT/mod-cleaner/tree/2404594
|
[cleaner]: https://github.com/AntumMT/mod-cleaner/tree/2404594
|
||||||
|
[cmer_skeleton]: https://github.com/AntumMT/mod-skeleton
|
||||||
[cmer_spider]: https://github.com/AntumMT/mod-spider
|
[cmer_spider]: https://github.com/AntumMT/mod-spider
|
||||||
[coloredwood]: https://forum.minetest.net/viewtopic.php?t=2411
|
[coloredwood]: https://forum.minetest.net/viewtopic.php?t=2411
|
||||||
[compass]: https://forum.minetest.net/viewtopic.php?t=3785
|
[compass]: https://forum.minetest.net/viewtopic.php?t=3785
|
||||||
|
@ -402,6 +404,7 @@ The game includes the mods from the default [minetest_game](https://github.com/m
|
||||||
[lic.castle]: mods/modpacks/castle/LICENSE
|
[lic.castle]: mods/modpacks/castle/LICENSE
|
||||||
[lic.christmas]: mods/buildings/christmas/LICENSE.txt
|
[lic.christmas]: mods/buildings/christmas/LICENSE.txt
|
||||||
[lic.cleaner]: mods/admin/cleaner/LICENSE.txt
|
[lic.cleaner]: mods/admin/cleaner/LICENSE.txt
|
||||||
|
[lic.cmer_skeleton]: mods/mobiles/skeleton/LICENSE.txt
|
||||||
[lic.cmer_spider]: mods/mobiles/spider/LICENSE
|
[lic.cmer_spider]: mods/mobiles/spider/LICENSE
|
||||||
[lic.craftguide]: mods/crafting/craftguide/license.txt
|
[lic.craftguide]: mods/crafting/craftguide/license.txt
|
||||||
[lic.creatures]: mods/mobiles/engine/creatures/LICENSE.txt
|
[lic.creatures]: mods/mobiles/engine/creatures/LICENSE.txt
|
||||||
|
@ -519,6 +522,7 @@ The game includes the mods from the default [minetest_game](https://github.com/m
|
||||||
[ver.chicken]: http://github.com/AntumMT/mod-cmer/tree/b126cdb
|
[ver.chicken]: http://github.com/AntumMT/mod-cmer/tree/b126cdb
|
||||||
[ver.christmas]: https://github.com/TheZenKitteh/minetest-christmas/tree/d3bd872
|
[ver.christmas]: https://github.com/TheZenKitteh/minetest-christmas/tree/d3bd872
|
||||||
[ver.cleaner]: https://github.com/AntumMT/mod-cleaner/tree/e8359d8
|
[ver.cleaner]: https://github.com/AntumMT/mod-cleaner/tree/e8359d8
|
||||||
|
[ver.cmer_skeleton]: https://github.com/AntumMT/mod-skeleton/releases/tag/v1.0
|
||||||
[ver.cmer_spider]: https://github.com/AntumMT/mod-spider/tree/d1a9a82
|
[ver.cmer_spider]: https://github.com/AntumMT/mod-spider/tree/d1a9a82
|
||||||
[ver.coloredwood]: https://gitlab.com/VanessaE/coloredwood/tags/2021-01-30
|
[ver.coloredwood]: https://gitlab.com/VanessaE/coloredwood/tags/2021-01-30
|
||||||
[ver.compassgps]: https://github.com/Kilarin/compassgps/tree/567b95f
|
[ver.compassgps]: https://github.com/Kilarin/compassgps/tree/567b95f
|
||||||
|
|
|
@ -2007,6 +2007,24 @@ coloredwood_enable_stairsplus = true
|
||||||
#shark.spawn_time = any
|
#shark.spawn_time = any
|
||||||
|
|
||||||
|
|
||||||
|
# *** skeleton ***
|
||||||
|
|
||||||
|
## Entity lifespan.
|
||||||
|
# type: int
|
||||||
|
# default: 900
|
||||||
|
#skeleton.lifetime = 900
|
||||||
|
|
||||||
|
## Spawn interval in seconds.
|
||||||
|
# type: int
|
||||||
|
# default: 120 (2 minutes)
|
||||||
|
#skeleton.spawn_interval = 120
|
||||||
|
|
||||||
|
## Chance of spawn at interval.
|
||||||
|
# type: int
|
||||||
|
# default: 7000
|
||||||
|
#skeleton.spawn_chance = 7000
|
||||||
|
|
||||||
|
|
||||||
# *** sneeker ***
|
# *** sneeker ***
|
||||||
|
|
||||||
# Sets maximum number of spawns that can exist in world.
|
# Sets maximum number of spawns that can exist in world.
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
|
||||||
|
1.0
|
||||||
|
- created cmer:skeleton entity
|
||||||
|
- created cmer:bone item
|
||||||
|
- created spawneggs:skeleton with asm_spawneggs
|
|
@ -0,0 +1,21 @@
|
||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright © 2021 Jordan Irwin (AntumDeluge)
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||||
|
this software and associated documentation files (the "Software"), to deal in
|
||||||
|
the Software without restriction, including without limitation the rights to
|
||||||
|
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
||||||
|
of the Software, and to permit persons to whom the Software is furnished to do
|
||||||
|
so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in
|
||||||
|
all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
|
@ -0,0 +1,32 @@
|
||||||
|
## Skeleton for Minetest
|
||||||
|
|
||||||
|
### Description:
|
||||||
|
|
||||||
|
A skeleton mob using the [cmer][] (Creatures Revived) API.
|
||||||
|
|
||||||
|
***Status:** currently not functional*
|
||||||
|
|
||||||
|
### Licensing:
|
||||||
|
|
||||||
|
- Code: [MIT](LICENSE.txt)
|
||||||
|
- Textures:
|
||||||
|
- [cmer_skeleton_mesh](http://minetest.fensta.bplaced.net/#id=1141): by I don't know (CC BY-SA 3.0)
|
||||||
|
- [cmer_skeleton_bone](https://opengameart.org/node/3755): by bart (CC0)
|
||||||
|
- Sounds:
|
||||||
|
- [cmer_skeleton_bones](https://opengameart.org/node/16324): by AntumDeluge (CC0)
|
||||||
|
|
||||||
|
### Requirements:
|
||||||
|
|
||||||
|
Depends: [cmer][], [cmer_zombie][]
|
||||||
|
|
||||||
|
Optional depends: [asm_spawneggs][]
|
||||||
|
|
||||||
|
### Links:
|
||||||
|
|
||||||
|
- [Changelog](CHANGES.txt)
|
||||||
|
- [TODO](TODO.txt)
|
||||||
|
|
||||||
|
|
||||||
|
[cmer]: https://forum.minetest.net/viewtopic.php?t=26684
|
||||||
|
[cmer_zombie]: https://github.com/AntumMT/mod-cmer/tree/zombie
|
||||||
|
[asm_spawneggs]: https://content.minetest.net/packages/AntumDeluge/asm_spawneggs/
|
|
@ -0,0 +1,6 @@
|
||||||
|
|
||||||
|
TODO:
|
||||||
|
- register skeleton entity with cmer
|
||||||
|
- register egg with asm_spawneggs
|
||||||
|
- add bone item
|
||||||
|
- add localization support
|
|
@ -0,0 +1,81 @@
|
||||||
|
|
||||||
|
cmer.register_mob({
|
||||||
|
name = "cmer:skeleton",
|
||||||
|
stats = {
|
||||||
|
hp = 55,
|
||||||
|
hostile = true,
|
||||||
|
lifetime = cmer_skeleton.lifetime,
|
||||||
|
can_jump = 1,
|
||||||
|
can_swim = true,
|
||||||
|
has_kockback = true,
|
||||||
|
},
|
||||||
|
modes = {
|
||||||
|
idle = {chance=0.3,},
|
||||||
|
walk = {chance=0.7, moving_speed=1,},
|
||||||
|
attack = {chance=0, moving_speed=3,},
|
||||||
|
},
|
||||||
|
model = {
|
||||||
|
mesh = "creatures_zombie.b3d",
|
||||||
|
textures = {"cmer_skeleton_mesh.png"},
|
||||||
|
collisionbox = {-0.25, -0.01, -0.25, 0.25, 1.65, 0.25},
|
||||||
|
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 = {
|
||||||
|
random = {
|
||||||
|
idle = {name="cmer_skeleton_bones", gain=1.0,},
|
||||||
|
walk = {name="cmer_skeleton_bones", gain=1.0,},
|
||||||
|
attack = {name="cmer_skeleton_bones", gain=1.0,},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
drops = {
|
||||||
|
{"cmer:bone", 1, chance=1},
|
||||||
|
},
|
||||||
|
combat = {
|
||||||
|
attack_damage = 13,
|
||||||
|
attack_radius = 2.0,
|
||||||
|
search_enemy = true,
|
||||||
|
search_type = "player",
|
||||||
|
search_radius = 20,
|
||||||
|
},
|
||||||
|
spawning = {
|
||||||
|
abm_nodes = {
|
||||||
|
spawn_on = {
|
||||||
|
"default:sand",
|
||||||
|
"default:desert_sand",
|
||||||
|
"default:stone",
|
||||||
|
"default:desert_stone",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
abm_interval = cmer_skeleton.spawn_interval,
|
||||||
|
abm_chance = cmer_skeleton.spawn_chance,
|
||||||
|
max_number = 1,
|
||||||
|
number = {min=1, max=2},
|
||||||
|
time_range = {min=0, max=23999},
|
||||||
|
light = {min=0, max=8},
|
||||||
|
height_limit = {min=-31000, max=31000},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
if core.global_exists("asm") then
|
||||||
|
asm.addEgg({
|
||||||
|
name = "skeleton",
|
||||||
|
title = "Skeleton",
|
||||||
|
inventory_image = "cmer_skeleton_inv.png",
|
||||||
|
spawn = "cmer:skeleton",
|
||||||
|
ingredients = "cmer:bone",
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
|
core.register_craftitem(":cmer:bone", {
|
||||||
|
description = "Bone",
|
||||||
|
inventory_image = "cmer_skeleton_bone.png",
|
||||||
|
stack_max = default_stack_max,
|
||||||
|
})
|
|
@ -0,0 +1,29 @@
|
||||||
|
|
||||||
|
cmer_skeleton = {}
|
||||||
|
cmer_skeleton.modname = core.get_current_modname()
|
||||||
|
cmer_skeleton.modpath = core.get_modpath(cmer_skeleton.modname)
|
||||||
|
|
||||||
|
function cmer_skeleton.log(lvl, msg)
|
||||||
|
if not msg then
|
||||||
|
msg = lvl
|
||||||
|
lvl = nil
|
||||||
|
end
|
||||||
|
|
||||||
|
msg = "[" .. cmer_skeleton.modname .. "] " .. msg
|
||||||
|
|
||||||
|
if not lvl then
|
||||||
|
core.log(msg)
|
||||||
|
else
|
||||||
|
core.log(lvl, msg)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
|
local scripts = {
|
||||||
|
"settings",
|
||||||
|
"entity",
|
||||||
|
}
|
||||||
|
|
||||||
|
for _, script in ipairs(scripts) do
|
||||||
|
dofile(cmer_skeleton.modpath .. "/" .. script .. ".lua")
|
||||||
|
end
|
|
@ -0,0 +1,8 @@
|
||||||
|
name = cmer_skeleton
|
||||||
|
title = Skeleton
|
||||||
|
description = A skeleton mob using the cmer API.
|
||||||
|
version = 1.0
|
||||||
|
author = Jordan Irwin (AntumDeluge)
|
||||||
|
license = MIT
|
||||||
|
depends = cmer, cmer_zombie
|
||||||
|
optional_depends = asm_spawneggs
|
|
@ -0,0 +1,24 @@
|
||||||
|
|
||||||
|
--- Entity lifespan.
|
||||||
|
--
|
||||||
|
-- @setting skeleton.lifetime
|
||||||
|
-- @settype int
|
||||||
|
-- @default 900 (15 minutes)
|
||||||
|
cmer_skeleton.lifetime = tonumber(core.settings:get("skeleton.lifetime")) or 900
|
||||||
|
|
||||||
|
--- Spawn rate frequency.
|
||||||
|
--
|
||||||
|
--
|
||||||
|
-- @setting skeleton.spawn_interval
|
||||||
|
-- @settype int
|
||||||
|
-- @default 120 (2 minutes)
|
||||||
|
-- @see [ABM definition](http://minetest.gitlab.io/minetest/definition-tables.html#abm-activeblockmodifier-definition)
|
||||||
|
cmer_skeleton.spawn_interval = tonumber(core.settings:get("skeleton.spawn_interval")) or 120
|
||||||
|
|
||||||
|
--- Chance of spawn at interval.
|
||||||
|
--
|
||||||
|
-- @setting skeleton.spawn_chance
|
||||||
|
-- @settype int
|
||||||
|
-- @default 7000
|
||||||
|
-- @see [ABM definition](http://minetest.gitlab.io/minetest/definition-tables.html#abm-activeblockmodifier-definition)
|
||||||
|
cmer_skeleton.spawn_chance = tonumber(core.settings:get("skeleton.spawn_chance")) or 7000
|
|
@ -0,0 +1,18 @@
|
||||||
|
|
||||||
|
# Entity lifespan.
|
||||||
|
#
|
||||||
|
# type: int
|
||||||
|
# default: 900
|
||||||
|
skeleton.lifetime (Lifespan) int 900 1
|
||||||
|
|
||||||
|
# Spawn interval in seconds.
|
||||||
|
#
|
||||||
|
# type: int
|
||||||
|
# default: 120 (2 minutes)
|
||||||
|
skeleton.spawn_interval (Spawn interval) int 120 1
|
||||||
|
|
||||||
|
# Chance of spawn at interval.
|
||||||
|
#
|
||||||
|
# type: int
|
||||||
|
# default: 7000
|
||||||
|
skeleton.spawn_chance (Spawn chance) int 7000 1
|
Binary file not shown.
Binary file not shown.
After Width: | Height: | Size: 388 B |
Binary file not shown.
After Width: | Height: | Size: 1.9 KiB |
Binary file not shown.
After Width: | Height: | Size: 519 B |
|
@ -199,6 +199,27 @@ shark.max_height (Shark max spawn height) int 100
|
||||||
shark.spawn_time (Shark spawn time) enum any day,night,any
|
shark.spawn_time (Shark spawn time) enum any day,night,any
|
||||||
|
|
||||||
|
|
||||||
|
[**skeleton]
|
||||||
|
|
||||||
|
# Entity lifespan.
|
||||||
|
#
|
||||||
|
# type: int
|
||||||
|
# default: 900
|
||||||
|
skeleton.lifetime (Lifespan) int 900 1
|
||||||
|
|
||||||
|
# Spawn interval in seconds.
|
||||||
|
#
|
||||||
|
# type: int
|
||||||
|
# default: 120 (2 minutes)
|
||||||
|
skeleton.spawn_interval (Spawn interval) int 120 1
|
||||||
|
|
||||||
|
# Chance of spawn at interval.
|
||||||
|
#
|
||||||
|
# type: int
|
||||||
|
# default: 7000
|
||||||
|
skeleton.spawn_chance (Spawn chance) int 7000 1
|
||||||
|
|
||||||
|
|
||||||
[**sneeker]
|
[**sneeker]
|
||||||
|
|
||||||
# Extra debugging messages.
|
# Extra debugging messages.
|
||||||
|
|
Loading…
Reference in New Issue