MrJake222 / AUNIS

Stargate-inspired Minecraft Mod
GNU General Public License v3.0
44 stars 20 forks source link

Crash With Just Enough Dimensions #98

Open brom10 opened 4 years ago

brom10 commented 4 years ago

When attempting to use the JED /tpj command to teleport to a void dimension created with JED, it first says it failed to execute the command, then when trying the command a second time, it crashes. I have tested it with just JED and aunis and its dependent mods installed. crash-2020-03-31_17.27.28-server.txt

Here is my dimensions.json from JED if that could be affecting things

dimensions.txt

pjc21 commented 4 years ago

@brom10 I also had this issue and after some testing have found a few ways to do this,

1st way

Is just to remove the line "require_exact_match": true unless you need it.

Show ``` { "dim": 8, "normal_biomes": true, "dimensiontype": { "id": 8, "name": "Void Dimension", "suffix": "_dim8", "keeploaded": true, "worldprovider": "WorldProviderSurfaceJED" }, "jed": { "CanSpawnHostiles": false, "CanSpawnPeacefulMobs": false }, "worldinfo_onetime": { "generatorName": "flat", "generatorOptions": "3;minecraft:air;127;", "DayTime": 6000, "GameRules": { "doMobSpawning": "false" } } } ```

2nd way

You can use a default minecraft world provider instead of the JED one, however then some JED specific options will not work with non-JED world providers, like the

  • "CanSpawnHostiles": false
  • "CanSpawnPeacefulMobs": false

but as the gamerule "doMobSpawning": "false" is also added, no mobs should spawn anyway.

Show ``` { "dim": 8, "normal_biomes": true, "dimensiontype": { "id": 8, "name": "Void Dimension", "suffix": "_dim8", "keeploaded": true, "worldprovider": "net.minecraft.world.WorldProviderSurface", "require_exact_match": true }, "jed": { "CanSpawnHostiles": false, "CanSpawnPeacefulMobs": false }, "worldinfo_onetime": { "generatorName": "flat", "generatorOptions": "3;minecraft:air;127;", "DayTime": 6000, "GameRules": { "doMobSpawning": "false" } } } ```

3rd way

Is to use an existing dimensiontype and then override the world provider with a JED one in order to be able to use the JED specific options also.

for this one you will also need to set the "enableOverrideWorldProvider=true" in the justenoughdimensions.cfg file.

Show ``` { "dim": 8, "normal_biomes": true, "dimensiontype": { "id": 8, "name": "Void_Dimension", "suffix": "_dim8", "keeploaded": true, "existing_dimensiontype": "overworld", "require_exact_match": true }, "jed": { "WorldProviderOverride": "WorldProviderSurfaceJED", "CanSpawnHostiles": false, "CanSpawnPeacefulMobs": false }, "worldinfo_onetime": { "generatorName": "flat", "generatorOptions": "3;minecraft:air;127;", "DayTime": 6000, "GameRules": { "doMobSpawning": "false" } } } ```