Jump to content

[HELP FAST!] [1.6]when I create a biome it crashes when creating a world


xcoopergangx

Recommended Posts

I have been trying to add my custom block to my biome but it keeps crashing. Now before you say "go look at other topics, this is a common question", let me tell you I have already looked at endless tutorials, and topics about this and I still couldn't get it to work. I have made sure I registered my custom blocks before my biome, and made the ids below 256.

 

ERROR

 

 

Jul 22, 2013 3:52:10 PM net.minecraft.launchwrapper.LogWrapper log

INFO: Using tweak class name cpw.mods.fml.common.launcher.FMLTweaker

2013-07-22 15:52:10 [iNFO] [ForgeModLoader] Forge Mod Loader version 6.2.19.789 for Minecraft 1.6.2 loading

2013-07-22 15:52:10 [iNFO] [ForgeModLoader] Java is Java HotSpot Client VM, version 1.7.0_25, running on Windows 7:x86:6.1, installed at C:\Program Files\Java\jre7

2013-07-22 15:52:10 [iNFO] [ForgeModLoader] Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation

2013-07-22 15:52:10 [iNFO] [sTDOUT] Loaded 39 rules from AccessTransformer config file fml_at.cfg

2013-07-22 15:52:10 [iNFO] [sTDOUT] Loaded 107 rules from AccessTransformer config file forge_at.cfg

2013-07-22 15:52:11 [sEVERE] [ForgeModLoader] The binary patch set is missing. Things are probably about to go very wrong.

2013-07-22 15:52:11 [iNFO] [ForgeModLoader] Launching wrapped minecraft

2013-07-22 15:52:12 [iNFO] [Minecraft-Client] Setting user: Player543

2013-07-22 15:52:12 [iNFO] [Minecraft-Client] (Session ID is null)

2013-07-22 15:52:12 [iNFO] [Minecraft-Client] LWJGL Version: 2.9.0

2013-07-22 15:52:13 [iNFO] [Minecraft-Client] Reloading ResourceManager: Default

2013-07-22 15:52:14 [iNFO] [sTDOUT]

2013-07-22 15:52:14 [iNFO] [sTDOUT] Starting up SoundSystem...

2013-07-22 15:52:14 [iNFO] [MinecraftForge] Attempting early MinecraftForge initialization

2013-07-22 15:52:14 [iNFO] [sTDOUT] MinecraftForge v9.10.0.789 Initialized

2013-07-22 15:52:14 [iNFO] [ForgeModLoader] MinecraftForge v9.10.0.789 Initialized

2013-07-22 15:52:15 [iNFO] [sTDOUT] Initializing LWJGL OpenAL

2013-07-22 15:52:15 [iNFO] [sTDOUT]    (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)

2013-07-22 15:52:15 [iNFO] [sTDOUT] Replaced 101 ore recipies

2013-07-22 15:52:15 [iNFO] [MinecraftForge] Completed early MinecraftForge initialization

2013-07-22 15:52:15 [iNFO] [ForgeModLoader] Reading custom logging properties from C:\Users\Christian\Desktop\forge\mcp\jars\config\logging.properties

2013-07-22 15:52:15 [OFF] [ForgeModLoader] Logging level for ForgeModLoader logging is set to ALL

2013-07-22 15:52:15 [iNFO] [sTDOUT] OpenAL initialized.

2013-07-22 15:52:15 [iNFO] [ForgeModLoader] Searching C:\Users\Christian\Desktop\forge\mcp\jars\mods for mods

2013-07-22 15:52:15 [sEVERE] [ForgeModLoader] The mcmod.info file in bin cannot be parsed as valid JSON. It will be ignored

argo.saj.InvalidSyntaxException: At line 18, column 21:  Invalid character at start of value [m].

at argo.saj.SajParser.aJsonValue(SajParser.java:201)

at argo.saj.SajParser.arrayString(SajParser.java:79)

at argo.saj.SajParser.aJsonValue(SajParser.java:198)

at argo.saj.SajParser.aFieldToken(SajParser.java:137)

at argo.saj.SajParser.objectString(SajParser.java:114)

at argo.saj.SajParser.aJsonValue(SajParser.java:194)

at argo.saj.SajParser.arrayString(SajParser.java:79)

at argo.saj.SajParser.parse(SajParser.java:58)

at argo.jdom.JdomParser.parse(JdomParser.java:36)

at cpw.mods.fml.common.MetadataCollection.from(MetadataCollection.java:44)

at cpw.mods.fml.common.discovery.DirectoryDiscoverer.exploreFileSystem(DirectoryDiscoverer.java:68)

at cpw.mods.fml.common.discovery.DirectoryDiscoverer.discover(DirectoryDiscoverer.java:52)

at cpw.mods.fml.common.discovery.ContainerType.findMods(ContainerType.java:42)

at cpw.mods.fml.common.discovery.ModCandidate.explore(ModCandidate.java:64)

at cpw.mods.fml.common.discovery.ModDiscoverer.identifyMods(ModDiscoverer.java:118)

at cpw.mods.fml.common.Loader.identifyMods(Loader.java:354)

at cpw.mods.fml.common.Loader.loadMods(Loader.java:486)

at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:172)

at net.minecraft.client.Minecraft.startGame(Minecraft.java:470)

at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:796)

at net.minecraft.client.main.Main.main(Main.java:93)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at net.minecraft.launchwrapper.Launch.launch(Launch.java:57)

at net.minecraft.launchwrapper.Launch.main(Launch.java:18)

2013-07-22 15:52:15 [iNFO] [sTDOUT]

2013-07-22 15:52:17 [iNFO] [ForgeModLoader] Forge Mod Loader has identified 4 mods to load

2013-07-22 15:52:17 [iNFO] [mcp] Activating mod mcp

2013-07-22 15:52:17 [iNFO] [FML] Activating mod FML

2013-07-22 15:52:17 [iNFO] [Forge] Activating mod Forge

2013-07-22 15:52:17 [iNFO] [titaniummod] Activating mod titaniummod

2013-07-22 15:52:17 [iNFO] [ForgeModLoader] Registering Forge Packet Handler

2013-07-22 15:52:17 [iNFO] [ForgeModLoader] Succeeded registering Forge Packet Handler

2013-07-22 15:52:17 [iNFO] [ForgeModLoader] Configured a dormant chunk cache size of 0

2013-07-22 15:52:18 [sEVERE] [ForgeModLoader] Fatal errors were detected during the transition from INITIALIZATION to POSTINITIALIZATION. Loading cannot continue

2013-07-22 15:52:18 [sEVERE] [ForgeModLoader]

mcp{8.04} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized

FML{6.2.19.789} [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized

Forge{9.10.0.789} [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized

titaniummod{v1.2} [titaniummod] (bin) Unloaded->Constructed->Pre-initialized->Errored

2013-07-22 15:52:18 [sEVERE] [ForgeModLoader] The following problems were captured during this phase

2013-07-22 15:52:18 [sEVERE] [ForgeModLoader] Caught exception from titaniummod

java.lang.NullPointerException

at minecraftmod.CorruptBiome.<init>(CorruptBiome.java:16)

at minecraftmod.TitaniumMod.load(TitaniumMod.java:130)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:540)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

at com.google.common.eventbus.EventBus.post(EventBus.java:267)

at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:193)

at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:173)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

at com.google.common.eventbus.EventBus.post(EventBus.java:267)

at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:104)

at cpw.mods.fml.common.Loader.initializeMods(Loader.java:697)

at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:222)

at net.minecraft.client.Minecraft.startGame(Minecraft.java:506)

at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:796)

at net.minecraft.client.main.Main.main(Main.java:93)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at net.minecraft.launchwrapper.Launch.launch(Launch.java:57)

at net.minecraft.launchwrapper.Launch.main(Launch.java:18)

2013-07-22 15:52:18 [iNFO] [sTDOUT] ---- Minecraft Crash Report ----

2013-07-22 15:52:18 [iNFO] [sTDOUT] // There are four lights!

2013-07-22 15:52:18 [iNFO] [sTDOUT]

2013-07-22 15:52:18 [iNFO] [sTDOUT] Time: 7/22/13 3:52 PM

