forked from VoxeLibre/VoxeLibre
Readjust mobs internal settings to not cause insane memory usage
This commit is contained in:
parent
71c50042e6
commit
f5cc2bab09
mods/ENTITIES
|
@ -438,21 +438,35 @@ function mobs:spawn_specific(name, dimension, type_of_spawning, biomes, min_ligh
|
|||
--this will take extra time, a whole few nanoseconds
|
||||
--but will allow modularity
|
||||
|
||||
|
||||
if type_of_spawning == "air" then
|
||||
print("---------------------------- HERE")
|
||||
print(name)
|
||||
print("---------------------------- sdfkhjsadfhjklsfsehjkfsdhjk")
|
||||
end
|
||||
|
||||
--build dimensions modularly
|
||||
if not spawn_dictionary[dimension] then
|
||||
spawn_dictionary[dimension] = {}
|
||||
end
|
||||
|
||||
--build biome list modularly
|
||||
for _,added_biome in pairs(biomes) do
|
||||
--print(added_biome)
|
||||
if not spawn_dictionary[dimension][added_biome] then
|
||||
spawn_dictionary[dimension][added_biome] = {}
|
||||
end
|
||||
|
||||
--build type of spawning per biome modularly
|
||||
if not spawn_dictionary[dimension][added_biome][type_of_spawning] then
|
||||
spawn_dictionary[dimension][added_biome][type_of_spawning] = {}
|
||||
end
|
||||
|
||||
--build light levels to spawn mob
|
||||
for i = min_light,max_light do
|
||||
if not spawn_dictionary[dimension][added_biome][type_of_spawning][i] then
|
||||
spawn_dictionary[dimension][added_biome][type_of_spawning][i] = {}
|
||||
end
|
||||
|
||||
for y = min_height, max_height do
|
||||
--print(y)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
|
||||
--[[
|
||||
local key = #spawn_dictionary[dimension] + 1
|
||||
|
|
|
@ -290,13 +290,13 @@ mobs_mc.spawn = {
|
|||
mobs_mc.spawn_height = {
|
||||
water = tonumber(minetest.settings:get("water_level")) or 0, -- Water level in the Overworld
|
||||
|
||||
-- Overworld boundaries (inclusive)
|
||||
overworld_min = -2999,
|
||||
overworld_max = 31000,
|
||||
-- Overworld boundaries (inclusive) --had to make this reasonable otherwise mob spawning would go nuts using data
|
||||
overworld_min = -64,-- -2999,
|
||||
overworld_max = 256,-- 31000,
|
||||
|
||||
-- Nether boundaries (inclusive)
|
||||
nether_min = -3369,
|
||||
nether_max = -3000,
|
||||
nether_min = -29067,-- -3369,
|
||||
nether_max = -28939,-- -3000,
|
||||
|
||||
-- End boundaries (inclusive)
|
||||
end_min = -6200,
|
||||
|
|
Loading…
Reference in New Issue