detect nether and spawn into right nodes, more deep if and more chance
This commit is contained in:
parent
603ddf50bb
commit
e234b4064d
@ -14,8 +14,9 @@ for VenenuX minetest game, https://forum.minetest.net/viewtopic.php?f=11&t=18459
|
|||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
**Spawn chance**: 1 in half a million (twice the chance of being struck
|
**Spawn chance**: 1 en a thousand (same the chance of being struck
|
||||||
by a lightning in real life) under -1500 on the ground
|
by a lightning in real life) under -1500 on the ground, but if nether then
|
||||||
|
will be 1 in half a thousand under -8000 on the ground.
|
||||||
|
|
||||||
**Lowered stats**: HP range to a min of 200 to a max of 600; if you are
|
**Lowered stats**: HP range to a min of 200 to a max of 600; if you are
|
||||||
alone then you are dead, if you are in a party you might defeat it.
|
alone then you are dead, if you are in a party you might defeat it.
|
||||||
|
12
init.lua
12
init.lua
@ -77,7 +77,7 @@ end
|
|||||||
|
|
||||||
local CHANCE = tonumber(minetest.settings:get("mobs_balrog_chance"))
|
local CHANCE = tonumber(minetest.settings:get("mobs_balrog_chance"))
|
||||||
if (CHANCE == nil) then
|
if (CHANCE == nil) then
|
||||||
CHANCE = 500000
|
CHANCE = 50000
|
||||||
end
|
end
|
||||||
|
|
||||||
local MAX_NUMBER = tonumber(minetest.settings:get("mobs_balrog_aoc"))
|
local MAX_NUMBER = tonumber(minetest.settings:get("mobs_balrog_aoc"))
|
||||||
@ -92,7 +92,7 @@ end
|
|||||||
|
|
||||||
local MAX_HEIGHT = tonumber(minetest.settings:get("mobs_balrog_max_height"))
|
local MAX_HEIGHT = tonumber(minetest.settings:get("mobs_balrog_max_height"))
|
||||||
if (MAX_HEIGHT == nil) then
|
if (MAX_HEIGHT == nil) then
|
||||||
MAX_HEIGHT = -6000
|
MAX_HEIGHT = -1800
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
@ -131,6 +131,12 @@ if (PATH_FINDER == nil) then
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
local spawn_nodes = {"group:stone"}
|
||||||
|
if minetest.get_modpath("nether") then
|
||||||
|
spawn_nodes = {"nether:rack", "nether:rack_deep", "group:stone"}
|
||||||
|
CHANCE = 10000
|
||||||
|
MAX_HEIGHT = -8000
|
||||||
|
end
|
||||||
--
|
--
|
||||||
-- Balrog entity
|
-- Balrog entity
|
||||||
--
|
--
|
||||||
@ -359,7 +365,7 @@ minetest.register_tool("mobs_balrog:balrog_whip", {
|
|||||||
|
|
||||||
|
|
||||||
mobs:spawn({name = "mobs_balrog:balrog",
|
mobs:spawn({name = "mobs_balrog:balrog",
|
||||||
nodes = {"group:stone"},
|
nodes = spawn_nodes,
|
||||||
max_light = MAX_LIGHT,
|
max_light = MAX_LIGHT,
|
||||||
min_light = MIN_LIGHT,
|
min_light = MIN_LIGHT,
|
||||||
interval = INTERVAL,
|
interval = INTERVAL,
|
||||||
|
@ -12,7 +12,7 @@ mobs_balrog_interval (Interval) int 60
|
|||||||
|
|
||||||
# Spawn chance, higher is less likely
|
# Spawn chance, higher is less likely
|
||||||
# Probabilita' di comparsa, maggiore e' e meno e' probabile
|
# Probabilita' di comparsa, maggiore e' e meno e' probabile
|
||||||
mobs_balrog_chance (Chance) int 500000
|
mobs_balrog_chance (Chance) int 50000
|
||||||
|
|
||||||
# Max number of spawned barlogs
|
# Max number of spawned barlogs
|
||||||
# Numero massimo di balrog generati
|
# Numero massimo di balrog generati
|
||||||
|
Loading…
x
Reference in New Issue
Block a user