2013-07-22 15:52:18 [iNFO] [sTDOUT] Description: Initializing game

2013-07-22 15:52:18 [iNFO] [sTDOUT]

2013-07-22 15:52:18 [iNFO] [sTDOUT] java.lang.NullPointerException

2013-07-22 15:52:18 [iNFO] [sTDOUT] at minecraftmod.CorruptBiome.<init>(CorruptBiome.java:16)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at minecraftmod.TitaniumMod.load(TitaniumMod.java:130)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at java.lang.reflect.Method.invoke(Unknown Source)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:540)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at java.lang.reflect.Method.invoke(Unknown Source)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at com.google.common.eventbus.EventBus.post(EventBus.java:267)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:193)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:173)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at java.lang.reflect.Method.invoke(Unknown Source)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at com.google.common.eventbus.EventBus.post(EventBus.java:267)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:104)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at cpw.mods.fml.common.Loader.initializeMods(Loader.java:697)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:222)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at net.minecraft.client.Minecraft.startGame(Minecraft.java:506)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:796)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at net.minecraft.client.main.Main.main(Main.java:93)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at java.lang.reflect.Method.invoke(Unknown Source)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at net.minecraft.launchwrapper.Launch.launch(Launch.java:57)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at net.minecraft.launchwrapper.Launch.main(Launch.java:18)

2013-07-22 15:52:18 [iNFO] [sTDOUT]

2013-07-22 15:52:18 [iNFO] [sTDOUT]

2013-07-22 15:52:18 [iNFO] [sTDOUT] A detailed walkthrough of the error, its code path and all known details is as follows:

2013-07-22 15:52:18 [iNFO] [sTDOUT] ---------------------------------------------------------------------------------------

2013-07-22 15:52:18 [iNFO] [sTDOUT]

2013-07-22 15:52:18 [iNFO] [sTDOUT] -- Head --

2013-07-22 15:52:18 [iNFO] [sTDOUT] Stacktrace:

2013-07-22 15:52:18 [iNFO] [sTDOUT] at minecraftmod.CorruptBiome.<init>(CorruptBiome.java:16)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at minecraftmod.TitaniumMod.load(TitaniumMod.java:130)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at java.lang.reflect.Method.invoke(Unknown Source)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:540)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at java.lang.reflect.Method.invoke(Unknown Source)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at com.google.common.eventbus.EventBus.post(EventBus.java:267)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:193)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:173)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at java.lang.reflect.Method.invoke(Unknown Source)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at com.google.common.eventbus.EventBus.post(EventBus.java:267)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:104)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at cpw.mods.fml.common.Loader.initializeMods(Loader.java:697)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:222)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at net.minecraft.client.Minecraft.startGame(Minecraft.java:506)

2013-07-22 15:52:18 [iNFO] [sTDOUT]

2013-07-22 15:52:18 [iNFO] [sTDOUT] -- Initialization --

2013-07-22 15:52:18 [iNFO] [sTDOUT] Details:

2013-07-22 15:52:18 [iNFO] [sTDOUT] Stacktrace:

2013-07-22 15:52:18 [iNFO] [sTDOUT] at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:796)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at net.minecraft.client.main.Main.main(Main.java:93)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at java.lang.reflect.Method.invoke(Unknown Source)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at net.minecraft.launchwrapper.Launch.launch(Launch.java:57)

2013-07-22 15:52:18 [iNFO] [sTDOUT] at net.minecraft.launchwrapper.Launch.main(Launch.java:18)

2013-07-22 15:52:18 [iNFO] [sTDOUT]

2013-07-22 15:52:18 [iNFO] [sTDOUT] -- System Details --

2013-07-22 15:52:18 [iNFO] [sTDOUT] Details:

2013-07-22 15:52:18 [iNFO] [sTDOUT] Minecraft Version: 1.6.2

2013-07-22 15:52:18 [iNFO] [sTDOUT] Operating System: Windows 7 (x86) version 6.1

2013-07-22 15:52:18 [iNFO] [sTDOUT] Java Version: 1.7.0_25, Oracle Corporation

2013-07-22 15:52:18 [iNFO] [sTDOUT] Java VM Version: Java HotSpot Client VM (mixed mode), Oracle Corporation

2013-07-22 15:52:18 [iNFO] [sTDOUT] Memory: 917780080 bytes (875 MB) / 1060372480 bytes (1011 MB) up to 1060372480 bytes (1011 MB)

2013-07-22 15:52:18 [iNFO] [sTDOUT] JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M

2013-07-22 15:52:18 [iNFO] [sTDOUT] AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used

2013-07-22 15:52:18 [iNFO] [sTDOUT] Suspicious classes: FML and Forge are installed

2013-07-22 15:52:18 [iNFO] [sTDOUT] IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0

2013-07-22 15:52:18 [iNFO] [sTDOUT] FML: MCP v8.04 FML v6.2.19.789 Minecraft Forge 9.10.0.789 4 mods loaded, 4 mods active

2013-07-22 15:52:18 [iNFO] [sTDOUT] mcp{8.04} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized

