An underground/surface structure crashes the game if there's nowhere it can spawn ontop/inside of.

Published by mac44444 on Fri, 08/09/2019 - 23:11
Upvotes: 0
Issue description

May have to test that more.

A big example is for when you load in a  Flat world with the "The Void" preset.


A structure would  try to load in nothingness, and would cause the game to crash.

this becomes a problem for whenever i try to test out items without anything bothering me.

..Atleast i think thats what the problem is.

Issue comments

How big is the spawning frequency of the said structure and how big it is? Too big structures spawning too often can cause many crashes like this.

Sorry for the late response, The current frequency is 8K and its a relatively small structure.

It causes no problems on regular flat worlds, only for the "The Void" preset.

*And, it causes no crashes when i set the structure to a Air structure.

Time: 8/10/19 10:17 PM
Description: Exception in server tick loop

java.lang.IllegalArgumentException: bound must be positive
    at java.util.Random.nextInt(
    at net.mcreator.overpower.MCreatorSwordshrine.generateWorld(
    at net.mcreator.overpower.overpower.lambda$generate$0(
    at java.util.ArrayList.forEach(
    at net.mcreator.overpower.overpower.generate(
    at net.minecraftforge.fml.common.registry.GameRegistry.generateWorld(
    at net.minecraft.server.MinecraftServer.initialWorldChunkLoad(
    at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(
    at net.minecraft.server.integrated.IntegratedServer.init(
Here you go!


Donate to MCreator

By donating to developers you can speed up development, as with more resources, we can dedicate more time to MCreator. It is a free project made by developers working on it in their free time.