Jump to content

[1.7.10] biome replaced with mushroom island shore


Glistre

Recommended Posts

Not sure what happened, my custom biome is now always replaced with mushroom island shore....tried changing the ID, deleting the config file, restarting eclipse, deleting world,,,

 

no matter what I do it 's mushroom island shore now ...

 

Any ideas?

Link to comment
Share on other sites

I cannot explain it

Problem was created when I tried adding a config for the biomes like this:

package com.glistre.glistremod.biome;

 

import net.minecraft.world.biome.BiomeGenBase;

import net.minecraftforge.common.BiomeDictionary;

import net.minecraftforge.common.BiomeManager;

import net.minecraftforge.common.BiomeManager.BiomeEntry;

import net.minecraftforge.common.BiomeManager.BiomeType;

import net.minecraftforge.common.BiomeDictionary.Type;

 

 

 

public class BiomeRegistry {

 

public static void GlistreMod(){

initializeBiome();

registerBiome();

}

 

public static BiomeGenBase biomeGlistre;

public static BiomeGenBase biomeFreon;

public static int biomeGlistreID = 155;

public static int biomeFreonID = 154;

 

public static void initializeBiome(){

 

// 1.7.10 valid biome IDs use 0-39, 129-167, neg one unallocated

      biomeGlistre = new GlistreBiome(biomeGlistreID).setBiomeName("Glistering Biome");

      biomeFreon = new FreonBiome(biomeFreonID).setBiomeName("Freon Biome");

 

 

    }

 

public static void registerBiome(){

BiomeDictionary.registerBiomeType(biomeGlistre, Type.FOREST);

BiomeDictionary.registerBiomeType(biomeFreon, Type.COLD);

//change the next line to make biome more frequent, 50 is 50% probability of spawning, change to 10 later

// BiomeManager.addSpawnBiome(biomeGlistre);

BiomeEntry glistreBiomeEntry = new BiomeEntry(biomeGlistre, 50);

BiomeEntry freonBiomeEntry = new BiomeEntry(biomeFreon, 20);

//need to try with .COOL it did not seem to work

BiomeManager.addBiome(BiomeType.WARM, glistreBiomeEntry);

BiomeManager.addBiome(BiomeType.WARM, freonBiomeEntry);

}[/code]

 

When I put this "public static int = biomeGlistreID"

 

in my custom config file:

[/code] package com.glistre.glistremod.lib;

 

import com.glistre.glistremod.GlistreMod;

import cpw.mods.fml.common.FMLCommonHandler;

import net.minecraftforge.common.config.Configuration;

 

public class ConfigurationGlistre {

 

public static boolean cheapRecipe;

//ore attempt

public static boolean enableWorldGeneration;

 

//

 

//ID attempt

public static int biomeGlistreID;

public static int biomeFreonID;

// public static int dimensionId;

 

public static final boolean CHEAPRECIPE_DEFAULT = false;

public static final String CHEAPRECIPE_NAME = "Enables the cheap recipe for the Silver Sword and Glistering Bread";

public static final boolean WORLDSETTINGS_DEFAULT = true;

public static final String WORLD_SETTINGS = "Allows custom ore to generate in the world.";

 

public static final String CATEGORY_BIOME = "Change the ID of the Biomes";

// public static final String CATEGORY_DIMENSION = "Change the ID of the Dimension";

 

 

 

public static void loadConfig(){

FMLCommonHandler.instance().bus().register(GlistreMod.instance);

 

// recipes

final String RECIPES = GlistreMod.config.CATEGORY_GENERAL + GlistreMod.config.CATEGORY_SPLITTER + "Recipes";

GlistreMod.config.addCustomCategoryComment(RECIPES, "Enable or disable recipes");

cheapRecipe = GlistreMod.config.get(RECIPES, CHEAPRECIPE_NAME, CHEAPRECIPE_DEFAULT).getBoolean(CHEAPRECIPE_DEFAULT);

 

// world settings

final String WORLDGEN = GlistreMod.config.CATEGORY_GENERAL + GlistreMod.config.CATEGORY_SPLITTER + "World Settings";

GlistreMod.config.addCustomCategoryComment(WORLDGEN, "Enable or disable world settings");

enableWorldGeneration = GlistreMod.config.get(WORLDGEN, WORLD_SETTINGS, WORLDSETTINGS_DEFAULT).getBoolean(WORLDSETTINGS_DEFAULT);

 

final String CATEGORY_BIOME = GlistreMod.config.CATEGORY_GENERAL + GlistreMod.config.CATEGORY_SPLITTER + "Biomes";

GlistreMod.config.addCustomCategoryComment(CATEGORY_BIOME, "ID of the Biomes");

biomeGlistreID = GlistreMod.config.get(Configuration.CATEGORY_GENERAL, "Glistering Biome ID", 155).getInt(); 

biomeFreonID = GlistreMod.config.get(Configuration.CATEGORY_GENERAL, "Freon Biome ID", 154).getInt(); 

 

/* final String CATEGORY_DIMENSION = GlistreMod.config.CATEGORY_GENERAL + GlistreMod.config.CATEGORY_SPLITTER + "Dimensions";

GlistreMod.config.addCustomCategoryComment(CATEGORY_DIMENSION, "ID of the Dimension");

dimensionId = GlistreMod.config.get(Configuration.CATEGORY_GENERAL, "dimensionFreonId", 8).getInt();  */

 

//   genLapisInExtremeHills= config.get(Configuration.CATEGORY_GENERAL, "Generate Lapis in Extreme Hills Biome only", false).getBoolean(false);

 

if(GlistreMod.config.hasChanged()){

 

GlistreMod.config.save();

}

}

 

}

[/code]

 

Not really sure why but I had public static int biomeGlistreID ... instead of public static int biomeGlistreID = 155;

 

It's all working now ..or so it seems

 

I still have a problem in that my config file settings when I change them after launching minecraft they do not save into the config file correctly.. . ie, I have to actually edit the config file manually to change the config setting

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • I have created a very simple mod that is just supposed to send a message to a player when they join. Upon adding it to a server (that has other mods on it), the following crash message appears: [12:13:01] [main/ERROR] [minecraft/Main]: Failed to start the minecraft server net.minecraftforge.fml.LoadingFailedException: Loading errors encountered: [         Epic Mod (epicmod) has failed to load correctly §7java.lang.NoSuchMethodException: net.ed.epicmod.EpicMod.<init>() ]         at net.minecraftforge.fml.ModLoader.waitForTransition(ModLoader.java:243) ~[fmlcore-1.19.2-43.2.14.jar%23548!/:?] {}         at net.minecraftforge.fml.ModLoader.lambda$dispatchAndHandleError$24(ModLoader.java:208) ~[fmlcore-1.19.2-43.2.14.jar%23548!/:?] {}         at java.util.Optional.ifPresent(Optional.java:178) ~[?:?] {re:mixin}         at net.minecraftforge.fml.ModLoader.dispatchAndHandleError(ModLoader.java:208) ~[fmlcore-1.19.2-43.2.14.jar%23548!/:?] {}         at net.minecraftforge.fml.ModLoader.lambda$gatherAndInitializeMods$14(ModLoader.java:185) ~[fmlcore-1.19.2-43.2.14.jar%23548!/:?] {}         at java.lang.Iterable.forEach(Iterable.java:75) ~[?:?] {re:mixin,re:computing_frames}         at net.minecraftforge.fml.ModLoader.gatherAndInitializeMods(ModLoader.java:185) ~[fmlcore-1.19.2-43.2.14.jar%23548!/:?] {}         at net.minecraftforge.server.loading.ServerModLoader.load(ServerModLoader.java:32) ~[forge-1.19.2-43.2.14-universal.jar%23552!/:?] {re:classloading}         at net.minecraft.server.Main.main(Main.java:113) ~[server-1.19.2-20220805.130853-srg.jar%23547!/:?] {re:classloading,re:mixin,pl:mixin:A}         at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] {}         at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?] {}         at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] {}         at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?] {}         at net.minecraftforge.fml.loading.targets.CommonServerLaunchHandler.lambda$launchService$0(CommonServerLaunchHandler.java:29) ~[fmlloader-1.19.2-43.2.14.jar%2367!/:?] {}         at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:30) [modlauncher-10.0.8.jar%2354!/:?] {}         at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) [modlauncher-10.0.8.jar%2354!/:?] {}         at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) [modlauncher-10.0.8.jar%2354!/:?] {}         at cpw.mods.modlauncher.Launcher.run(Launcher.java:106) [modlauncher-10.0.8.jar%2354!/:?] {}         at cpw.mods.modlauncher.Launcher.main(Launcher.java:77) [modlauncher-10.0.8.jar%2354!/:?] {}         at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) [modlauncher-10.0.8.jar%2354!/:?] {}         at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) [modlauncher-10.0.8.jar%2354!/:?] {}         at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:141) [bootstraplauncher-1.1.2.jar:?] {} Why could this be? I have tried using the mod on another forge server with only this mod installed and it works there. Is my mod somehow interfering with other mods? MC version is 1.19.2
    • how to make animated doors?, maybe geckolib, but i don't know how to code it?
    • For crash 1, set max-tick-time to -1 in your server.properties Crash 2 shows a conflict or incompatibility between LuckPerms and the mod boh-0.0.6.1-forge-1.20.1_2.jar
    • Add the crash-report or latest.log (logs-folder) with sites like https://mclo.gs/ and paste the link to it here  
    • so my minecraft crashes when opening my world, i played without any troubles for about 5 days and today it started tweaking.. pls help me
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.