2013-07-22 15:52:18 [iNFO] [sTDOUT] FML{6.2.19.789} [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized

2013-07-22 15:52:18 [iNFO] [sTDOUT] Forge{9.10.0.789} [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized

2013-07-22 15:52:18 [iNFO] [sTDOUT] titaniummod{v1.2} [titaniummod] (bin) Unloaded->Constructed->Pre-initialized->Errored

2013-07-22 15:52:18 [iNFO] [sTDOUT] Launched Version: 1.6

2013-07-22 15:52:18 [iNFO] [sTDOUT] LWJGL: 2.9.0

2013-07-22 15:52:18 [iNFO] [sTDOUT] OpenGL: GeForce GT 630/PCIe/SSE2 GL version 4.3.0, NVIDIA Corporation

2013-07-22 15:52:18 [iNFO] [sTDOUT] Is Modded: Definitely; Client brand changed to 'fml,forge'

2013-07-22 15:52:18 [iNFO] [sTDOUT] Type: Client (map_client.txt)

2013-07-22 15:52:18 [iNFO] [sTDOUT] Resource Pack: Default

2013-07-22 15:52:18 [iNFO] [sTDOUT] Current Language: English (US)

2013-07-22 15:52:18 [iNFO] [sTDOUT] Profiler Position: N/A (disabled)

2013-07-22 15:52:18 [iNFO] [sTDOUT] Vec3 Pool Size: ~~ERROR~~ NullPointerException: null

2013-07-22 15:52:18 [iNFO] [sTDOUT] #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\Christian\Desktop\forge\mcp\jars\.\crash-reports\crash-2013-07-22_15.52.18-client.txt

AL lib: (EE) alc_cleanup: 1 device not closed

 

 

 

BiomeGen class

 

package minecraftmod;

import java.util.Random;

import net.minecraft.block.Block;
import net.minecraft.world.World;
import net.minecraft.world.biome.BiomeGenBase;
import net.minecraft.world.gen.feature.WorldGenDesertWells;

public class CorruptBiome extends BiomeGenBase
{
    public CorruptBiome(int par1)
    {
        super(par1);
        this.spawnableCreatureList.clear();
        this.topBlock = (byte)TitaniumMod.CorruptGrass.blockID;
        this.fillerBlock = (byte)TitaniumMod.CorruptDirt.blockID;
        this.theBiomeDecorator.treesPerChunk = -999;
        this.theBiomeDecorator.deadBushPerChunk = 2;
        this.theBiomeDecorator.reedsPerChunk = 50;
        this.theBiomeDecorator.cactiPerChunk = 10;
    }

    public void decorate(World par1World, Random par2Random, int par3, int par4)
    {
        super.decorate(par1World, par2Random, par3, par4);

        if (par2Random.nextInt(1000) == 0)
        {
            int k = par3 + par2Random.nextInt(16) + 8;
            int l = par4 + par2Random.nextInt(16) + 8;
            WorldGenDesertWells worldgendesertwells = new WorldGenDesertWells();
            worldgendesertwells.generate(par1World, par2Random, k, par1World.getHeightValue(k, l) + 1, l);
        }
    }
}

 

I know the error points to this line

this.topBlock = (byte)TitaniumMod.CorruptGrass.blockID;

 

Main Mod class

 

//Biomes
	CorruptBiome = new CorruptBiome(24).setBiomeName("Tutorial Biome").setTemperatureRainfall(2.0F, 2.0F);
	GameRegistry.addBiome(CorruptBiome);

//biomes
public static BiomeGenBase CorruptBiome;
CorruptGrass = new CorruptGrass(202, "CorruptGrass").setUnlocalizedName("corruptgrass").setHardness(2.0F).setStepSound(Block.soundGrassFootstep).setResistance(20.0F);

CorruptDirt = new CorruptDirt(203, "CorruptDirt").setUnlocalizedName("corruptdirt").setHardness(2.0F).setStepSound(Block.soundGrassFootstep).setResistance(20.0F);

  GameRegistry.registerBlock(CorruptGrass, "CorruptGrass");
	  GameRegistry.registerBlock(CorruptDirt, "CorruptDirt");

(not in actual order)

 

 

 

Link to comment
Share on other sites

I tried fixing it with a tutorial but I get this error when creating a new world.

 

 

Jul 22, 2013 8:03:32 PM net.minecraft.launchwrapper.LogWrapper log

INFO: Using tweak class name cpw.mods.fml.common.launcher.FMLTweaker

2013-07-22 20:03:32 [iNFO] [ForgeModLoader] Forge Mod Loader version 6.2.19.789 for Minecraft 1.6.2 loading

2013-07-22 20:03:32 [iNFO] [ForgeModLoader] Java is Java HotSpot Client VM, version 1.7.0_25, running on Windows 7:x86:6.1, installed at C:\Program Files\Java\jre7

2013-07-22 20:03:32 [iNFO] [ForgeModLoader] Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation

2013-07-22 20:03:32 [iNFO] [sTDOUT] Loaded 39 rules from AccessTransformer config file fml_at.cfg

2013-07-22 20:03:33 [iNFO] [sTDOUT] Loaded 107 rules from AccessTransformer config file forge_at.cfg

2013-07-22 20:03:33 [sEVERE] [ForgeModLoader] The binary patch set is missing. Things are probably about to go very wrong.

2013-07-22 20:03:34 [iNFO] [ForgeModLoader] Launching wrapped minecraft

2013-07-22 20:03:35 [iNFO] [Minecraft-Client] Setting user: Player524

2013-07-22 20:03:35 [iNFO] [Minecraft-Client] (Session ID is null)

2013-07-22 20:03:35 [iNFO] [Minecraft-Client] LWJGL Version: 2.9.0

2013-07-22 20:03:37 [iNFO] [Minecraft-Client] Reloading ResourceManager: Default

2013-07-22 20:03:38 [iNFO] [sTDOUT]

2013-07-22 20:03:38 [iNFO] [sTDOUT] Starting up SoundSystem...

2013-07-22 20:03:38 [iNFO] [MinecraftForge] Attempting early MinecraftForge initialization

2013-07-22 20:03:38 [iNFO] [sTDOUT] MinecraftForge v9.10.0.789 Initialized

2013-07-22 20:03:38 [iNFO] [ForgeModLoader] MinecraftForge v9.10.0.789 Initialized

2013-07-22 20:03:38 [iNFO] [sTDOUT] Initializing LWJGL OpenAL

2013-07-22 20:03:38 [iNFO] [sTDOUT]    (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)

2013-07-22 20:03:38 [iNFO] [sTDOUT] OpenAL initialized.

2013-07-22 20:03:38 [iNFO] [sTDOUT] Replaced 101 ore recipies

2013-07-22 20:03:38 [iNFO] [MinecraftForge] Completed early MinecraftForge initialization

2013-07-22 20:03:38 [iNFO] [ForgeModLoader] Reading custom logging properties from C:\Users\Christian\Desktop\forge\mcp\jars\config\logging.properties

2013-07-22 20:03:38 [OFF] [ForgeModLoader] Logging level for ForgeModLoader logging is set to ALL

2013-07-22 20:03:39 [iNFO] [ForgeModLoader] Searching C:\Users\Christian\Desktop\forge\mcp\jars\mods for mods

2013-07-22 20:03:39 [sEVERE] [ForgeModLoader] The mcmod.info file in bin cannot be parsed as valid JSON. It will be ignored

argo.saj.InvalidSyntaxException: At line 18, column 21:  Invalid character at start of value [m].

at argo.saj.SajParser.aJsonValue(SajParser.java:201)

at argo.saj.SajParser.arrayString(SajParser.java:79)

at argo.saj.SajParser.aJsonValue(SajParser.java:198)

at argo.saj.SajParser.aFieldToken(SajParser.java:137)

at argo.saj.SajParser.objectString(SajParser.java:114)

at argo.saj.SajParser.aJsonValue(SajParser.java:194)

at argo.saj.SajParser.arrayString(SajParser.java:79)

at argo.saj.SajParser.parse(SajParser.java:58)

at argo.jdom.JdomParser.parse(JdomParser.java:36)

at cpw.mods.fml.common.MetadataCollection.from(MetadataCollection.java:44)

at cpw.mods.fml.common.discovery.DirectoryDiscoverer.exploreFileSystem(DirectoryDiscoverer.java:68)

at cpw.mods.fml.common.discovery.DirectoryDiscoverer.discover(DirectoryDiscoverer.java:52)

at cpw.mods.fml.common.discovery.ContainerType.findMods(ContainerType.java:42)

at cpw.mods.fml.common.discovery.ModCandidate.explore(ModCandidate.java:64)

at cpw.mods.fml.common.discovery.ModDiscoverer.identifyMods(ModDiscoverer.java:118)

at cpw.mods.fml.common.Loader.identifyMods(Loader.java:354)

at cpw.mods.fml.common.Loader.loadMods(Loader.java:486)

at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:172)

at net.minecraft.client.Minecraft.startGame(Minecraft.java:470)

at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:796)

at net.minecraft.client.main.Main.main(Main.java:93)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at net.minecraft.launchwrapper.Launch.launch(Launch.java:57)

at net.minecraft.launchwrapper.Launch.main(Launch.java:18)

2013-07-22 20:03:39 [iNFO] [sTDOUT]

2013-07-22 20:03:41 [iNFO] [ForgeModLoader] Forge Mod Loader has identified 4 mods to load

2013-07-22 20:03:41 [iNFO] [mcp] Activating mod mcp

2013-07-22 20:03:41 [iNFO] [FML] Activating mod FML

2013-07-22 20:03:41 [iNFO] [Forge] Activating mod Forge

2013-07-22 20:03:41 [iNFO] [titaniummod] Activating mod titaniummod

2013-07-22 20:03:41 [iNFO] [ForgeModLoader] Registering Forge Packet Handler

2013-07-22 20:03:41 [iNFO] [ForgeModLoader] Succeeded registering Forge Packet Handler

2013-07-22 20:03:41 [iNFO] [ForgeModLoader] Configured a dormant chunk cache size of 0

2013-07-22 20:03:43 [WARNING] [ForgeModLoader] The mod titaniummod tried to register the entity class class minecraftmod.EntityShuriken which was already registered - if you wish to override default naming for FML mod entities, register it here first

2013-07-22 20:03:43 [iNFO] [ForgeModLoader] Forge Mod Loader has successfully loaded 4 mods

2013-07-22 20:03:43 [WARNING] [titaniummod] Mod titaniummod is missing a pack.mcmeta file, things may not work well

2013-07-22 20:03:43 [iNFO] [Minecraft-Client] Reloading ResourceManager: Default, FMLFileResourcePack:titaniummod

2013-07-22 20:03:43 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: titaniummod:textures/blocks/corruptgrass.png

2013-07-22 20:03:43 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: titaniummod:textures/blocks/corruptdirt.png

2013-07-22 20:03:43 [iNFO] [sTDOUT]

2013-07-22 20:03:43 [iNFO] [sTDOUT] SoundSystem shutting down...

2013-07-22 20:03:43 [iNFO] [sTDOUT]    Author: Paul Lamb, www.paulscode.com

