Readjust mobs internal settings to not cause insane memory usage

This commit is contained in:
jordan4ibanez 2021-04-08 08:29:16 -04:00
parent 47c59edb51
commit adab48ff0c
2 changed files with 27 additions and 13 deletions

View File

@ -438,22 +438,36 @@ 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

View File

@ -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,