balrog causes great explosion on die, message of mod loaded
This commit is contained in:
parent
5712a7b634
commit
9be3b84e61
@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
|
|||||||
### Added
|
### Added
|
||||||
|
|
||||||
- detect nether and spawn into right nodes, more deep if and more chance
|
- detect nether and spawn into right nodes, more deep if and more chance
|
||||||
|
- on die balrog will cause a great xplosion
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
|
25
init.lua
25
init.lua
@ -192,11 +192,11 @@ mobs:register_mob("mobs_balrog:balrog", {
|
|||||||
stand_end = 240,
|
stand_end = 240,
|
||||||
walk_start = 240,
|
walk_start = 240,
|
||||||
walk_end = 300,
|
walk_end = 300,
|
||||||
walk_speed = 30,
|
walk_speed = 35,
|
||||||
run_speed = 45,
|
run_speed = 55,
|
||||||
punch_start = 300,
|
punch_start = 300,
|
||||||
punch_end = 380,
|
punch_end = 380,
|
||||||
punch_speed = 45,
|
punch_speed = 55,
|
||||||
},
|
},
|
||||||
on_die = function(self, pos)
|
on_die = function(self, pos)
|
||||||
self.object:remove()
|
self.object:remove()
|
||||||
@ -204,7 +204,7 @@ mobs:register_mob("mobs_balrog:balrog", {
|
|||||||
minetest.after(0.0, function()
|
minetest.after(0.0, function()
|
||||||
-- This has been taken from ../tnt/init.lua @243
|
-- This has been taken from ../tnt/init.lua @243
|
||||||
minetest.add_particlespawner({
|
minetest.add_particlespawner({
|
||||||
amount = 128,
|
amount = 196,
|
||||||
time = 0.1,
|
time = 0.1,
|
||||||
minpos = vector.subtract(pos, 10 / 2),
|
minpos = vector.subtract(pos, 10 / 2),
|
||||||
maxpos = vector.add(pos, 10 / 2),
|
maxpos = vector.add(pos, 10 / 2),
|
||||||
@ -221,8 +221,8 @@ mobs:register_mob("mobs_balrog:balrog", {
|
|||||||
})
|
})
|
||||||
tnt.boom(pos, {
|
tnt.boom(pos, {
|
||||||
name = "Balrog's Blast",
|
name = "Balrog's Blast",
|
||||||
radius = 6,
|
radius = 36,
|
||||||
damage_radius = 16,
|
damage_radius = 26,
|
||||||
disable_drops = true,
|
disable_drops = true,
|
||||||
ignore_protection = false,
|
ignore_protection = false,
|
||||||
ignore_on_blast = false,
|
ignore_on_blast = false,
|
||||||
@ -386,15 +386,4 @@ mobs:register_egg("mobs_balrog:balrog",
|
|||||||
mobs:alias_mob("mobs:balrog", "mobs_balrog:balrog")
|
mobs:alias_mob("mobs:balrog", "mobs_balrog:balrog")
|
||||||
|
|
||||||
|
|
||||||
--
|
print("[Mod] Mobs Balrog loaded.")
|
||||||
-- Minetest engine debug logging
|
|
||||||
--
|
|
||||||
|
|
||||||
if (minetest.settings:get("debug_log_level") == nil)
|
|
||||||
or (minetest.settings:get("debug_log_level") == "action")
|
|
||||||
or (minetest.settings:get("debug_log_level") == "info")
|
|
||||||
or (minetest.settings:get("debug_log_level") == "verbose")
|
|
||||||
then
|
|
||||||
|
|
||||||
minetest.log("action", "[Mod] Mobs Balrog [v0.4.0] loaded.")
|
|
||||||
end
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user