2013-07-22 20:03:43 [iNFO] [sTDOUT]

2013-07-22 20:03:43 [iNFO] [sTDOUT]

2013-07-22 20:03:43 [iNFO] [sTDOUT] Starting up SoundSystem...

2013-07-22 20:03:43 [iNFO] [sTDOUT] Initializing LWJGL OpenAL

2013-07-22 20:03:43 [iNFO] [sTDOUT]    (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)

2013-07-22 20:03:44 [iNFO] [sTDOUT] OpenAL initialized.

2013-07-22 20:03:44 [iNFO] [sTDOUT]

2013-07-22 20:03:44 [sEVERE] [Minecraft-Client] Realms: Invalid session id

2013-07-22 20:03:48 [iNFO] [sTDOUT] Deleting level New World

2013-07-22 20:03:48 [iNFO] [sTDOUT] Attempt 1...

2013-07-22 20:03:48 [iNFO] [sTDOUT] Deleting C:\Users\Christian\Desktop\forge\mcp\jars\.\saves\New World\data

2013-07-22 20:03:48 [iNFO] [sTDOUT] Deleting C:\Users\Christian\Desktop\forge\mcp\jars\.\saves\New World\level.dat

2013-07-22 20:03:48 [iNFO] [sTDOUT] Deleting C:\Users\Christian\Desktop\forge\mcp\jars\.\saves\New World\level.dat_mcr

2013-07-22 20:03:48 [iNFO] [sTDOUT] Deleting C:\Users\Christian\Desktop\forge\mcp\jars\.\saves\New World\players

2013-07-22 20:03:48 [iNFO] [sTDOUT] Deleting C:\Users\Christian\Desktop\forge\mcp\jars\.\saves\New World\session.lock

2013-07-22 20:03:51 [iNFO] [Minecraft-Server] Starting integrated minecraft server version 1.6.2

2013-07-22 20:03:51 [iNFO] [Minecraft-Server] Generating keypair

2013-07-22 20:03:51 [iNFO] [Minecraft-Server] Converting map!

2013-07-22 20:03:51 [iNFO] [Minecraft-Server] Scanning folders...

2013-07-22 20:03:51 [iNFO] [Minecraft-Server] Total conversion count is 0

2013-07-22 20:03:51 [iNFO] [sTDERR] net.minecraft.util.ReportedException: Exception initializing level

2013-07-22 20:03:51 [iNFO] [sTDERR] at net.minecraft.world.World.<init>(World.java:311)

2013-07-22 20:03:51 [iNFO] [sTDERR] at net.minecraft.world.WorldServer.<init>(WorldServer.java:108)

2013-07-22 20:03:51 [iNFO] [sTDERR] at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:74)

2013-07-22 20:03:51 [iNFO] [sTDERR] at net.minecraft.server.integrated.IntegratedServer.startServer(IntegratedServer.java:107)

2013-07-22 20:03:51 [iNFO] [sTDERR] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:443)

2013-07-22 20:03:51 [iNFO] [sTDERR] at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)

2013-07-22 20:03:51 [iNFO] [sTDERR] Caused by: java.lang.NullPointerException

2013-07-22 20:03:51 [iNFO] [sTDERR] at net.minecraft.world.gen.layer.GenLayerBiome.getInts(GenLayerBiome.java:45)

2013-07-22 20:03:51 [iNFO] [sTDERR] at net.minecraft.world.gen.layer.GenLayerZoom.getInts(GenLayerZoom.java:21)

2013-07-22 20:03:51 [iNFO] [sTDERR] at net.minecraft.world.gen.layer.GenLayerZoom.getInts(GenLayerZoom.java:21)

2013-07-22 20:03:51 [iNFO] [sTDERR] at net.minecraft.world.gen.layer.GenLayerHills.getInts(GenLayerHills.java:19)

2013-07-22 20:03:51 [iNFO] [sTDERR] at net.minecraft.world.gen.layer.GenLayerZoom.getInts(GenLayerZoom.java:21)

2013-07-22 20:03:51 [iNFO] [sTDERR] at net.minecraft.world.gen.layer.GenLayerAddIsland.getInts(GenLayerAddIsland.java:23)

2013-07-22 20:03:51 [iNFO] [sTDERR] at net.minecraft.world.gen.layer.GenLayerZoom.getInts(GenLayerZoom.java:21)

2013-07-22 20:03:51 [iNFO] [sTDERR] at net.minecraft.world.gen.layer.GenLayerShore.getInts(GenLayerShore.java:19)

2013-07-22 20:03:51 [iNFO] [sTDERR] at net.minecraft.world.gen.layer.GenLayerSwampRivers.getInts(GenLayerSwampRivers.java:19)

2013-07-22 20:03:51 [iNFO] [sTDERR] at net.minecraft.world.gen.layer.GenLayerZoom.getInts(GenLayerZoom.java:21)

2013-07-22 20:03:51 [iNFO] [sTDERR] at net.minecraft.world.gen.layer.GenLayerZoom.getInts(GenLayerZoom.java:21)

2013-07-22 20:03:51 [iNFO] [sTDERR] at net.minecraft.world.gen.layer.GenLayerSmooth.getInts(GenLayerSmooth.java:21)

2013-07-22 20:03:51 [iNFO] [sTDERR] at net.minecraft.world.gen.layer.GenLayerRiverMix.getInts(GenLayerRiverMix.java:34)

2013-07-22 20:03:51 [iNFO] [sTDERR] at net.minecraft.world.biome.WorldChunkManager.findBiomePosition(WorldChunkManager.java:241)

2013-07-22 20:03:51 [iNFO] [sTDERR] at net.minecraft.world.WorldServer.createSpawnPosition(WorldServer.java:811)

2013-07-22 20:03:51 [iNFO] [sTDERR] at net.minecraft.world.WorldServer.initialize(WorldServer.java:792)

2013-07-22 20:03:51 [iNFO] [sTDERR] at net.minecraft.world.World.<init>(World.java:296)

2013-07-22 20:03:51 [iNFO] [sTDERR] ... 5 more

2013-07-22 20:03:51 [sEVERE] [Minecraft-Server] Encountered an unexpected exception ReportedException

net.minecraft.util.ReportedException: Exception initializing level

at net.minecraft.world.World.<init>(World.java:311)

at net.minecraft.world.WorldServer.<init>(WorldServer.java:108)

at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:74)

at net.minecraft.server.integrated.IntegratedServer.startServer(IntegratedServer.java:107)

at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:443)

at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)

Caused by: java.lang.NullPointerException

at net.minecraft.world.gen.layer.GenLayerBiome.getInts(GenLayerBiome.java:45)

at net.minecraft.world.gen.layer.GenLayerZoom.getInts(GenLayerZoom.java:21)

at net.minecraft.world.gen.layer.GenLayerZoom.getInts(GenLayerZoom.java:21)

at net.minecraft.world.gen.layer.GenLayerHills.getInts(GenLayerHills.java:19)

at net.minecraft.world.gen.layer.GenLayerZoom.getInts(GenLayerZoom.java:21)

at net.minecraft.world.gen.layer.GenLayerAddIsland.getInts(GenLayerAddIsland.java:23)

at net.minecraft.world.gen.layer.GenLayerZoom.getInts(GenLayerZoom.java:21)

at net.minecraft.world.gen.layer.GenLayerShore.getInts(GenLayerShore.java:19)

at net.minecraft.world.gen.layer.GenLayerSwampRivers.getInts(GenLayerSwampRivers.java:19)

at net.minecraft.world.gen.layer.GenLayerZoom.getInts(GenLayerZoom.java:21)

at net.minecraft.world.gen.layer.GenLayerZoom.getInts(GenLayerZoom.java:21)

at net.minecraft.world.gen.layer.GenLayerSmooth.getInts(GenLayerSmooth.java:21)

at net.minecraft.world.gen.layer.GenLayerRiverMix.getInts(GenLayerRiverMix.java:34)

at net.minecraft.world.biome.WorldChunkManager.findBiomePosition(WorldChunkManager.java:241)

