SOLVED Changer la couleur du ciel en passant par BiomeGenBase


  • Salut
    Je voudrais modifier la couleur du ciel. J’ai donc chercher partout sur Internet, j’ai trouvé plein de code : je les ai testé un par un mais soit il y a des erreurs, soit Minecraft crash. J’ai donc chercher dans le biomeGenBase, et j’ai trouver cette fonction :

        @SideOnly(Side.CLIENT)
    
        public int getSkyColorByTemp(float p_76731_1_)
        {
            p_76731_1_ /= 3.0F;
    
            if (p_76731_1_ < -1.0F)
            {
                p_76731_1_ = -1.0F;
            }
    
            if (p_76731_1_ > 1.0F)
            {
                p_76731_1_ = 1.0F;
            }
    
            return Color.getHSBColor(0.62222224F - p_76731_1_ * 0.05F, 0.5F + p_76731_1_ * 0.1F, 1.0F).getRGB();
        }
    

    C’est précisemment ici que la couleur est défini :

    0.62222224F
    

    J’ai donc essayer de modifier cette ligne avec Forge mais ça me met une erreur (j’ai utiliser ObfuscationReflectionHelper).
    Voilà ce que j’ai mis :

    ObfuscationReflectionHelper.setPrivateValue(net.minecraft.world.biome.BiomeGenBase.class, FMLClientHandler.instance().getClient().renderGlobal, 9999999, "getHSBColor");
    

    Et voilà ce que Eclipse me dit (il ne me propose rien) :
    The method setPrivateValue(Class, T, E, int) in the type ObfuscationReflectionHelper is not applicable for the arguments (Class<biomegenbase>, RenderGlobal, int, String)

    Je ne sais donc pas comment modifier ce nombre
    Si vous avez une idée, …
    Merci d’avance</biomegenbase>

  • Moddeurs confirmés Modérateurs

    un truc plus simple serai de faire un biomeGenBase custom

  • Administrateurs Rédacteurs Moddeurs confirmés

    ObfuscationReflectionHelper est fait pour les variables de classe, pas pour les méthodes.


  • Pour modifier la couleur du ciel, soit tu passe par l’asm, soit pas ton propre biome ou tu fait ton propre world provider.


  • Merci pour toutes vos réponses mais …
    Je n’arrive à faire ni de worldProvider, ni de BiomeGenBase
    Je ne trouve pas de tuto sur ASM
    Et je n’ai pas créé de biome, ce sont juste les biomes par défault.

    Si vous avez d’autres idées ou un lien, …
    Merci d’avance


  • dans fonction postInit ajoute :

    ​        {
    
                Field f = DimensionManager.class.getDeclaredField("providers");
                f.setAccessible(true);
    
                Hashtable providers = (Hashtable)f.get(null);
                providers.put(Integer.valueOf(0), TonWorldProvider.class);
                f.set(null, providers);
            }
            catch(NoSuchFieldException | IllegalArgumentException | IllegalAccessException e)
            {
                throw new RuntimeException("Could not override the DimensionManager providers!", e);
            }
    

    Et dans la classe de ton world provider (fille de WorldProvider):

    ​    public void registerWorldChunkManager()
    
        {
            this.dimensionId = 0;
        }
    
     public String getDimensionName()
    
        {
            return "Overworld";
        }
    
    @SideOnly(Side.CLIENT)
    
        public boolean isSkyColored()
        {
            return true;
        }
    
    @Override
    public Vec3 getSkyColor(Entity cameraEntity, float partialTicks)
    {                                 //à modifier pour changer la couleur
    return Vec3.createVectorHelper(2.8, 1.1, 1.7);
    }
    

    normalement ça devrias marcher, si tu as un crash post le.


  • Salut
    Désolé pour le temps de la réponse : 
    Il y a une erreur sur cette ligne :

    catch(NoSuchFieldException | IllegalArgumentException | IllegalAccessException e)
    

    Voici l’erreur :
    The left-hand side of an assignment must be a variable

    J’ai mis cette condition en commentaire, et j’ai dû ajouter ceci :

    throws IllegalArgumentException, IllegalAccessException, NoSuchFieldException, SecurityException
    

    après

    public void modloaded(FMLPostInitializationEvent event)
    

    J’ai donc lancé le jeu comme ça, et j’ai ça en crash :

    :::
    [13:55:31] [Client thread/ERROR] [FML]: Fatal errors were detected during the transition from POSTINITIALIZATION to AVAILABLE. Loading cannot continue

    [13:55:31] [Client thread/ERROR] [FML]:
        mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized
        FML{7.10.85.1291} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.2.1291.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized
        Forge{10.13.2.1291} [Minecraft Forge] (forgeSrc-1.7.10-10.13.2.1291.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized
        examplemod{1.0} [Example Mod] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized
        This_is_Halloween{1.1} [This is Halloween] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Errored
    [13:55:31] [Client thread/ERROR] [FML]: The following problems were captured during this phase
    [13:55:31] [Client thread/ERROR] [FML]: Caught exception from This_is_Halloween
    java.lang.ClassCastException: java.util.Hashtable cannot be cast to com.sun.org.apache.xalan.internal.xsltc.runtime.Hashtable
        at This_is_Halloween.This_is_Halloween.modloaded(This_is_Halloween.java:418) ~[bin/:?]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_31]
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]
        at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_31]
        at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:513) ~[forgeSrc-1.7.10-10.13.2.1291.jar:?]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_31]
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]
        at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_31]
        at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?]
        at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?]
        at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?]
        at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?]
        at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?]
        at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208) ~[forgeSrc-1.7.10-10.13.2.1291.jar:?]
        at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187) ~[forgeSrc-1.7.10-10.13.2.1291.jar:?]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_31]
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]
        at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_31]
        at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?]
        at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?]
        at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?]
        at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?]
        at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?]
        at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118) [LoadController.class:?]
        at cpw.mods.fml.common.Loader.initializeMods(Loader.java:694) [Loader.class:?]
        at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:288) [FMLClientHandler.class:?]
        at net.minecraft.client.Minecraft.startGame(Minecraft.java:586) [Minecraft.class:?]
        at net.minecraft.client.Minecraft.run(Minecraft.java:931) [Minecraft.class:?]
        at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_31]
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]
        at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_31]
        at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]
        at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]
        at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?]
        at GradleStart.main(Unknown Source) [start/:?]
    [13:55:31] [Client thread/INFO] [STDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:388]: –-- Minecraft Crash Report ----
    // Ouch. That hurt 😞

    Time: 21/03/15 13:55
    Description: Initializing game

    java.lang.ClassCastException: java.util.Hashtable cannot be cast to com.sun.org.apache.xalan.internal.xsltc.runtime.Hashtable
        at This_is_Halloween.This_is_Halloween.modloaded(This_is_Halloween.java:418)
        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:513)
        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.EventSubscriber.handleEvent(EventSubscriber.java:74)
        at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
        at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
        at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
        at com.google.common.eventbus.EventBus.post(EventBus.java:275)
        at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208)
        at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187)
        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.EventSubscriber.handleEvent(EventSubscriber.java:74)
        at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
        at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
        at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
        at com.google.common.eventbus.EventBus.post(EventBus.java:275)
        at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118)
        at cpw.mods.fml.common.Loader.initializeMods(Loader.java:694)
        at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:288)
        at net.minecraft.client.Minecraft.startGame(Minecraft.java:586)
        at net.minecraft.client.Minecraft.run(Minecraft.java:931)
        at net.minecraft.client.main.Main.main(Main.java:164)
        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:135)
        at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
        at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
        at GradleStart.main(Unknown Source)

    A detailed walkthrough of the error, its code path and all known details is as follows:

    – Head –
    Stacktrace:
        at This_is_Halloween.This_is_Halloween.modloaded(This_is_Halloween.java:418)
        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:513)
        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.EventSubscriber.handleEvent(EventSubscriber.java:74)
        at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
        at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
        at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
        at com.google.common.eventbus.EventBus.post(EventBus.java:275)
        at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208)
        at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187)
        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.EventSubscriber.handleEvent(EventSubscriber.java:74)
        at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
        at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
        at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
        at com.google.common.eventbus.EventBus.post(EventBus.java:275)
        at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118)
        at cpw.mods.fml.common.Loader.initializeMods(Loader.java:694)
        at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:288)
        at net.minecraft.client.Minecraft.startGame(Minecraft.java:586)

    – Initialization –
    Details:
    Stacktrace:
        at net.minecraft.client.Minecraft.run(Minecraft.java:931)
        at net.minecraft.client.main.Main.main(Main.java:164)
        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:135)
        at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
        at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
        at GradleStart.main(Unknown Source)

    – System Details –
    Details:
        Minecraft Version: 1.7.10
        Operating System: Windows 7 (amd64) version 6.1
        Java Version: 1.8.0_31, Oracle Corporation
        Java VM Version: Java HotSpot™ 64-Bit Server VM (mixed mode), Oracle Corporation
        Memory: 667233832 bytes (636 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)
        JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
        AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
        IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
        FML: MCP v9.05 FML v7.10.85.1291 Minecraft Forge 10.13.2.1291 5 mods loaded, 5 mods active
        mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized
        FML{7.10.85.1291} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.2.1291.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized
        Forge{10.13.2.1291} [Minecraft Forge] (forgeSrc-1.7.10-10.13.2.1291.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized
        examplemod{1.0} [Example Mod] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized
        This_is_Halloween{1.1} [This is Halloween] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Errored
        Launched Version: 1.7.10
        LWJGL: 2.9.1
        OpenGL: AMD Radeon R9 200 Series GL version 4.3.12458 Compatibility Profile Context 13.200.0.0, ATI Technologies Inc.
        GL Caps: Using GL 1.3 multitexturing.
    Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
    Anisotropic filtering is supported and maximum anisotropy is 16.
    Shaders are available because OpenGL 2.1 is supported.

    Is Modded: Definitely; Client brand changed to ‘fml,forge’
        Type: Client (map_client.txt)
        Resource Packs: []
        Current Language: English (US)
        Profiler Position: N/A (disabled)
        Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
        Anisotropic Filtering: Off (1)
    [13:55:31] [Client thread/INFO] [STDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:398]: #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\Antonin\Documents\Codage\Minecraft\This_is_Halloween\v1.2\MC1.7\eclipse.\crash-reports\crash-2015-03-21_13.55.31-client.txt
    AL lib: (EE) alc_cleanup: 1 device not closed
    Java HotSpot™ 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
    :::

    L’erreur pointe à cette ligne :

                Hashtable providers = (Hashtable)f.get(null);
    

    Je ne suis pas sûr, mais je pense que c’est à cause de ça :

    (null)
    

    J’ai essayer de remplacer le null par 1, mais c’est pareil

    Si vous avez une idée, …
    Merci d’avance

  • Administrateurs Rédacteurs Moddeurs confirmés

    C’est parce que tu as importé la mauvaise classe.
    java.lang.ClassCastException: java.util.Hashtable cannot be cast to com.sun.org.apache.xalan.internal.xsltc.runtime.Hashtable
    Tu as importé com.sun.org.apache.xalan.internal.xsltc.runtime.Hashtable or tu aura du importer java.util.Hashtable


  • J’ai réussi à régler le problème de

    catch(NoSuchFieldException | IllegalArgumentException | IllegalAccessException e)
    

    Suffisait de rajouter try

    J’ai fait ce que tu m’a dit pour l’importation, le jeu se lance, mais dès que je lance une map (que j’en charge une ou que j’en recréer une), le jeu crash :

    :::
    [15:13:09] [Server thread/ERROR]: Encountered an unexpected exception

    net.minecraft.util.ReportedException: Exception preparing structure feature
        at net.minecraft.world.gen.structure.MapGenStructure.func_151538_a(MapGenStructure.java:79) ~[MapGenStructure.class:?]
        at net.minecraft.world.gen.MapGenBase.func_151539_a(MapGenBase.java:33) ~[MapGenBase.class:?]
        at net.minecraft.world.gen.ChunkProviderGenerate.recreateStructures(ChunkProviderGenerate.java:540) ~[ChunkProviderGenerate.class:?]
        at net.minecraftforge.common.chunkio.ChunkIOProvider.callStage2(ChunkIOProvider.java:49) ~[ChunkIOProvider.class:?]
        at net.minecraftforge.common.chunkio.ChunkIOProvider.callStage2(ChunkIOProvider.java:12) ~[ChunkIOProvider.class:?]
        at net.minecraftforge.common.util.AsynchronousExecutor.skipQueue(AsynchronousExecutor.java:344) ~[AsynchronousExecutor.class:?]
        at net.minecraftforge.common.util.AsynchronousExecutor.getSkipQueue(AsynchronousExecutor.java:302) ~[AsynchronousExecutor.class:?]
        at net.minecraftforge.common.chunkio.ChunkIOExecutor.syncChunkLoad(ChunkIOExecutor.java:12) ~[ChunkIOExecutor.class:?]
        at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:144) ~[ChunkProviderServer.class:?]
        at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:119) ~[ChunkProviderServer.class:?]
        at net.minecraft.server.MinecraftServer.initialWorldChunkLoad(MinecraftServer.java:305) ~[MinecraftServer.class:?]
        at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:79) ~[IntegratedServer.class:?]
        at net.minecraft.server.integrated.IntegratedServer.startServer(IntegratedServer.java:96) ~[IntegratedServer.class:?]
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:445) [MinecraftServer.class:?]
        at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752) [MinecraftServer$2.class:?]
    Caused by: java.lang.NullPointerException
        at net.minecraft.world.gen.structure.MapGenStronghold.canSpawnStructureAtCoords(MapGenStronghold.java:96) ~[MapGenStronghold.class:?]
        at net.minecraft.world.gen.structure.MapGenStructure.func_151538_a(MapGenStructure.java:43) ~[MapGenStructure.class:?]
        … 14 more
    [15:13:09] [Server thread/ERROR]: This crash report has been saved to: C:\Users\Antonin\Documents\Codage\Minecraft\This_is_Halloween\v1.2\MC1.7\eclipse.\crash-reports\crash-2015-03-21_15.13.09-server.txt
    [15:13:09] [Server thread/INFO] [FML]: Applying holder lookups
    [15:13:09] [Server thread/INFO] [FML]: Holder lookups applied
    [15:13:09] [Server thread/INFO] [FML]: The state engine was in incorrect state SERVER_STARTING and forced into state SERVER_STOPPED. Errors may have been discarded.
    [15:13:10] [Client thread/INFO] [STDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:388]: –-- Minecraft Crash Report ----
    // Sorry 😞

    Time: 21/03/15 15:13
    Description: Exception preparing structure feature

    java.lang.NullPointerException: Exception preparing structure feature
        at net.minecraft.world.gen.structure.MapGenStronghold.canSpawnStructureAtCoords(MapGenStronghold.java:96)
        at net.minecraft.world.gen.structure.MapGenStructure.func_151538_a(MapGenStructure.java:43)
        at net.minecraft.world.gen.MapGenBase.func_151539_a(MapGenBase.java:33)
        at net.minecraft.world.gen.ChunkProviderGenerate.recreateStructures(ChunkProviderGenerate.java:540)
        at net.minecraftforge.common.chunkio.ChunkIOProvider.callStage2(ChunkIOProvider.java:49)
        at net.minecraftforge.common.chunkio.ChunkIOProvider.callStage2(ChunkIOProvider.java:12)
        at net.minecraftforge.common.util.AsynchronousExecutor.skipQueue(AsynchronousExecutor.java:344)
        at net.minecraftforge.common.util.AsynchronousExecutor.getSkipQueue(AsynchronousExecutor.java:302)
        at net.minecraftforge.common.chunkio.ChunkIOExecutor.syncChunkLoad(ChunkIOExecutor.java:12)
        at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:144)
        at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:119)
        at net.minecraft.server.MinecraftServer.initialWorldChunkLoad(MinecraftServer.java:305)
        at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:79)
        at net.minecraft.server.integrated.IntegratedServer.startServer(IntegratedServer.java:96)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:445)
        at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752)

    A detailed walkthrough of the error, its code path and all known details is as follows:

    – Head –
    Stacktrace:
        at net.minecraft.world.gen.structure.MapGenStronghold.canSpawnStructureAtCoords(MapGenStronghold.java:96)

    – Feature being prepared –
    Details:
        Is feature chunk: ERROR NullPointerException: null
        Chunk location: -6,-30
        Chunk pos hash: -124554051590
        Structure type: net.minecraft.world.gen.structure.MapGenStronghold
    Stacktrace:
        at net.minecraft.world.gen.structure.MapGenStructure.func_151538_a(MapGenStructure.java:43)
        at net.minecraft.world.gen.MapGenBase.func_151539_a(MapGenBase.java:33)
        at net.minecraft.world.gen.ChunkProviderGenerate.recreateStructures(ChunkProviderGenerate.java:540)
        at net.minecraftforge.common.chunkio.ChunkIOProvider.callStage2(ChunkIOProvider.java:49)
        at net.minecraftforge.common.chunkio.ChunkIOProvider.callStage2(ChunkIOProvider.java:12)
        at net.minecraftforge.common.util.AsynchronousExecutor.skipQueue(AsynchronousExecutor.java:344)
        at net.minecraftforge.common.util.AsynchronousExecutor.getSkipQueue(AsynchronousExecutor.java:302)
        at net.minecraftforge.common.chunkio.ChunkIOExecutor.syncChunkLoad(ChunkIOExecutor.java:12)
        at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:144)
        at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:119)
        at net.minecraft.server.MinecraftServer.initialWorldChunkLoad(MinecraftServer.java:305)
        at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:79)
        at net.minecraft.server.integrated.IntegratedServer.startServer(IntegratedServer.java:96)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:445)
        at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752)

    – System Details –
    Details:
        Minecraft Version: 1.7.10
        Operating System: Windows 7 (amd64) version 6.1
        Java Version: 1.8.0_31, Oracle Corporation
        Java VM Version: Java HotSpot™ 64-Bit Server VM (mixed mode), Oracle Corporation
        Memory: 898755312 bytes (857 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)
        JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
        AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
        IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
        FML: MCP v9.05 FML v7.10.85.1291 Minecraft Forge 10.13.2.1291 5 mods loaded, 5 mods active
        mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available
        FML{7.10.85.1291} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.2.1291.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available
        Forge{10.13.2.1291} [Minecraft Forge] (forgeSrc-1.7.10-10.13.2.1291.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available
        examplemod{1.0} [Example Mod] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available
        This_is_Halloween{1.1} [This is Halloween] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available
        Profiler Position: N/A (disabled)
        Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
        Player Count: 0 / 8; []
        Type: Integrated Server (map_client.txt)
        Is Modded: Definitely; Client brand changed to ‘fml,forge’
    [15:13:10] [Client thread/INFO] [STDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:393]: #@!@# Game crashed! Crash report saved to: #@!@# .\crash-reports\crash-2015-03-21_15.13.09-server.txt
    AL lib: (EE) alc_cleanup: 1 device not closed
    Java HotSpot™ 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
    :::

    Si on regarde bien le crash, ça n’a rien à voir avec le mod, mais quand je met le code en commentaire, tout fonctionne bien

  • Administrateurs Rédacteurs Moddeurs confirmés

    Dans ce cas le code que t’as donné diangle n’ai pas bon.
    Sinon faut passer par un coremod + ASM


  • Ouai, c’est bizarre, c’est comme ça que je fait pour mon mod. Tu peux me donner tes classes ?


  • This_is_Halloween (classe principale) :

    ​package This_is_Halloween;
    
    import java.lang.reflect.Field;
    import java.util.Random;
    import java.util.Hashtable;
    
    import net.minecraft.block.Block;
    import net.minecraft.block.material.Material;
    import net.minecraft.client.Minecraft;
    import net.minecraft.creativetab.CreativeTabs;
    import net.minecraft.entity.Entity;
    import net.minecraft.entity.EntityList;
    import net.minecraft.entity.EntityList.EntityEggInfo;
    import net.minecraft.entity.EnumCreatureType;
    import net.minecraft.init.Blocks;
    import net.minecraft.init.Items;
    import net.minecraft.item.Item;
    import net.minecraft.item.ItemArmor.ArmorMaterial;
    import net.minecraft.item.ItemFood;
    import net.minecraft.item.ItemStack;
    import net.minecraft.util.MathHelper;
    import net.minecraft.world.biome.BiomeGenBase;
    import net.minecraftforge.common.DimensionManager;
    import net.minecraftforge.common.MinecraftForge;
    import net.minecraftforge.common.util.EnumHelper;
    import cpw.mods.fml.client.FMLClientHandler;
    import cpw.mods.fml.common.FMLCommonHandler;
    import cpw.mods.fml.common.Mod;
    import cpw.mods.fml.common.Mod.EventHandler;
    import cpw.mods.fml.common.Mod.Instance;
    import cpw.mods.fml.common.ObfuscationReflectionHelper;
    import cpw.mods.fml.common.SidedProxy;
    import cpw.mods.fml.common.event.FMLEvent;
    import cpw.mods.fml.common.event.FMLInitializationEvent;
    import cpw.mods.fml.common.event.FMLPostInitializationEvent;
    import cpw.mods.fml.common.event.FMLPreInitializationEvent;
    import cpw.mods.fml.common.eventhandler.SubscribeEvent;
    import cpw.mods.fml.common.gameevent.TickEvent;
    import cpw.mods.fml.common.registry.EntityRegistry;
    import cpw.mods.fml.common.registry.GameRegistry;
    import cpw.mods.fml.relauncher.ReflectionHelper;
    import cpw.mods.fml.relauncher.Side;
    import cpw.mods.fml.relauncher.SideOnly;
    
    @Mod(modid = "This_is_Halloween", name = "This is Halloween", version = "1.2", acceptedMinecraftVersions = "1.7")
    
    public class This_is_Halloween {
        @SidedProxy(clientSide = "This_is_Halloween.ClientProxy", serverSide = "This_is_Halloween.CommonProxy")
        public static CommonProxy proxy;
        public static final String MODID = "halloween";
    
        @Instance("This_is_Halloween")
        public static This_is_Halloween instance;
    
        // Item
        public static Item BlackString;
        public static Item BloodBottle;
        public static Item GrayPaper;
    
        // Item : Candy
        public static Item LightGrayCandy;
        public static Item TrickorTreatCandy;
        public static Item YellowCandy;
        public static Item PurpleCandy;
        public static Item BlackCandy;
        public static Item BrownCandy;
        public static Item CactusGreenCandy;
        public static Item CyanCandy;
        public static Item GrayCandy;
        public static Item LapisLazuliCandy;
        public static Item WhiteCandy;
        public static Item RedCandy;
        public static Item PinkCandy;
        public static Item OrangeCandy;
        public static Item MagentaCandy;
        public static Item LightBlueCandy;
        public static Item LimeCandy;
    
        // Item : Suit
        public static Item MummyHelmet;
        public static Item MummyChestplate;
        public static Item MummyLeggings;
        public static Item MummyBoots;
        public static Item ZombieHelmet;
        public static Item ZombieChestplate;
        public static Item ZombieLeggings;
        public static Item ZombieBoots;
        public static Item GhostHelmet;
        public static Item GhostChestplate;
        public static Item GhostLeggings;
        public static Item GhostBoots;
        public static Item VampireHelmet;
        public static Item VampireChestplate;
        public static Item VampireLeggings;
        public static Item VampireBoots;
        public static ArmorMaterial paperSuit = EnumHelper.addArmorMaterial("paperSuit", 0, new int[] {0, 0, 0, 0}, 0);
        public static ArmorMaterial fleshSuit = EnumHelper.addArmorMaterial("fleshSuit", 0, new int[] {0, 0, 0, 0}, 0);
        public static ArmorMaterial grayPaperSuit = EnumHelper.addArmorMaterial("grayPaperSuit", 0, new int[] {0, 0, 0, 0}, 0);
        public static ArmorMaterial stringSuit = EnumHelper.addArmorMaterial("stringSuit", 0, new int[] {0, 0, 0, 0}, 0);
    
        // Block
        public static Block Cross;
        public static Block RoundedCross;
    
        @EventHandler
        public void preload(FMLPreInitializationEvent event)
        {            
            GameRegistry.registerWorldGenerator(new AddCobwebInBiome(), 0);
            GameRegistry.registerWorldGenerator(new AddPumpkinLanternInBiome(), 0);
            GameRegistry.registerWorldGenerator(new CimeteryGenerator(), 0);
            GameRegistry.registerWorldGenerator(new LavaLakeGenerator(), 0);
    
            // Item
            BloodBottle = (new Item()).setUnlocalizedName("BloodBottle").setTextureName("halloween:blood_bottle").setCreativeTab(CreativeTabs.tabMaterials);
            BlackString = (new Item()).setUnlocalizedName("BlackString").setTextureName("halloween:black_string").setCreativeTab(CreativeTabs.tabMaterials);
            GrayPaper = (new Item()).setUnlocalizedName("GrayPaper").setTextureName("halloween:gray_paper").setCreativeTab(CreativeTabs.tabMaterials);
    
            // Item : Candy
            BlackCandy = (new ItemFood(4, 0.1F, false)).setUnlocalizedName("BlackCandy").setTextureName("halloween:Candy/Black Candy");
            BrownCandy = (new ItemFood(4, 0.1F, false)).setUnlocalizedName("BrownCandy").setTextureName("halloween:Candy/Brown Candy");
            CactusGreenCandy = (new ItemFood(4, 0.1F, false)).setUnlocalizedName("CactusGreenCandy").setTextureName("halloween:Candy/Cactus Green Candy");
            CyanCandy = (new ItemFood(4, 0.1F, false)).setUnlocalizedName("CyanCandy").setTextureName("halloween:Candy/Cyan Candy");
            GrayCandy = (new ItemFood(4, 0.1F, false)).setUnlocalizedName("GrayCandy").setTextureName("halloween:Candy/Gray Candy");
            LapisLazuliCandy = (new ItemFood(4, 0.1F, false)).setUnlocalizedName("LapisLazuliCandy").setTextureName("halloween:Candy/Lapis Lazuli Candy");
            LightBlueCandy = (new ItemFood(4, 0.1F, false)).setUnlocalizedName("LightBlueCandy").setTextureName("halloween:Candy/Light Blue Candy");
            LightGrayCandy = (new ItemFood(4, 0.1F, false)).setUnlocalizedName("LightGrayCandy").setTextureName("halloween:Candy/Light Gray Candy");
            LimeCandy = (new ItemFood(4, 0.1F, false)).setUnlocalizedName("LimeCandy").setTextureName("halloween:Candy/Lime Candy");
            MagentaCandy = (new ItemFood(4, 0.1F, false)).setUnlocalizedName("MagentaCandy").setTextureName("halloween:Candy/Magenta Candy");
            OrangeCandy = (new ItemFood(4, 0.1F, false)).setUnlocalizedName("OrangeCandy").setTextureName("halloween:Candy/Orange Candy");
            PinkCandy = (new ItemFood(4, 0.1F, false)).setUnlocalizedName("PinkCandy").setTextureName("halloween:Candy/Pink Candy");
            PurpleCandy = (new ItemFood(4, 0.1F, false)).setUnlocalizedName("PurpleCandy").setTextureName("halloween:Candy/Purple Candy");
            RedCandy = (new ItemFood(4, 0.1F, false)).setUnlocalizedName("RedCandy").setTextureName("halloween:Candy/Red Candy");
            WhiteCandy = (new ItemFood(4, 0.1F, false)).setUnlocalizedName("WhiteCandy").setTextureName("halloween:Candy/White Candy");
            TrickorTreatCandy = (new ItemFood(8, 0.1F, false)).setUnlocalizedName("TrickorTreatCandy").setTextureName("halloween:Candy/Trick or Treat Candy");
            YellowCandy = (new ItemFood(4, 0.1F, false)).setUnlocalizedName("YellowCandy").setTextureName("halloween:Candy/Yellow Candy");
    
            // Item : Suit
            MummyHelmet = (new ItemMummySuit(paperSuit, 0)).setUnlocalizedName("PaperHelmet").setTextureName("halloween:Suit/paper_helmet");
            MummyChestplate = (new ItemMummySuit(paperSuit, 1)).setUnlocalizedName("PaperChestplate").setTextureName("halloween:Suit/paper_chestplate");
            MummyLeggings = (new ItemMummySuit(paperSuit, 2)).setUnlocalizedName("PaperLeggings").setTextureName("halloween:Suit/paper_leggings");
            MummyBoots = (new ItemMummySuit(paperSuit, 3)).setUnlocalizedName("PaperBoots").setTextureName("halloween:Suit/paper_boots");
            ZombieHelmet = (new ItemZombieSuit(fleshSuit, 0)).setUnlocalizedName("FleshHelmet").setTextureName("halloween:Suit/Flesh_helmet");
            ZombieChestplate = (new ItemZombieSuit(fleshSuit, 1)).setUnlocalizedName("FleshChestplate").setTextureName("halloween:Suit/Flesh_chestplate");
            ZombieLeggings = (new ItemZombieSuit(fleshSuit, 2)).setUnlocalizedName("FleshLeggings").setTextureName("halloween:Suit/Flesh_leggings");
            ZombieBoots = (new ItemZombieSuit(fleshSuit, 3)).setUnlocalizedName("FleshBoots").setTextureName("halloween:Suit/Flesh_boots");
            GhostHelmet = (new ItemGhostSuit(grayPaperSuit, 0)).setUnlocalizedName("grayPaperHelmet").setTextureName("halloween:Suit/grayPaper_helmet");
            GhostChestplate = (new ItemGhostSuit(grayPaperSuit, 1)).setUnlocalizedName("grayPaperChestplate").setTextureName("halloween:Suit/grayPaper_chestplate");
            GhostLeggings = (new ItemGhostSuit(grayPaperSuit, 2)).setUnlocalizedName("grayPaperLeggings").setTextureName("halloween:Suit/grayPaper_leggings");
            GhostBoots = (new ItemGhostSuit(grayPaperSuit, 3)).setUnlocalizedName("grayPaperBoots").setTextureName("halloween:Suit/grayPaper_boots");
            VampireHelmet = (new ItemVampireSuit(stringSuit, 0)).setUnlocalizedName("StringHelmet").setTextureName("halloween:Suit/String_helmet");
            VampireChestplate = (new ItemVampireSuit(stringSuit, 1)).setUnlocalizedName("StringChestplate").setTextureName("halloween:Suit/String_chestplate");
            VampireLeggings = (new ItemVampireSuit(stringSuit, 2)).setUnlocalizedName("StringLeggings").setTextureName("halloween:Suit/String_leggings");
            VampireBoots = (new ItemVampireSuit(stringSuit, 3)).setUnlocalizedName("StringBoots").setTextureName("halloween:Suit/String_boots");
    
            // Block
            Cross = new BlockCross().setBlockName("Cross").setCreativeTab(CreativeTabs.tabDecorations).setBlockTextureName("halloween:normal_cross");
            RoundedCross = new BlockRoundedCross().setBlockName("RoundedCross").setCreativeTab(CreativeTabs.tabDecorations).setBlockTextureName("halloween:rounded_cross");
    
            // Register Item
            GameRegistry.registerItem(BlackString, "BlackString", "This_is_Halloween");
            GameRegistry.registerItem(BloodBottle, "BloodBottle", "This_is_Halloween");
            GameRegistry.registerItem(GrayPaper, "GrayPaper", "This_is_Halloween");
    
            // Register Item : Candy
            GameRegistry.registerItem(LightGrayCandy, "LightGrayCandy", "This_is_Halloween");
            GameRegistry.registerItem(BlackCandy, "BlackCandy", "This_is_Halloween");
            GameRegistry.registerItem(BrownCandy, "BrownCandy", "This_is_Halloween");
            GameRegistry.registerItem(CactusGreenCandy, "CactusGreenCandy", "This_is_Halloween");
            GameRegistry.registerItem(CyanCandy, "CyanCandy", "This_is_Halloween");
            GameRegistry.registerItem(GrayCandy, "GrayCandy", "This_is_Halloween");
            GameRegistry.registerItem(WhiteCandy, "WhiteCandy", "This_is_Halloween");
            GameRegistry.registerItem(LapisLazuliCandy, "LapisLazuliCandy", "This_is_Halloween");
            GameRegistry.registerItem(RedCandy, "RedCandy", "This_is_Halloween");
            GameRegistry.registerItem(LightBlueCandy, "LightBlueCandy", "This_is_Halloween");
            GameRegistry.registerItem(LimeCandy, "LimeCandy", "This_is_Halloween");
            GameRegistry.registerItem(MagentaCandy, "MagentaCandy", "This_is_Halloween");
            GameRegistry.registerItem(OrangeCandy, "OrangeCandy", "This_is_Halloween");
            GameRegistry.registerItem(PurpleCandy, "PurpleCandy", "This_is_Halloween");
            GameRegistry.registerItem(PinkCandy, "PinkCandy", "This_is_Halloween");
            GameRegistry.registerItem(YellowCandy, "YellowCandy", "This_is_Halloween");
            GameRegistry.registerItem(TrickorTreatCandy, "TrickorTreatCandy", "This_is_Halloween");
    
            // Register Item : Suit
            GameRegistry.registerItem(MummyHelmet, "MummyHelmet", "This_is_Halloween");
            GameRegistry.registerItem(MummyChestplate, "MummyChestplate", "This_is_Halloween");
            GameRegistry.registerItem(MummyLeggings, "MummyLeggings", "This_is_Halloween");
            GameRegistry.registerItem(MummyBoots, "MummyBoots", "This_is_Halloween");
            GameRegistry.registerItem(VampireHelmet, "VampireHelmet", "This_is_Halloween");
            GameRegistry.registerItem(VampireChestplate, "VampireChestplate", "This_is_Halloween");
            GameRegistry.registerItem(VampireLeggings, "VampireLeggings", "This_is_Halloween");
            GameRegistry.registerItem(VampireBoots, "VampireBoots", "This_is_Halloween");
            GameRegistry.registerItem(GhostHelmet, "GhostHelmet", "This_is_Halloween");
            GameRegistry.registerItem(GhostChestplate, "GhostChestplate", "This_is_Halloween");
            GameRegistry.registerItem(GhostLeggings, "GhostLeggings", "This_is_Halloween");
            GameRegistry.registerItem(GhostBoots, "GhostBoots", "This_is_Halloween");
            GameRegistry.registerItem(GhostLeggings, "GhostLeggings", "This_is_Halloween");
            GameRegistry.registerItem(GhostChestplate, "GhostChestplate", "This_is_Halloween");
            GameRegistry.registerItem(ZombieHelmet, "ZombieHelmet", "This_is_Halloween");
            GameRegistry.registerItem(ZombieChestplate, "ZombieChestplate", "This_is_Halloween");
            GameRegistry.registerItem(ZombieLeggings, "ZombieLeggings", "This_is_Halloween");
            GameRegistry.registerItem(ZombieBoots, "ZombieBoots", "This_is_Halloween");
    
            // Register Block
            GameRegistry.registerBlock(Cross, "Cross");
            GameRegistry.registerBlock(RoundedCross, "RoundCross");
    
        }
    
        @EventHandler
        public void load(FMLInitializationEvent event)
        {
        //    ObfuscationReflectionHelper.setPrivateValue(net.minecraft.world.biome.BiomeGenBase.class, FMLClientHandler.instance().getClient().renderGlobal, 9999999, "getHSBColor");
    //        ObfuscationReflectionHelper.setPrivateValue(net.minecraft.client.renderer.EntityRenderer.class, FMLClientHandler.instance().getClient().entityRenderer, 6.5D, "cameraZoom", "field_78503_V");
    //        ReflectionHelper.setPrivateValue(net.minecraft.world.biome.BiomeGenBase.class, FMLClientHandler.instance().getClient().entityRenderer, "cameraZoom")
            proxy.registerRenderThings();
            // Ghost
            EntityRegistry.registerGlobalEntityID(EntityGhost.class, "Ghost", EntityRegistry.findGlobalUniqueEntityId());
            EntityRegistry.addSpawn(EntityGhost.class, 50, 1, 4, EnumCreatureType.monster, BiomeGenBase.forest, BiomeGenBase.beach, BiomeGenBase.desert, BiomeGenBase.desertHills, BiomeGenBase.extremeHills, BiomeGenBase.extremeHillsEdge, BiomeGenBase.forestHills, BiomeGenBase.frozenOcean, BiomeGenBase.frozenRiver, BiomeGenBase.iceMountains, BiomeGenBase.icePlains, BiomeGenBase.jungle, BiomeGenBase.jungleHills, BiomeGenBase.mushroomIsland, BiomeGenBase.mushroomIslandShore, BiomeGenBase.ocean, BiomeGenBase.plains, BiomeGenBase.river, BiomeGenBase.swampland, BiomeGenBase.taiga, BiomeGenBase.sky, BiomeGenBase.taigaHills);
            registerEntityEgg(EntityGhost.class, 0x646464, 0xDDDDDD);
            // Vampire
            EntityRegistry.registerGlobalEntityID(EntityVampire.class, "Vampire", EntityRegistry.findGlobalUniqueEntityId());
            EntityRegistry.addSpawn(EntityVampire.class, 100, 1, 4, EnumCreatureType.monster, BiomeGenBase.forest, BiomeGenBase.beach, BiomeGenBase.desert, BiomeGenBase.desertHills, BiomeGenBase.extremeHills, BiomeGenBase.extremeHillsEdge, BiomeGenBase.forestHills, BiomeGenBase.frozenOcean, BiomeGenBase.frozenRiver, BiomeGenBase.iceMountains, BiomeGenBase.icePlains, BiomeGenBase.jungle, BiomeGenBase.jungleHills, BiomeGenBase.mushroomIsland, BiomeGenBase.mushroomIslandShore, BiomeGenBase.ocean, BiomeGenBase.plains, BiomeGenBase.river, BiomeGenBase.swampland, BiomeGenBase.taiga, BiomeGenBase.sky, BiomeGenBase.taigaHills);
            registerEntityEgg(EntityVampire.class, 0x000000, 0xCC0000);
            // Mummy
            EntityRegistry.registerGlobalEntityID(EntityMummy.class, "Mummy", EntityRegistry.findGlobalUniqueEntityId());
            EntityRegistry.addSpawn(EntityMummy.class, 50, 1, 4, EnumCreatureType.monster, BiomeGenBase.forest, BiomeGenBase.beach, BiomeGenBase.desert, BiomeGenBase.desertHills, BiomeGenBase.extremeHills, BiomeGenBase.extremeHillsEdge, BiomeGenBase.forestHills, BiomeGenBase.frozenOcean, BiomeGenBase.frozenRiver, BiomeGenBase.iceMountains, BiomeGenBase.icePlains, BiomeGenBase.jungle, BiomeGenBase.jungleHills, BiomeGenBase.mushroomIsland, BiomeGenBase.mushroomIslandShore, BiomeGenBase.ocean, BiomeGenBase.plains, BiomeGenBase.river, BiomeGenBase.swampland, BiomeGenBase.taiga, BiomeGenBase.sky, BiomeGenBase.taigaHills);
            registerEntityEgg(EntityMummy.class, 0xFFFFCC, 0xFFFF33);
    
            // Craft
            GameRegistry.addShapelessRecipe(new ItemStack(BlackString, 1), new Object[]{ new ItemStack(Items.string, 1), new ItemStack(Items.dye, 1, 0)});
            GameRegistry.addShapelessRecipe(new ItemStack(GrayPaper, 1), new Object[]{ new ItemStack(Items.paper, 1), new ItemStack(Items.dye, 1, 8)});
    
            // Craft : Suit
            GameRegistry.addRecipe(new ItemStack(MummyHelmet, 1), new Object[] {"###", "# #", '#', Items.paper});
            GameRegistry.addRecipe(new ItemStack(MummyChestplate, 1), new Object[] {"# #", "###", "###", '#', Items.paper});
            GameRegistry.addRecipe(new ItemStack(MummyLeggings, 1), new Object[] {"###", "# #","# #", '#', Items.paper});
            GameRegistry.addRecipe(new ItemStack(MummyBoots, 1), new Object[] {"# #", "# #", '#', Items.paper});
            GameRegistry.addRecipe(new ItemStack(ZombieHelmet, 1), new Object[] {"###", "# #", '#', Items.rotten_flesh});
            GameRegistry.addRecipe(new ItemStack(ZombieChestplate, 1), new Object[] {"# #", "###", "###", '#', Items.rotten_flesh});
            GameRegistry.addRecipe(new ItemStack(ZombieLeggings, 1), new Object[] {"###", "# #","# #", '#', Items.rotten_flesh});
            GameRegistry.addRecipe(new ItemStack(ZombieBoots, 1), new Object[] {"# #", "# #", '#', Items.rotten_flesh});
            GameRegistry.addRecipe(new ItemStack(GhostHelmet, 1), new Object[] {"###", "# #", '#', GrayPaper});
            GameRegistry.addRecipe(new ItemStack(GhostChestplate, 1), new Object[] {"# #", "###", "###", '#', GrayPaper});
            GameRegistry.addRecipe(new ItemStack(GhostLeggings, 1), new Object[] {"###", "# #","# #", '#', GrayPaper});
            GameRegistry.addRecipe(new ItemStack(GhostBoots, 1), new Object[] {"# #", "# #", '#', GrayPaper});
            GameRegistry.addRecipe(new ItemStack(VampireHelmet, 1), new Object[] {"###", "X X", '#', new ItemStack(Items.dye, 1, 15), 'X', BloodBottle});
            GameRegistry.addRecipe(new ItemStack(VampireChestplate, 1), new Object[] {"# #", "X#X", "###", '#', BlackString, 'X', BloodBottle});
            GameRegistry.addRecipe(new ItemStack(VampireLeggings, 1), new Object[] {"###", "X X","# #", '#', BlackString, 'X', BloodBottle});
            GameRegistry.addRecipe(new ItemStack(VampireBoots, 1), new Object[] {"# #", "# #", '#', BlackString});
    
            // Craft : Candy
            GameRegistry.addShapelessRecipe(new ItemStack(BlackCandy, 3), new Object[]{ new ItemStack(Items.sugar, 1), new ItemStack(Items.dye, 1, 0)});
            GameRegistry.addShapelessRecipe(new ItemStack(BrownCandy, 3), new Object[]{ new ItemStack(Items.sugar, 1), new ItemStack(Items.dye, 1, 3)});
            GameRegistry.addShapelessRecipe(new ItemStack(CactusGreenCandy, 3), new Object[]{ new ItemStack(Items.sugar, 1), new ItemStack(Items.dye, 1, 2)});
            GameRegistry.addShapelessRecipe(new ItemStack(CyanCandy, 3), new Object[]{ new ItemStack(Items.sugar, 1), new ItemStack(Items.dye, 1, 6)});
            GameRegistry.addShapelessRecipe(new ItemStack(GrayCandy, 3), new Object[]{ new ItemStack(Items.sugar, 1), new ItemStack(Items.dye, 1, 8)});
            GameRegistry.addShapelessRecipe(new ItemStack(LightGrayCandy, 3), new Object[]{ new ItemStack(Items.sugar, 1), new ItemStack(Items.dye, 1, 7)});
            GameRegistry.addShapelessRecipe(new ItemStack(WhiteCandy, 3), new Object[]{ new ItemStack(Items.sugar, 1), new ItemStack(Items.dye, 1, 15)});
            GameRegistry.addShapelessRecipe(new ItemStack(LapisLazuliCandy, 3), new Object[]{ new ItemStack(Items.sugar, 1), new ItemStack(Items.dye, 1, 4)});
            GameRegistry.addShapelessRecipe(new ItemStack(RedCandy, 3), new Object[]{ new ItemStack(Items.sugar, 1), new ItemStack(Items.dye, 1, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(LightBlueCandy, 3), new Object[]{ new ItemStack(Items.sugar, 1), new ItemStack(Items.dye, 1, 12)});
            GameRegistry.addShapelessRecipe(new ItemStack(LimeCandy, 3), new Object[]{ new ItemStack(Items.sugar, 1), new ItemStack(Items.dye, 1, 10)});
            GameRegistry.addShapelessRecipe(new ItemStack(MagentaCandy, 3), new Object[]{ new ItemStack(Items.sugar, 1), new ItemStack(Items.dye, 1, 13)});
            GameRegistry.addShapelessRecipe(new ItemStack(OrangeCandy, 3), new Object[]{ new ItemStack(Items.sugar, 1), new ItemStack(Items.dye, 1, 14)});
            GameRegistry.addShapelessRecipe(new ItemStack(PurpleCandy, 3), new Object[]{ new ItemStack(Items.sugar, 1), new ItemStack(Items.dye, 1, 5)});
            GameRegistry.addShapelessRecipe(new ItemStack(PinkCandy, 3), new Object[]{ new ItemStack(Items.sugar, 1), new ItemStack(Items.dye, 1, 9)});
            GameRegistry.addShapelessRecipe(new ItemStack(YellowCandy, 3), new Object[]{ new ItemStack(Items.sugar, 1), new ItemStack(Items.dye, 1, 11)});
            // Craft : Candy : Trick or Treat Candy
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(LightGrayCandy, 1), new ItemStack(BlackCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(LightGrayCandy, 1), new ItemStack(BrownCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(LightGrayCandy, 1), new ItemStack(CactusGreenCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(LightGrayCandy, 1), new ItemStack(CyanCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(LightGrayCandy, 1), new ItemStack(GrayCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(LightGrayCandy, 1), new ItemStack(WhiteCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(LightGrayCandy, 1), new ItemStack(LapisLazuliCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(LightGrayCandy, 1), new ItemStack(RedCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(LightGrayCandy, 1), new ItemStack(LightBlueCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(LightGrayCandy, 1), new ItemStack(LimeCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(LightGrayCandy, 1), new ItemStack(MagentaCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(LightGrayCandy, 1), new ItemStack(OrangeCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(LightGrayCandy, 1), new ItemStack(PurpleCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(LightGrayCandy, 1), new ItemStack(PinkCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(LightGrayCandy, 1), new ItemStack(YellowCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(BlackCandy, 1), new ItemStack(BrownCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(BlackCandy, 1), new ItemStack(CactusGreenCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(BlackCandy, 1), new ItemStack(CyanCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(BlackCandy, 1), new ItemStack(GrayCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(BlackCandy, 1), new ItemStack(WhiteCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(BlackCandy, 1), new ItemStack(LapisLazuliCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(BlackCandy, 1), new ItemStack(RedCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(BlackCandy, 1), new ItemStack(LightBlueCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(BlackCandy, 1), new ItemStack(LimeCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(BlackCandy, 1), new ItemStack(MagentaCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(BlackCandy, 1), new ItemStack(OrangeCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(BlackCandy, 1), new ItemStack(PurpleCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(BlackCandy, 1), new ItemStack(PinkCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(BlackCandy, 1), new ItemStack(YellowCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(BrownCandy, 1), new ItemStack(CactusGreenCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(BrownCandy, 1), new ItemStack(CyanCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(BrownCandy, 1), new ItemStack(GrayCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(BrownCandy, 1), new ItemStack(WhiteCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(BrownCandy, 1), new ItemStack(LapisLazuliCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(BrownCandy, 1), new ItemStack(RedCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(BrownCandy, 1), new ItemStack(LightBlueCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(BrownCandy, 1), new ItemStack(LimeCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(BrownCandy, 1), new ItemStack(MagentaCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(BrownCandy, 1), new ItemStack(OrangeCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(BrownCandy, 1), new ItemStack(PurpleCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(BrownCandy, 1), new ItemStack(PinkCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(BrownCandy, 1), new ItemStack(YellowCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(CactusGreenCandy, 1), new ItemStack(CyanCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(CactusGreenCandy, 1), new ItemStack(GrayCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(CactusGreenCandy, 1), new ItemStack(WhiteCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(CactusGreenCandy, 1), new ItemStack(LapisLazuliCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(CactusGreenCandy, 1), new ItemStack(RedCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(CactusGreenCandy, 1), new ItemStack(LightBlueCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(CactusGreenCandy, 1), new ItemStack(LimeCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(CactusGreenCandy, 1), new ItemStack(MagentaCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(CactusGreenCandy, 1), new ItemStack(OrangeCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(CactusGreenCandy, 1), new ItemStack(PurpleCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(CactusGreenCandy, 1), new ItemStack(PinkCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(CactusGreenCandy, 1), new ItemStack(YellowCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(CyanCandy, 1), new ItemStack(WhiteCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(CyanCandy, 1), new ItemStack(LapisLazuliCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(CyanCandy, 1), new ItemStack(RedCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(CyanCandy, 1), new ItemStack(GrayCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(CyanCandy, 1), new ItemStack(LightBlueCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(CyanCandy, 1), new ItemStack(LimeCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(CyanCandy, 1), new ItemStack(MagentaCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(CyanCandy, 1), new ItemStack(OrangeCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(CyanCandy, 1), new ItemStack(PurpleCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(CyanCandy, 1), new ItemStack(PinkCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(CyanCandy, 1), new ItemStack(YellowCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(WhiteCandy, 1), new ItemStack(LapisLazuliCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(WhiteCandy, 1), new ItemStack(RedCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(WhiteCandy, 1), new ItemStack(GrayCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(WhiteCandy, 1), new ItemStack(LightBlueCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(WhiteCandy, 1), new ItemStack(LimeCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(WhiteCandy, 1), new ItemStack(MagentaCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(WhiteCandy, 1), new ItemStack(PurpleCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(WhiteCandy, 1), new ItemStack(OrangeCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(WhiteCandy, 1), new ItemStack(PinkCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(WhiteCandy, 1), new ItemStack(YellowCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(LapisLazuliCandy, 1), new ItemStack(RedCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(LapisLazuliCandy, 1), new ItemStack(GrayCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(LapisLazuliCandy, 1), new ItemStack(LightBlueCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(LapisLazuliCandy, 1), new ItemStack(LimeCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(LapisLazuliCandy, 1), new ItemStack(MagentaCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(LapisLazuliCandy, 1), new ItemStack(PurpleCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(LapisLazuliCandy, 1), new ItemStack(OrangeCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(LapisLazuliCandy, 1), new ItemStack(PinkCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(LapisLazuliCandy, 1), new ItemStack(YellowCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(RedCandy, 1), new ItemStack(GrayCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(RedCandy, 1), new ItemStack(LightBlueCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(RedCandy, 1), new ItemStack(LimeCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(RedCandy, 1), new ItemStack(MagentaCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(RedCandy, 1), new ItemStack(OrangeCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(RedCandy, 1), new ItemStack(PurpleCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(RedCandy, 1), new ItemStack(PinkCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(RedCandy, 1), new ItemStack(YellowCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(GrayCandy, 1), new ItemStack(LightBlueCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(GrayCandy, 1), new ItemStack(LimeCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(GrayCandy, 1), new ItemStack(MagentaCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(GrayCandy, 1), new ItemStack(OrangeCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(GrayCandy, 1), new ItemStack(PurpleCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(GrayCandy, 1), new ItemStack(PinkCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(GrayCandy, 1), new ItemStack(YellowCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(LightBlueCandy, 1), new ItemStack(LimeCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(LightBlueCandy, 1), new ItemStack(MagentaCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(LightBlueCandy, 1), new ItemStack(OrangeCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(LightBlueCandy, 1), new ItemStack(PurpleCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(LightBlueCandy, 1), new ItemStack(PinkCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(LightBlueCandy, 1), new ItemStack(YellowCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(LimeCandy, 1), new ItemStack(MagentaCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(LimeCandy, 1), new ItemStack(OrangeCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(LimeCandy, 1), new ItemStack(PurpleCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(LimeCandy, 1), new ItemStack(PinkCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(LimeCandy, 1), new ItemStack(YellowCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(MagentaCandy, 1), new ItemStack(OrangeCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(MagentaCandy, 1), new ItemStack(PurpleCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(MagentaCandy, 1), new ItemStack(PinkCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(MagentaCandy, 1), new ItemStack(YellowCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(OrangeCandy, 1), new ItemStack(YellowCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(OrangeCandy, 1), new ItemStack(PurpleCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(OrangeCandy, 1), new ItemStack(PinkCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(YellowCandy, 1), new ItemStack(PurpleCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(YellowCandy, 1), new ItemStack(PinkCandy, 1)});
            GameRegistry.addShapelessRecipe(new ItemStack(TrickorTreatCandy, 3), new Object[]{ new ItemStack(PurpleCandy, 1), new ItemStack(PinkCandy, 1)});
    
        }
        @SubscribeEvent
        public static int GetUniqueID()
        {
            int EntityID=300;
            do
            {
                EntityID++;
            }while(EntityList.getStringFromID(EntityID) != null);
    
            return EntityID;
    
        }
        public static void registerEntityEgg(Class entity, int primaryColour, int secondaryColour)
        {
            int id = GetUniqueID();
            EntityList.IDtoClassMapping.put(id, entity);
            EntityList.entityEggs.put(id, new EntityEggInfo(id, primaryColour, secondaryColour));
        }
        @EventHandler
        public void modloaded(FMLPostInitializationEvent event) throws NoSuchFieldException, SecurityException, IllegalArgumentException, IllegalAccessException
        {
            try {
    
                Field f = DimensionManager.class.getDeclaredField("providers");
                f.setAccessible(true);
    
                Hashtable providers = (Hashtable)f.get(null);
                providers.put(Integer.valueOf(0), SkyRender.class);
                f.set(null, providers);
            }
            catch(NoSuchFieldException | IllegalArgumentException | IllegalAccessException e)
            {
                throw new RuntimeException("Could not override the DimensionManager providers!", e);
            }
        }
    }
    
    

    ClientProxy :

    ​package This_is_Halloween;
    
    import net.minecraft.client.model.ModelBiped;
    import net.minecraftforge.common.MinecraftForge;
    import cpw.mods.fml.client.registry.RenderingRegistry;
    import cpw.mods.fml.common.FMLCommonHandler;
    import cpw.mods.fml.relauncher.Side;
    
    public class ClientProxy extends CommonProxy{
        public void registerTextures()
        {
        }
    
        @Override
        public void registerRenderThings()
        {
            RenderingRegistry.registerEntityRenderingHandler(EntityVampire.class, new RenderVampire(new ModelBiped(), 0.05F));
            RenderingRegistry.registerEntityRenderingHandler(EntityMummy.class, new RenderMummy(new ModelBiped(), 0.05F));
            RenderingRegistry.registerEntityRenderingHandler(EntityGhost.class, new RenderGhost(new ModelBiped (), 0.5f));   
            FMLCommonHandler.instance().bus().register(new ClientTickHandler());
            FMLCommonHandler.instance().bus().register(new SkyRender());
        }
    }
    

    SkyRender :

    ​package This_is_Halloween;
    
    import org.lwjgl.opengl.GL11;
    
    import cpw.mods.fml.common.ObfuscationReflectionHelper;
    import cpw.mods.fml.relauncher.ReflectionHelper;
    import cpw.mods.fml.relauncher.Side;
    import cpw.mods.fml.relauncher.SideOnly;
    import net.minecraft.client.Minecraft;
    import net.minecraft.client.multiplayer.WorldClient;
    import net.minecraft.client.renderer.OpenGlHelper;
    import net.minecraft.client.renderer.RenderGlobal;
    import net.minecraft.client.renderer.RenderHelper;
    import net.minecraft.client.renderer.Tessellator;
    import net.minecraft.entity.Entity;
    import net.minecraft.util.Vec3;
    import net.minecraft.world.WorldProvider;
    import net.minecraftforge.client.IRenderHandler;
    
    public class SkyRender extends WorldProvider {
    
        public void registerWorldChunkManager()
        {
            this.dimensionId = 0;
        }
    
        public String getDimensionName()
        {
            return "Overworld";
        }
    
        @SideOnly(Side.CLIENT)
        public boolean isSkyColored()
        {
            return true;
        }
    
        @Override
        public Vec3 getSkyColor(Entity cameraEntity, float partialTicks)
        {                                
            return Vec3.createVectorHelper(2.8, 1.1, 1.7);
        }    
    }
    

    Si tu as besoin d’autre classe, n’hésite pas à demander


  • Salut
    Est-ce que quelqu’un pourrait m’expliquer comment marche l’asm ? Car malgré les (nombreux) tutos qu’on trouve (que ce soit français ou anglais), je ne comprend rien.

    Merci d’avance


  • Dans la classe de ton WorldProvider ajoute ça :

    ​    public IChunkProvider createChunkGenerator()
    
        {
            return new ChunkProviderGenerate(this.worldObj, this.worldObj.getSeed(), false);
        }
    
    

  • J’ai toujours un crash au lancement d’un monde, mais ce n’est plus le même qu’avant :
    :::
    [14:33:05] [main/INFO] [GradleStart]: Extra: []

    [14:33:05] [main/INFO] [GradleStart]: Running with arguments: [–userProperties, {}, --assetsDir, C:/Users/Antonin/.gradle/caches/minecraft/assets, --assetIndex, 1.7.10, --accessToken, {REDACTED}, --version, 1.7.10, --tweakClass, cpw.mods.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker]
    [14:33:05] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker
    [14:33:05] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker
    [14:33:05] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker
    [14:33:05] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker
    [14:33:05] [main/INFO] [FML]: Forge Mod Loader version 7.10.85.1291 for Minecraft 1.7.10 loading
    [14:33:05] [main/INFO] [FML]: Java is Java HotSpot™ 64-Bit Server VM, version 1.8.0_31, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jre1.8.0_31
    [14:33:05] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
    [14:33:05] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker
    [14:33:05] [main/INFO] [GradleStart]: Injecting location in coremod cpw.mods.fml.relauncher.FMLCorePlugin
    [14:33:05] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
    [14:33:05] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
    [14:33:05] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker
    [14:33:05] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
    [14:33:05] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
    [14:33:05] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
    [14:33:05] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
    [14:33:07] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
    [14:33:07] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
    [14:33:07] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker
    [14:33:07] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.TerminalTweaker
    [14:33:07] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.TerminalTweaker
    [14:33:07] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
    [14:33:08] [main/INFO]: Setting user: Player760
    [14:33:09] [Client thread/INFO]: LWJGL Version: 2.9.1
    [14:33:09] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization
    [14:33:09] [Client thread/INFO] [FML]: MinecraftForge v10.13.2.1291 Initialized
    [14:33:09] [Client thread/INFO] [FML]: Replaced 183 ore recipies
    [14:33:09] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization
    [14:33:10] [Client thread/INFO] [FML]: Searching C:\Users\Antonin\Documents\Codage\Minecraft\This_is_Halloween\v1.2\MC1.7\eclipse\mods for mods
    [14:33:12] [Client thread/INFO] [FML]: Forge Mod Loader has identified 5 mods to load
    [14:33:12] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, examplemod, This_is_Halloween] at CLIENT
    [14:33:12] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, examplemod, This_is_Halloween] at SERVER
    [14:33:12] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Example Mod, FMLFileResourcePack:This is Halloween
    [14:33:12] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
    [14:33:12] [Client thread/INFO] [FML]: Found 341 ObjectHolder annotations
    [14:33:12] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
    [14:33:12] [Client thread/WARN] [FML]: ****************************************
    [14:33:12] [Client thread/WARN] [FML]: * The object This_is_Halloween.ItemGhostSuit@94f79a7 has been registered twice for the same name This_is_Halloween:GhostLeggings.
    [14:33:12] [Client thread/WARN] [FML]: *  at cpw.mods.fml.common.registry.FMLControlledNamespacedRegistry.add(FMLControlledNamespacedRegistry.java:378)
    [14:33:12] [Client thread/WARN] [FML]: *  at cpw.mods.fml.common.registry.GameData.registerItem(GameData.java:838)
    [14:33:12] [Client thread/WARN] [FML]: *  at cpw.mods.fml.common.registry.GameData.registerItem(GameData.java:802)
    [14:33:12] [Client thread/WARN] [FML]: *  at cpw.mods.fml.common.registry.GameRegistry.registerItem(GameRegistry.java:143)
    [14:33:12] [Client thread/WARN] [FML]: *  at This_is_Halloween.This_is_Halloween.preload(This_is_Halloween.java:198)
    [14:33:12] [Client thread/WARN] [FML]: *  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)…
    [14:33:12] [Client thread/WARN] [FML]: ****************************************
    [14:33:12] [Client thread/WARN] [FML]: ****************************************
    [14:33:12] [Client thread/WARN] [FML]: * The object This_is_Halloween.ItemGhostSuit@77cd1f67 has been registered twice for the same name This_is_Halloween:GhostChestplate.
    [14:33:12] [Client thread/WARN] [FML]: *  at cpw.mods.fml.common.registry.FMLControlledNamespacedRegistry.add(FMLControlledNamespacedRegistry.java:378)
    [14:33:12] [Client thread/WARN] [FML]: *  at cpw.mods.fml.common.registry.GameData.registerItem(GameData.java:838)
    [14:33:12] [Client thread/WARN] [FML]: *  at cpw.mods.fml.common.registry.GameData.registerItem(GameData.java:802)
    [14:33:12] [Client thread/WARN] [FML]: *  at cpw.mods.fml.common.registry.GameRegistry.registerItem(GameRegistry.java:143)
    [14:33:12] [Client thread/WARN] [FML]: *  at This_is_Halloween.This_is_Halloween.preload(This_is_Halloween.java:199)
    [14:33:12] [Client thread/WARN] [FML]: *  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)…
    [14:33:12] [Client thread/WARN] [FML]: ****************************************
    [14:33:12] [Client thread/INFO] [FML]: Applying holder lookups
    [14:33:12] [Client thread/INFO] [FML]: Holder lookups applied
    [14:33:12] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:
    [14:33:12] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem…
    [14:33:13] [Thread-6/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL
    [14:33:13] [Thread-6/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
    [14:33:13] [Thread-6/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.
    [14:33:13] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:
    [14:33:13] [Sound Library Loader/INFO]: Sound engine started
    [14:33:14] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas
    [14:33:14] [Client thread/INFO]: Created: 256x256 textures/items-atlas
    [14:33:14] [Client thread/INFO] [STDOUT]: [com.example.examplemod.ExampleMod:init:18]: DIRT BLOCK >> tile.dirt
    [14:33:14] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 5 mods
    [14:33:14] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Example Mod, FMLFileResourcePack:This is Halloween
    [14:33:15] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas
    [14:33:15] [Client thread/INFO]: Created: 256x256 textures/items-atlas
    [14:33:15] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:
    [14:33:15] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: SoundSystem shutting down…
    [14:33:15] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:importantMessage:90]:     Author: Paul Lamb, www.paulscode.com
    [14:33:15] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:
    [14:33:15] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:
    [14:33:15] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem…
    [14:33:15] [Thread-8/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL
    [14:33:15] [Thread-8/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
    [14:33:15] [Thread-8/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.
    [14:33:15] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:
    [14:33:15] [Sound Library Loader/INFO]: Sound engine started
    [14:33:19] [Server thread/INFO]: Starting integrated minecraft server version 1.7.10
    [14:33:19] [Server thread/INFO]: Generating keypair
    [14:33:19] [Server thread/INFO] [FML]: Injecting existing block and item data into this server instance
    [14:33:19] [Server thread/INFO] [FML]: Applying holder lookups
    [14:33:19] [Server thread/INFO] [FML]: Holder lookups applied
    [14:33:19] [Server thread/INFO] [FML]: Loading dimension 0 (New World–) (net.minecraft.server.integrated.IntegratedServer@189ab54f)
    [14:33:19] [Server thread/INFO] [FML]: Loading dimension 1 (New World–) (net.minecraft.server.integrated.IntegratedServer@189ab54f)
    [14:33:19] [Server thread/INFO] [FML]: Loading dimension -1 (New World–) (net.minecraft.server.integrated.IntegratedServer@189ab54f)
    [14:33:19] [Server thread/INFO]: Preparing start region for level 0
    [14:33:20] [Server thread/ERROR]: Encountered an unexpected exception
    net.minecraft.util.ReportedException: Exception ticking world
        at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:698) ~[MinecraftServer.class:?]
        at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614) ~[MinecraftServer.class:?]
        at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118) ~[IntegratedServer.class:?]
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485) [MinecraftServer.class:?]
        at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752) [MinecraftServer$2.class:?]
    Caused by: java.lang.NullPointerException
        at net.minecraft.world.WorldServer.tick(WorldServer.java:152) ~[WorldServer.class:?]
        at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:692) ~[MinecraftServer.class:?]
        … 4 more
    [14:33:20] [Server thread/ERROR]: This crash report has been saved to: C:\Users\Antonin\Documents\Codage\Minecraft\This_is_Halloween\v1.2\MC1.7\eclipse.\crash-reports\crash-2015-03-25_14.33.20-server.txt
    [14:33:20] [Server thread/INFO]: Stopping server
    [14:33:20] [Server thread/INFO]: Saving players
    [14:33:20] [Server thread/INFO]: Saving worlds
    [14:33:20] [Server thread/INFO]: Saving chunks for level ‘New World–’/Overworld
    [14:33:20] [Server thread/INFO]: Saving chunks for level ‘New World–’/Nether
    [14:33:20] [Server thread/INFO]: Saving chunks for level ‘New World–’/The End
    [14:33:20] [Server thread/INFO] [FML]: Unloading dimension 0
    [14:33:20] [Server thread/INFO] [FML]: Unloading dimension -1
    [14:33:20] [Server thread/INFO] [FML]: Unloading dimension 1
    [14:33:20] [Server thread/INFO] [FML]: Applying holder lookups
    [14:33:20] [Server thread/INFO] [FML]: Holder lookups applied
    [14:33:20] [Server thread/INFO] [FML]: The state engine was in incorrect state SERVER_STOPPING and forced into state SERVER_STOPPED. Errors may have been discarded.
    [14:33:20] [Client thread/INFO] [STDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:388]: –-- Minecraft Crash Report ----
    // There are four lights!

    Time: 25/03/15 14:33
    Description: Exception ticking world

    java.lang.NullPointerException: Exception ticking world
        at net.minecraft.world.WorldServer.tick(WorldServer.java:152)
        at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:692)
        at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614)
        at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485)
        at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752)

    A detailed walkthrough of the error, its code path and all known details is as follows:

    – Head –
    Stacktrace:
        at net.minecraft.world.WorldServer.tick(WorldServer.java:152)

    – Affected level –
    Details:
        Level name: New World–
        All players: 0 total; []
        Chunk stats: ServerChunkCache: 625 Drop: 0
        Level seed: -8230970818675283027
        Level generator: ID 00 - default, ver 1. Features enabled: true
        Level generator options:
        Level spawn location: World: (228,64,-156), Chunk: (at 4,4,4 in 14,-10; contains blocks 224,0,-160 to 239,255,-145), Region: (0,-1; contains chunks 0,-32 to 31,-1, blocks 0,0,-512 to 511,255,-1)
        Level time: 7135 game time, 7135 day time
        Level dimension: 0
        Level storage version: 0x04ABD - Anvil
        Level weather: Rain time: 143949 (now: false), thunder time: 68142 (now: false)
        Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: true
    Stacktrace:
        at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:692)
        at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614)
        at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485)
        at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752)

    – System Details –
    Details:
        Minecraft Version: 1.7.10
        Operating System: Windows 7 (amd64) version 6.1
        Java Version: 1.8.0_31, Oracle Corporation
        Java VM Version: Java HotSpot™ 64-Bit Server VM (mixed mode), Oracle Corporation
        Memory: 793405360 bytes (756 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)
        JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
        AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
        IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
        FML: MCP v9.05 FML v7.10.85.1291 Minecraft Forge 10.13.2.1291 5 mods loaded, 5 mods active
        mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
        FML{7.10.85.1291} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.2.1291.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
        Forge{10.13.2.1291} [Minecraft Forge] (forgeSrc-1.7.10-10.13.2.1291.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
        examplemod{1.0} [Example Mod] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
        This_is_Halloween{1.2} [This is Halloween] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
        Profiler Position: N/A (disabled)
        Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
        Player Count: 0 / 8; []
        Type: Integrated Server (map_client.txt)
        Is Modded: Definitely; Client brand changed to ‘fml,forge’
    [14:33:20] [Client thread/INFO] [STDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:393]: #@!@# Game crashed! Crash report saved to: #@!@# .\crash-reports\crash-2015-03-25_14.33.20-server.txt
    AL lib: (EE) alc_cleanup: 1 device not closed
    Java HotSpot™ 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release

    (Ne faites pas attention au costume du fantôme enregistrer plusieurs fois, je m’en occuperais plus tard)
    :::

    L’erreur du “ciel” commence à 14:33:19

    J’ai essayer de chercher l’erreur grâce aux classes mentionnés, mais rien trouvé


  • Salut
    J’ai encore chercher de mon coté : rien trouver
    Mais j’ai eu une idée : je vais laisser le ciel tel qu’il est, je vais plutôt créer un monde où je modifierai le ciel.

    Merci tout de même pour toutes vos aides