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