at net.minecraft.world.WorldServer.createSpawnPosition(WorldServer.java:811)

at net.minecraft.world.WorldServer.initialize(WorldServer.java:792)

at net.minecraft.world.World.<init>(World.java:296)

... 5 more

2013-07-22 20:03:51 [sEVERE] [Minecraft-Server] This crash report has been saved to: C:\Users\Christian\Desktop\forge\mcp\jars\.\crash-reports\crash-2013-07-22_20.03.51-server.txt

2013-07-22 20:03:51 [iNFO] [Minecraft-Server] Stopping server

2013-07-22 20:03:51 [iNFO] [Minecraft-Server] Saving players

2013-07-22 20:03:51 [iNFO] [Minecraft-Server] Saving worlds

2013-07-22 20:03:51 [iNFO] [ForgeModLoader] The state engine was in incorrect state SERVER_STARTING and forced into state SERVER_STOPPED. Errors may have been discarded.

 

 

 

World provider class

package minecraftmod;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.util.ChunkCoordinates;
import net.minecraft.util.MathHelper;
import net.minecraft.util.Vec3;
import net.minecraft.util.Vec3Pool;
import net.minecraft.world.World;
import net.minecraft.world.WorldProvider;
import net.minecraft.world.biome.WorldChunkManagerHell;
import net.minecraft.world.chunk.IChunkProvider;
public class WorldProviderTutorial extends WorldProvider
{
private float[] colorsSunriseSunset = new float[4];
public void registerWorldChunkManager()
{
this.worldChunkMgr = new WorldChunkManagerHell(TitaniumMod.CorruptBiome, this.dimensionId, this.dimensionId);

this.hasNoSky = false;
}
public IChunkProvider createChunkGenerator()
{
return new ChunkProviderTutorial(this.worldObj, this.worldObj.getSeed(), false);
}
public int getAverageGroundLevel()
{
return 0;
}
@SideOnly(Side.CLIENT)
public boolean doesXZShowFog(int par1, int par2)
{
return false;
}
public String getDimensionName()
{
return "UnDead";
}
public boolean renderStars()
{
return true;
}
public float getStarBrightness(World world, float f)
{
return 10.0F;
}
public boolean renderClouds()
{
return true;
}
public boolean renderVoidFog()
{
return false;
}
public boolean renderEndSky()
{
return false;
}
public float setSunSize()
{
return 10.0F;
}
public float setMoonSize()
{
return 8.0F;
}
@SideOnly(Side.CLIENT)
public boolean isSkyColored()
{
return true;
}
public boolean canRespawnHere()
{
return false;
}
public boolean isSurfaceWorld()
{
return true;
}
@SideOnly(Side.CLIENT)
public float getCloudHeight()
{
return 128.0F;
}
@SideOnly(Side.CLIENT)
public String getSunTexture()
{
return "/Main:TwinSuns.png";
}
public boolean canCoordinateBeSpawn(int par1, int par2)
{
return false;
}
public ChunkCoordinates getEntrancePortalLocation()
{
return new ChunkCoordinates(50, 5, 0);
}
protected void generateLightBrightnessTable()
{
float f = 12.0F;
for (int i = 0; i <= 15; i++)
{
float f1 = 12.0F - i / 15.0F;
this.lightBrightnessTable[i] = ((1.0F - f1) / (f1 * 3.0F + 1.0F) * (1.0F - f) + f);
}
}
@SideOnly(Side.CLIENT)
public String getWelcomeMessage()
{
if ((this instanceof WorldProviderTutorial))
{
return "Entering Tut Dimension";
}
return null;
}
@SideOnly(Side.CLIENT)
public float[] calcSunriseSunsetColors(float par1, float par2)
{
float f2 = 0.4F;
float f3 = MathHelper.cos(par1 * 3.141593F * 2.0F) - 0.0F;
float f4 = -0.0F;
if ((f3 >= f4 - f2) && (f3 <= f4 + f2))
{
float f5 = (f3 - f4) / f2 * 0.5F + 0.5F;
float f6 = 1.0F - (1.0F - MathHelper.sin(f5 * 3.141593F)) * 0.99F;
f6 *= f6;
this.colorsSunriseSunset[0] = (f5 * 0.3F + 0.7F);
this.colorsSunriseSunset[1] = (f5 * f5 * 0.7F + 0.2F);
this.colorsSunriseSunset[2] = (f5 * f5 * 0.0F + 0.2F);
this.colorsSunriseSunset[3] = f6;
return this.colorsSunriseSunset;
}
return null;
}
public float calculateCelestialAngle(long par1, float par3)
{
int j = (int)(par1 % 24000L);
float f1 = (j + par3) / 24000.0F - 0.25F;
if (f1 < 0.0F)
{
f1 += 1.0F;
}
if (f1 > 1.0F)
{
f1 -= 1.0F;
}
float f2 = f1;
f1 = 1.0F - (float)((Math.cos(f1 * 3.141592653589793D) + 1.0D) / 2.0D);
f1 = f2 + (f1 - f2) / 3.0F;
return f1;
}
@SideOnly(Side.CLIENT)
public Vec3 getFogColor(float par1, float par2)
{
int i = 10518688;
float f2 = MathHelper.cos(par1 * 3.141593F * 2.0F) * 2.0F + 0.5F;
if (f2 < 0.0F)
{
f2 = 0.0F;
}
if (f2 > 1.0F)
{
f2 = 1.0F;
}
float f3 = (i >> 16 & 0xFF) / 255.0F;
float f4 = (i >> 8 & 0xFF) / 255.0F;
float f5 = (i & 0xFF) / 255.0F;
f3 *= (f2 * 0.0F + 0.15F);
f4 *= (f2 * 0.0F + 0.15F);
f5 *= (f2 * 0.0F + 0.15F);
return this.worldObj.getWorldVec3Pool().getVecFromPool(f3, f4, f5);
}
}

 

biome class

package minecraftmod;

import java.util.Random;

import net.minecraft.world.biome.BiomeGenBase;
import net.minecraft.world.gen.feature.WorldGenerator;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.world.IBlockAccess;


public class CorruptBiome extends BiomeGenBase {

public CorruptBiome(int par1) {
	super(par1);
	this.topBlock = (byte)TitaniumMod.CorruptGrass.blockID;
			this.fillerBlock = (byte)TitaniumMod.CorruptDirt.blockID;

			this.minHeight = 0.1F;
			this.maxHeight = 0.6F;
			this.spawnableMonsterList.clear();
			this.spawnableCreatureList.clear();
			this.setBiomeName("Corrupt");
}

public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
{
return (WorldGenerator)(par1Random.nextInt(5) == 0 ? this.worldGeneratorForest : (par1Random.nextInt(10) == 0 ? this.worldGeneratorBigTree : this.worldGeneratorTrees));
}
}

chunk provider class

