This commit is contained in:
Hamlet 2018-06-11 17:06:06 +02:00
parent f47afc8a0b
commit 0162c1a838
No known key found for this signature in database
GPG Key ID: A111DF36A0364661
3 changed files with 16 additions and 16 deletions

View File

@ -4,7 +4,7 @@
**NOTE:** This is Blockmen's CME Ghost mob ported to Mobs Redo, and tweaked.
**Version:** 0.2.0<br>
**Version:** 0.3.0<br>
**Source code's license:** GPL v3.0<br>
**Media (Textures, Models, Sounds) license:** CC-BY-SA 4.0 International.

View File

@ -23,7 +23,7 @@
--
local minetest_log_level = minetest.settings:get("debug_log_level")
local mod_load_message = "[Mod] Mobs Ghost Redo [v0.2.0] loaded."
local mod_load_message = "[Mod] Mobs Ghost Redo [v0.3.0] loaded."
--
@ -52,20 +52,19 @@ end
mobs:register_mob("mobs_ghost_redo:ghost", {
nametag = "",
type = "monster",
hp_min = 6,
hp_max = 12,
hp_min = 20,
hp_max = 30,
armor = 100,
walk_velocity = 1.6,
run_velocity = 2,
walk_chance = 50,
walk_velocity = 1,
run_velocity = 4,
walk_chance = 25,
fly = true,
fly_in = "air",
view_range = 15,
reach = 2,
damage = 2,
reach = 4,
damage = 4,
water_damage = false,
lava_damage = false,
light_damage = 1.17,
light_damage = 9999,
suffocation = false,
docile_by_day = false,
attack_animals = true,
@ -121,10 +120,12 @@ mobs:register_mob("mobs_ghost_redo:ghost", {
on_spawn = function(self, pos)
self.mesh = random_mesh()
self.object:set_properties({
mesh = self.mesh
mesh = self.mesh,
physical = false,
collide_with_objects = false
})
return true
end,
end
})
@ -141,8 +142,7 @@ mobs:spawn({name = "mobs_ghost_redo:ghost",
chance = 7,
active_object_count = 1,
min_height = -30912,
max_height = 31000,
day_toggle = false
max_height = 31000
})

View File

@ -4,4 +4,4 @@ author = Hamlet
description = Adds a ghost mob.
license = GPLv3 - CC BY-SA 4.0 International
forum = https://forum.minetest.net/viewtopic.php?f=9&t=19907
version = 0.2.0
version = 0.3.0