Update cmer_ghost mod to Git commit b350486...
https://github.com/AntumMT/mod-cmer/tree/b350486master
parent
9162886847
commit
188d0d8443
|
@ -93,7 +93,7 @@ The game includes the mods from the default [minetest_game](https://github.com/m
|
|||
* [dirt_monster][mobs_monster] ([MIT][lic.dirt_monster] -- version: [40c48e0 Git][ver.dirt_monster] *2021-05-20*
|
||||
* [dungeon_master][mobs_monster] ([MIT][lic.dungeon_master] -- version: [00c890f Git][ver.dungeon_master] *2021-05-20*
|
||||
* [folks][] ([GPL][lic.gpl3.0]) -- version: [0.2.0][ver.folks] *2021-02-23*
|
||||
* [ghost][creatures] ([Zlib][lic.creatures] / [CC BY-SA][lic.ccbysa3.0]) -- version: [c09aacb Git][ver.ghost] *2021-05-19*
|
||||
* [ghost][creatures] ([Zlib][lic.creatures] / [CC BY-SA][lic.ccbysa3.0]) -- version: [c09aacb Git][ver.cmer_ghost] *2021-05-24*
|
||||
* [kitten][mobs_animal] ([MIT][lic.mobs_kitten]) -- version: [34fac03 Git][ver.mobs_kitten] *2021-05-20*
|
||||
* [mese_monster][mobs_monster] ([MIT][lic.mese_monster]) -- version: [cd02839 Git][ver.mese_monster] *2021-05-20*
|
||||
* [oerkki][creatures] ([Zlib][lic.creatures] / [CC BY-SA][lic.ccbysa3.0]) -- version: [70410fe Git][ver.oerkki] *2021-05-05*
|
||||
|
@ -526,6 +526,7 @@ The game includes the mods from the default [minetest_game](https://github.com/m
|
|||
[ver.cleaner]: https://github.com/AntumMT/mod-cleaner/tree/e8359d8
|
||||
[ver.cmer]: https://github.com/AntumMT/mod-cmer/tree/093d654
|
||||
[ver.cmer_chicken]: http://github.com/AntumMT/mod-cmer/tree/5f451c1
|
||||
[ver.cmer_ghost]: https://github.com/AntumMT/mod-cmer/tree/b350486
|
||||
[ver.cmer_skeleton]: https://github.com/AntumMT/mod-skeleton/tree/466c9a6
|
||||
[ver.cmer_spider]: https://github.com/AntumMT/mod-spider/tree/d1a9a82
|
||||
[ver.cmer_zombie]: https://github.com/AntumMT/mod-cmer/tree/5b84737
|
||||
|
@ -549,7 +550,6 @@ The game includes the mods from the default [minetest_game](https://github.com/m
|
|||
[ver.fort_spikes]: https://github.com/xeranas/fort_spikes/tree/3b98b46
|
||||
[ver.gems_encrustable]: https://github.com/wowiamdiamonds/gems/tree/81d513d
|
||||
[ver.gems_tools]: https://github.com/captainLAD/gems/tree/b375432
|
||||
[ver.ghost]: https://github.com/AntumMT/mod-cmer/tree/c09aacb
|
||||
[ver.glass]: https://github.com/AntumMT/mod-glass/releases/tag/v1.0
|
||||
[ver.glow]: https://github.com/bdjnk/glow/tree/4c015a0
|
||||
[ver.hbarmor]: http://repo.or.cz/minetest_hbarmor.git/tree/93d994c
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
TODO:
|
||||
- add localization support
|
|
@ -27,88 +27,89 @@ dofile(cmer_ghost.modpath .. "/settings.lua")
|
|||
|
||||
|
||||
local def = {
|
||||
-- general
|
||||
name = "creatures:ghost",
|
||||
stats = {
|
||||
hp = 12,
|
||||
lifetime = cmer_ghost.lifetime,
|
||||
can_burn = true,
|
||||
can_fly = true,
|
||||
has_falldamage = false,
|
||||
has_kockback = true,
|
||||
light = {min = 0, max = 8},
|
||||
hostile = true,
|
||||
},
|
||||
-- general
|
||||
name = ":creatures:ghost",
|
||||
nametag = creatures.feature_nametags and "Ghost" or nil,
|
||||
stats = {
|
||||
hp = 12,
|
||||
lifetime = cmer_ghost.lifetime,
|
||||
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},
|
||||
},
|
||||
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.22, 0, -0.22, 0.22, 1.2, 0.22},
|
||||
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},
|
||||
},
|
||||
},
|
||||
model = {
|
||||
mesh = "creatures_ghost.b3d",
|
||||
textures = {"creatures_ghost.png"},
|
||||
collisionbox = {-0.22, 0, -0.22, 0.22, 1.2, 0.22},
|
||||
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},
|
||||
},
|
||||
},
|
||||
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,
|
||||
combat = {
|
||||
attack_damage = 2,
|
||||
attack_speed = 1.1,
|
||||
attack_radius = 0.9,
|
||||
|
||||
search_enemy = true,
|
||||
search_timer = 2,
|
||||
search_radius = 12,
|
||||
search_type = "player",
|
||||
},
|
||||
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 = cmer_ghost.spawn_interval,
|
||||
abm_chance = cmer_ghost.spawn_chance,
|
||||
max_number = 1,
|
||||
number = 1,
|
||||
time_range = {min = 18500, max = 4000},
|
||||
light = {min = 0, max = 8},
|
||||
height_limit = {min = 0, max = 80},
|
||||
spawning = {
|
||||
abm_nodes = {
|
||||
spawn_on = {"default:gravel", "default:dirt_with_grass", "default:dirt",
|
||||
"group:leaves", "group:sand"},
|
||||
},
|
||||
abm_interval = cmer_ghost.spawn_interval,
|
||||
abm_chance = cmer_ghost.spawn_chance,
|
||||
max_number = 1,
|
||||
number = 1,
|
||||
time_range = {min = 18500, max = 4000},
|
||||
light = {min = 0, max = 8},
|
||||
height_limit = {min = 0, max = 80},
|
||||
|
||||
spawner = {
|
||||
description = "Ghost Spawner",
|
||||
range = 8,
|
||||
number = 6,
|
||||
light = {min = 0, max = 8},
|
||||
}
|
||||
},
|
||||
spawner = {
|
||||
description = "Ghost Spawner",
|
||||
range = 8,
|
||||
number = 6,
|
||||
light = {min = 0, max = 8},
|
||||
}
|
||||
},
|
||||
|
||||
--drops = {
|
||||
-- {"creatures:rotten_flesh", {min = 1, max = 2}, chance = 0.7},
|
||||
--},
|
||||
--drops = {
|
||||
-- {"creatures:rotten_flesh", {min = 1, max = 2}, chance = 0.7},
|
||||
--},
|
||||
|
||||
}
|
||||
|
||||
cmer.register_mob(def)
|
||||
creatures.register_mob(def)
|
||||
|
||||
if core.global_exists("asm") then
|
||||
asm.addEgg({
|
||||
|
|
Loading…
Reference in New Issue