package minecraftmod;
import java.util.List;
import java.util.Random;
import net.minecraft.block.Block;
import net.minecraft.entity.EnumCreatureType;
import net.minecraft.util.IProgressUpdate;
import net.minecraft.util.MathHelper;
import net.minecraft.world.ChunkPosition;
import net.minecraft.world.SpawnerAnimals;
import net.minecraft.world.World;
import net.minecraft.world.biome.BiomeGenBase;
import net.minecraft.world.biome.WorldChunkManager;
import net.minecraft.world.chunk.Chunk;
import net.minecraft.world.chunk.IChunkProvider;
import net.minecraft.world.gen.MapGenBase;
import net.minecraft.world.gen.MapGenCaves;
import net.minecraft.world.gen.MapGenRavine;
import net.minecraft.world.gen.NoiseGeneratorOctaves;
import net.minecraft.world.gen.feature.MapGenScatteredFeature;
import net.minecraft.world.gen.feature.WorldGenLakes;
import net.minecraft.world.gen.structure.MapGenMineshaft;
import net.minecraft.world.gen.structure.MapGenStronghold;
import net.minecraft.world.gen.structure.MapGenVillage;
public class ChunkProviderTutorial implements IChunkProvider
{
private Random rand;
private NoiseGeneratorOctaves noiseGen1;
private NoiseGeneratorOctaves noiseGen2;
private NoiseGeneratorOctaves noiseGen3;
private NoiseGeneratorOctaves noiseGen4;
public NoiseGeneratorOctaves noiseGen5;
public NoiseGeneratorOctaves noiseGen6;
public NoiseGeneratorOctaves mobSpawnerNoise;
private World worldObj;
private final boolean mapFeaturesEnabled;
private double[] noiseArray;
private double[] stoneNoise = new double[256];
private MapGenBase caveGenerator = new MapGenCaves();
private MapGenStronghold strongholdGenerator = new MapGenStronghold();
private MapGenVillage villageGenerator = new MapGenVillage();
private MapGenMineshaft mineshaftGenerator = new MapGenMineshaft();
private MapGenScatteredFeature scatteredFeatureGenerator = new MapGenScatteredFeature();
private MapGenBase ravineGenerator = new MapGenRavine();
private BiomeGenBase[] biomesForGeneration;
double[] noise3;
double[] noise1;
double[] noise2;
double[] noise5;
double[] noise6;
float[] parabolicField;
int[][] field_73219_j = new int[32][32];
public ChunkProviderTutorial(World par1World, long par2, boolean par4) {
this.worldObj = par1World;
this.mapFeaturesEnabled = par4;
this.rand = new Random(par2);
this.noiseGen1 = new NoiseGeneratorOctaves(this.rand, 16);
this.noiseGen2 = new NoiseGeneratorOctaves(this.rand, 16);
this.noiseGen3 = new NoiseGeneratorOctaves(this.rand, ;
this.noiseGen4 = new NoiseGeneratorOctaves(this.rand, 4);
this.noiseGen5 = new NoiseGeneratorOctaves(this.rand, 10);
this.noiseGen6 = new NoiseGeneratorOctaves(this.rand, 16);
this.mobSpawnerNoise = new NoiseGeneratorOctaves(this.rand, ;
}
/**
* Generates the shape of the terrain for the chunk though its all stone though the water is frozen if the
* temperature is low enough
*/
public void generateTerrain(int par1, int par2, byte[] par3ArrayOfByte)
{
byte b0 = 4;
byte b1 = 16;
byte b2 = 63;
int k = b0 + 1;
byte b3 = 17;
int l = b0 + 1;
this.biomesForGeneration = this.worldObj.getWorldChunkManager().getBiomesForGeneration(this.biomesForGeneration, par1 * 4 - 2, par2 * 4 - 2, k + 5, l + 5);
this.noiseArray = this.initializeNoiseField(this.noiseArray, par1 * b0, 0, par2 * b0, k, b3, l);
for (int i1 = 0; i1 < b0; ++i1)
{
for (int j1 = 0; j1 < b0; ++j1)
{
for (int k1 = 0; k1 < b1; ++k1)
{
         double d0 = 0.125D;
         double d1 = this.noiseArray[((i1 + 0) * l + j1 + 0) * b3 + k1 + 0];
         double d2 = this.noiseArray[((i1 + 0) * l + j1 + 1) * b3 + k1 + 0];
         double d3 = this.noiseArray[((i1 + 1) * l + j1 + 0) * b3 + k1 + 0];
         double d4 = this.noiseArray[((i1 + 1) * l + j1 + 1) * b3 + k1 + 0];
         double d5 = (this.noiseArray[((i1 + 0) * l + j1 + 0) * b3 + k1 + 1] - d1) * d0;
         double d6 = (this.noiseArray[((i1 + 0) * l + j1 + 1) * b3 + k1 + 1] - d2) * d0;
         double d7 = (this.noiseArray[((i1 + 1) * l + j1 + 0) * b3 + k1 + 1] - d3) * d0;
         double d8 = (this.noiseArray[((i1 + 1) * l + j1 + 1) * b3 + k1 + 1] - d4) * d0;
         for (int l1 = 0; l1 < 8; ++l1)
         {
         double d9 = 0.25D;
         double d10 = d1;
         double d11 = d2;
         double d12 = (d3 - d1) * d9;
         double d13 = (d4 - d2) * d9;
         for (int i2 = 0; i2 < 4; ++i2)
         {
         int j2 = i2 + i1 * 4 << 11 | 0 + j1 * 4 << 7 | k1 * 8 + l1;
         short short1 = 128;
         j2 -= short1;
         double d14 = 0.25D;
         double d15 = (d11 - d10) * d14;
         double d16 = d10 - d15;
         for (int k2 = 0; k2 < 4; ++k2)
         {
         if ((d16 += d15) > 0.0D)
         {
                 /** Main filler block fill's all the underground, replaces block stone **/
                 par3ArrayOfByte[j2 += short1] = (byte)TitaniumMod.CorruptDirt.blockID;//
         }
         else if (k1 * 8 + l1 < b2)
         {
                 par3ArrayOfByte[j2 += short1] = (byte)Block.waterStill.blockID;
         }
         else
         {
                 par3ArrayOfByte[j2 += short1] = 0;
         }
         }
         d10 += d12;
         d11 += d13;
         }
         d1 += d5;
         d2 += d6;
         d3 += d7;
         d4 += d8;
         }
}
}
}
}
public void replaceBlocksForBiome(int par1, int par2, byte[] par3ArrayOfByte, BiomeGenBase[] par4ArrayOfBiomeGenBase)
{
byte var5 = 63;
double var6 = 0.03125D;
this.stoneNoise = this.noiseGen4.generateNoiseOctaves(this.stoneNoise, par1 * 16, par2 * 16, 0, 16, 16, 1, var6 * 2.0D, var6 * 2.0D, var6 * 2.0D);
for (int var8 = 0; var8 < 16; var8++)
{
for (int var9 = 0; var9 < 16; var9++)
{
BiomeGenBase var10 = par4ArrayOfBiomeGenBase[(var9 + var8 * 16)];
float var11 = var10.getFloatTemperature();
int var12 = (int)(this.stoneNoise[(var8 + var9 * 16)] / 3.0D + 3.0D + this.rand.nextDouble() * 0.25D);
int var13 = -1;
byte var14 = var10.topBlock;
byte var15 = var10.fillerBlock;
for (int var16 = 127; var16 >= 0; var16--)
{
         int var17 = (var9 * 16 + var8) * 128 + var16;
         if (var16 <= 0 + this.rand.nextInt(5))
         {
         par3ArrayOfByte[var17] = ((byte)Block.bedrock.blockID);
         }
         else
         {
         byte var18 = par3ArrayOfByte[var17];
         if (var18 == 0)
         {
         var13 = -1;
         }
         /** Main filler block fill's all the underground, replaces block stone **/
         else if (var18 != TitaniumMod.CorruptDirt.blockID)
         {
         if (var13 == -1)
         {
         if (var12 == 0)
         {
                 var14 = 0;
                
                 /** change to custom dirt **/
                 var15 = (byte)TitaniumMod.CorruptGrass.blockID;//
         }
         else if ((var16 >= var5 - 4) && (var16 <= var5 + 1))
         {
                 var14 = var10.topBlock;
                 var15 = var10.fillerBlock;
         }
         if ((var16 < var5) && (var14 == 0))
         {
                 if (var11 < 0.15F)
                 {
                 var14 = (byte)Block.ice.blockID;
                 }
                 else
                 {
                 var14 = (byte)Block.waterStill.blockID;
                 }
         }
         var13 = var12;
         if (var16 >= var5 - 1)
         {
                 par3ArrayOfByte[var17] = var14;
         }
         else
         {
                 par3ArrayOfByte[var17] = var15;
         }
         }
         else if (var13 > 0)
         {
         var13--;
         par3ArrayOfByte[var17] = var15;
         if ((var13 == 0) && (var15 == Block.sand.blockID))
         {
                 var13 = this.rand.nextInt(4);
                 var15 = (byte)Block.sandStone.blockID;
         }
         }
         }
         }
}
}
}
}
public Chunk loadChunk(int par1, int par2)
{
return provideChunk(par1, par2);
}
public Chunk provideChunk(int par1, int par2)
{
this.rand.setSeed(par1 * 341873128712L + par2 * 132897987541L);
byte[] var3 = new byte[32768];
generateTerrain(par1, par2, var3);
this.biomesForGeneration = this.worldObj.getWorldChunkManager().loadBlockGeneratorData(this.biomesForGeneration, par1 * 16, par2 * 16, 16, 16);
replaceBlocksForBiome(par1, par2, var3, this.biomesForGeneration);
this.caveGenerator.generate(this, this.worldObj, par1, par2, var3);
this.ravineGenerator.generate(this, this.worldObj, par1, par2, var3);
if (this.mapFeaturesEnabled)
{
this.mineshaftGenerator.generate(this, this.worldObj, par1, par2, var3);
this.villageGenerator.generate(this, this.worldObj, par1, par2, var3);
this.strongholdGenerator.generate(this, this.worldObj, par1, par2, var3);
this.scatteredFeatureGenerator.generate(this, this.worldObj, par1, par2, var3);
}
Chunk var4 = new Chunk(this.worldObj, var3, par1, par2);
byte[] var5 = var4.getBiomeArray();
for (int var6 = 0; var6 < var5.length; var6++)
{
var5[var6] = ((byte)this.biomesForGeneration[var6].biomeID);
}
var4.generateSkylightMap();
return var4;
}
private double[] initializeNoiseField(double[] par1ArrayOfDouble, int par2, int par3, int par4, int par5, int par6, int par7)
{
if (par1ArrayOfDouble == null)
{
par1ArrayOfDouble = new double[par5 * par6 * par7];
}
if (this.parabolicField == null)
{
this.parabolicField = new float[25];
for (int var8 = -2; var8 <= 2; var8++)
{
for (int var9 = -2; var9 <= 2; var9++)
{
         float var10 = 10.0F / MathHelper.sqrt_float(var8 * var8 + var9 * var9 + 0.2F);
         this.parabolicField[(var8 + 2 + (var9 + 2) * 5)] = var10;
}
}
}
double var44 = 684.41200000000003D;
double var45 = 684.41200000000003D;
this.noise5 = this.noiseGen5.generateNoiseOctaves(this.noise5, par2, par4, par5, par7, 1.121D, 1.121D, 0.5D);
this.noise6 = this.noiseGen6.generateNoiseOctaves(this.noise6, par2, par4, par5, par7, 200.0D, 200.0D, 0.5D);
this.noise3 = this.noiseGen3.generateNoiseOctaves(this.noise3, par2, par3, par4, par5, par6, par7, var44 / 80.0D, var45 / 160.0D, var44 / 80.0D);
this.noise1 = this.noiseGen1.generateNoiseOctaves(this.noise1, par2, par3, par4, par5, par6, par7, var44, var45, var44);
this.noise2 = this.noiseGen2.generateNoiseOctaves(this.noise2, par2, par3, par4, par5, par6, par7, var44, var45, var44);
boolean var43 = false;
boolean var42 = false;
int var12 = 0;
int var13 = 0;
for (int var14 = 0; var14 < par5; var14++)
{
for (int var15 = 0; var15 < par7; var15++)
{
float var16 = 0.0F;
float var17 = 0.0F;
float var18 = 0.0F;
byte var19 = 2;
BiomeGenBase var20 = this.biomesForGeneration[(var14 + 2 + (var15 + 2) * (par5 + 5))];
for (int var21 = -var19; var21 <= var19; var21++)
{
         for (int var22 = -var19; var22 <= var19; var22++)
         {
         BiomeGenBase var23 = this.biomesForGeneration[(var14 + var21 + 2 + (var15 + var22 + 2) * (par5 + 5))];
         float var24 = this.parabolicField[(var21 + 2 + (var22 + 2) * 5)] / (var23.minHeight + 2.0F);
         if (var23.minHeight > var20.minHeight)
         {
         var24 /= 2.0F;
         }
         var16 += var23.maxHeight * var24;
         var17 += var23.minHeight * var24;
         var18 += var24;
         }
}
var16 /= var18;
var17 /= var18;
var16 = var16 * 0.9F + 0.1F;
var17 = (var17 * 4.0F - 1.0F) / 8.0F;
double var47 = this.noise6[var13] / 8000.0D;
if (var47 < 0.0D)
{
         var47 = -var47 * 0.3D;
}
var47 = var47 * 3.0D - 2.0D;
if (var47 < 0.0D)
{
         var47 /= 2.0D;
         if (var47 < -1.0D)
         {
         var47 = -1.0D;
         }
         var47 /= 1.4D;
         var47 /= 2.0D;
}
else
{
         if (var47 > 1.0D)
         {
         var47 = 1.0D;
         }
         var47 /= 8.0D;
}
var13++;
for (int var46 = 0; var46 < par6; var46++)
{
         double var48 = var17;
         double var26 = var16;
         var48 += var47 * 0.2D;
         var48 = var48 * par6 / 16.0D;
         double var28 = par6 / 2.0D + var48 * 4.0D;
         double var30 = 0.0D;
         double var32 = (var46 - var28) * 12.0D * 128.0D / 128.0D / var26;
         if (var32 < 0.0D)
         {
         var32 *= 4.0D;
         }
         double var34 = this.noise1[var12] / 512.0D;
         double var36 = this.noise2[var12] / 512.0D;
         double var38 = (this.noise3[var12] / 10.0D + 1.0D) / 2.0D;
         if (var38 < 0.0D)
         {
         var30 = var34;
         }
         else if (var38 > 1.0D)
         {
         var30 = var36;
         }
         else
         {
         var30 = var34 + (var36 - var34) * var38;
         }
         var30 -= var32;
         if (var46 > par6 - 4)
         {
         double var40 = (var46 - (par6 - 4)) / 3.0F;
         var30 = var30 * (1.0D - var40) + -10.0D * var40;
         }
         par1ArrayOfDouble[var12] = var30;
         var12++;
}
}
}
return par1ArrayOfDouble;
}
public boolean chunkExists(int par1, int par2)
{
return true;
}
public void populate(IChunkProvider par1IChunkProvider, int par2, int par3)
{
net.minecraft.block.BlockSand.fallInstantly = true;
int var4 = par2 * 16;
int var5 = par3 * 16;
BiomeGenBase var6 = this.worldObj.getBiomeGenForCoords(var4 + 16, var5 + 16);
this.rand.setSeed(this.worldObj.getSeed());
long var7 = this.rand.nextLong() / 2L * 2L + 1L;
long var9 = this.rand.nextLong() / 2L * 2L + 1L;
this.rand.setSeed(par2 * var7 + par3 * var9 ^ this.worldObj.getSeed());
boolean var11 = false;
if (this.mapFeaturesEnabled)
{
this.mineshaftGenerator.generateStructuresInChunk(this.worldObj, this.rand, par2, par3);
var11 = this.villageGenerator.generateStructuresInChunk(this.worldObj, this.rand, par2, par3);
this.strongholdGenerator.generateStructuresInChunk(this.worldObj, this.rand, par2, par3);
this.scatteredFeatureGenerator.generateStructuresInChunk(this.worldObj, this.rand, par2, par3);
}
if ((!var11) && (this.rand.nextInt(4) == 0))
{
int var12 = var4 + this.rand.nextInt(16) + 8;
int var13 = this.rand.nextInt(128);
int var14 = var5 + this.rand.nextInt(16) + 8;
new WorldGenLakes(Block.waterStill.blockID).generate(this.worldObj, this.rand, var12, var13, var14);
}
var6.decorate(this.worldObj, this.rand, var4, var5);
SpawnerAnimals.performWorldGenSpawning(this.worldObj, var6, var4 + 8, var5 + 8, 16, 16, this.rand);
var4 += 8;
var5 += 8;
for (int var12 = 0; var12 < 16; var12++)
{
for (int var13 = 0; var13 < 16; var13++)
{
int var14 = this.worldObj.getPrecipitationHeight(var4 + var12, var5 + var13);
if (this.worldObj.isBlockFreezable(var12 + var4, var14 - 1, var13 + var5))
{
         this.worldObj.setBlock(var12 + var4, var14 - 1, var13 + var5, Block.ice.blockID);
}
if (this.worldObj.canSnowAt(var12 + var4, var14, var13 + var5))
{
         this.worldObj.setBlock(var12 + var4, var14, var13 + var5, Block.snow.blockID);
}
}
}
net.minecraft.block.BlockSand.fallInstantly = false;
}
public boolean saveChunks(boolean par1, IProgressUpdate par2IProgressUpdate)
{
return true;
}
public boolean unload100OldestChunks()
{
return false;
}
public boolean canSave()
{
return true;
}
public String makeString()
{
return "RandomLevelSource";
}
public List getPossibleCreatures(EnumCreatureType par1EnumCreatureType, int par2, int par3, int par4)
{
BiomeGenBase var5 = this.worldObj.getBiomeGenForCoords(par2, par4);
return var5 == null ? null : var5.getSpawnableList(par1EnumCreatureType);
}
public ChunkPosition findClosestStructure(World par1World, String par2Str, int par3, int par4, int par5)
{
return ("Stronghold".equals(par2Str)) && (this.strongholdGenerator != null) ? this.strongholdGenerator.getNearestInstance(par1World, par3, par4, par5) : null;
}
public int getLoadedChunkCount() {
return 0;
}
public boolean unloadQueuedChunks()
{
return false;
}
public void recreateStructures(int i, int j)
{
}
@Override
public void func_104112_b() {
// TODO Auto-generated method stub
}
}

 

 

 

 

 

 

Link to comment
Share on other sites

in other words put biome generation under the blocks that the biome is going to generate

I like helping people because i was also in a same problem and i do not like unfinished work, so a thank you will be enough for the people im helping and a thank you to the people that helped me :)

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • I'm developing a dimension, but it's kinda resource intensive so some times during player teleporting it lags behind making the player phase down into the void, so im trying to implement some kind of pregeneration to force the game loading a small set of chunks in the are the player will teleport to. Some of the things i've tried like using ServerLevel and ServerChunkCache methods like getChunk() dont actually trigger chunk generation if the chunk isn't already on persistent storage (already generated) or placing tickets, but that doesn't work either. Ideally i should be able to check when the task has ended too. I've peeked around some pregen engines, but they're too complex for my current understanding of the system of which I have just a basic understanding (how ServerLevel ,ServerChunkCache  and ChunkMap work) of. Any tips or other classes I should be looking into to understand how to do this correctly?
    • https://mclo.gs/4UC49Ao
    • Way back in the Forge 1.17 days, work started for adding JPMS (Java Platform Module Support) to ModLauncher and ForgeModLoader. This has been used internally by Forge and some libraries for a while now, but mods (those with mods.toml specifically) have not been able to take advantage of it. As of Forge 1.21.1 and 1.21.3, this is now possible!   What is JPMS and what does it mean for modders? JPMS is the Java Platform Module System, introduced in Java 9. It allows you to define modules, which are collections of packages and resources that can be exported or hidden from other modules. This allows for much more fine-tuned control over visibility, cleaner syntax for service declarations and support for sealed types across packages. For example, you might have a mod with a module called `com.example.mod` that exports `com.example.mod.api` and `com.example.mod.impl` to other mods, but hides `com.example.mod.internal` from them. This would allow you to have a clean API for other mods to use, while keeping your internal implementation details hidden from IDE hints, helping prevent accidental usage of internals that might break without prior notice. This is particularly useful if you'd like to use public records with module-private constructors or partially module-private record components, as you can create a sealed interface that only your record implements, having the interface be exported and the record hidden. It's also nice for declaring and using services, as you'll get compile-time errors from the Java compiler for typos and the like, rather than deferring to runtime errors. In more advanced cases, you can also have public methods that are only accessible to specific other modules -- handy if you want internal interactions between multiple of your own mods.   How do I bypass it? We understand there may be drama in implementing a system that prevents mods from accessing each other's internals when necessary (like when a mod is abandoned or you need to fix a compat issue) -- after all, we are already modding a game that doesn't have explicit support for Java mods yet. We have already thought of this and are offering APIs from day one to selectively bypass module restrictions. Let me be clear: Forge mods are not required to use JPMS. If you don't want to use it, you don't have to. The default behaviour is to have fully open, fully exported automatic modules. In Java, you can use the `Add-Opens` and `Add-Exports` manifest attributes to selectively bypass module restrictions of other mods at launch time, and we've added explicit support for these when loading your Forge mods. At compile-time, you can use existing solutions such as the extra-java-module-info Gradle plugin to deal with non-modular dependencies and add extra opens and exports to other modules. Here's an example on how to make the internal package `com.example.examplemod.internal` open to your mod in your build.gradle: tasks.named('jar', Jar) { manifest { attributes([ 'Add-Opens' : 'com.example.examplemod/com.example.examplemod.internal' 'Specification-Title' : mod_id, 'Specification-Vendor' : mod_authors // (...) ]) } } With the above in your mod's jar manifest, you can now reflectively access the classes inside that internal package. Multiple entries are separated with a space, as per Java's official spec. You can also use Add-Exports to directly call without reflection, however you'd need to use the Gradle plugin mentioned earlier to be able to compile. The syntax for Add-Exports is the same as Add-Opens, and instructions for the compile-time step with the Gradle plugin are detailed later in this post. Remember to prefer the opens and exports keywords inside module-info.java for sources you control. The Add-Opens/Add-Exports attributes are only intended for forcing open other mods.   What else is new with module support? Previously, the runtime module name was always forced to the first mod ID in your `mods.toml` file and all packages were forced fully open and exported. Module names are now distinguished from mod IDs, meaning the module name in your module-info.java can be different from the mod ID in your `mods.toml`. This allows you to have a more descriptive module name that doesn't have to be the same as your mod ID, however we strongly recommend including your mod ID as part of your module name to aid troubleshooting. The `Automatic-Module-Name` manifest attribute is now also honoured, allowing you to specify a module name for your mod without needing to create a `module-info.java` file. This is particularly useful for mods that don't care about JPMS features but want to have a more descriptive module name and easier integration with other mods that do use JPMS.   How do I use it? The first step is to create a `module-info.java` file in your mod's source directory. This file should be in the same package as your main mod class, and should look something like this: open module com.example.examplemod { requires net.minecraftforge.eventbus; requires net.minecraftforge.fmlcore; requires net.minecraftforge.forge; requires net.minecraftforge.javafmlmod; requires net.minecraftforge.mergetool.api; requires org.slf4j; requires logging; } For now, we're leaving the whole module open to reflection, which is a good starting point. When we know we want to close something off, we can remove the open modifier from the module and open or export individual packages instead. Remember that you need to be open to Forge (module name net.minecraftforge.forge), otherwise it can't call your mod's constructor. Next is fixing modules in Gradle. While Forge and Java support modules properly, Gradle does not put automatic modules on the module path by default, meaning that the logging module (from com.mojang:logging) is not found. To fix this, add the Gradle plugin and add a compile-time module definition for that Mojang library: plugins { // (...) id 'org.gradlex.extra-java-module-info' version "1.9" } // (...) extraJavaModuleInfo { failOnMissingModuleInfo = false automaticModule("com.mojang:logging", "logging") } The automatic module override specified in your build.gradle should match the runtime one to avoid errors. You can do the same for any library or mod dependency that is missing either a module-info or explicit Automatic-Module-Name, however be aware that you may need to update your mod once said library adds one. That's all you need to get started with module support in your mods. You can learn more about modules and how to use them at dev.java.
    • Faire la mise à jour grâce à ce lien m'a aider personnellement, merci à @Paint_Ninja. https://www.amd.com/en/support 
    • When I came across the 'Exit Code: I got a 1 error in my Minecraft mods, so I decided to figure out what was wrong. First, I took a look at the logs. In the mods folder (usually where you'd find logs or crash reports), I found the latest.log file or the corresponding crash report. I read it through carefully, looking for any lines with errors or warnings. Then I checked the Minecraft Forge support site, where you can often find info on what causes errors and how to fix them. I then disabled half of my mods and tried running the game. If the error disappeared, it meant that the problem was with the disabled mod. I repeated this several times to find the problem mod.
  • Topics

  • Who's Online (See full list)

×
×
  • Create New...

Important Information

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