• Recently Browsing

  • Posts

    • I don't understand what function, what existing client side code? What does running a ray trace mean?
    • I'm pretty new to modding, and something that I'm wanting to add in my mod is a custom coal item. My plan for it is to basically fuel the furnace for twice as long as regular coal, but so far I really haven't been able to find anything on it and I don't understand how to modify the ItemCoal class to change how long the new coal item will burn for. Any help?
    • I'm not sure what you need docs for to copy-paste a function.
    • ok so i have portforwarded, all that stuff for the server but when i run it stops. heres the report   ---- Minecraft Crash Report ---- WARNING: coremods are present:   TransformerLoader (OpenComputers-MC1.12.2-1.7.5.192.jar)   WarpDriveCore (WarpDrive-1.12.2-1.5.12.jar) Contact their authors BEFORE contacting forge // Daisy, daisy... Time: 21/01/20 21:59 Description: Exception in server tick loop net.minecraftforge.fml.common.LoaderExceptionModCrash: Caught exception from IndustrialCraft 2 (ic2) Caused by: java.lang.OutOfMemoryError: Java heap space     at java.util.HashMap.resize(Unknown Source)     at java.util.HashMap.putVal(Unknown Source)     at java.util.HashMap.put(Unknown Source)     at com.google.common.collect.SparseImmutableTable.<init>(SparseImmutableTable.java:64)     at com.google.common.collect.RegularImmutableTable.forOrderedComponents(RegularImmutableTable.java:169)     at com.google.common.collect.RegularImmutableTable.forCellsInternal(RegularImmutableTable.java:159)     at com.google.common.collect.RegularImmutableTable.forCells(RegularImmutableTable.java:131)     at com.google.common.collect.ImmutableTable$Builder.build(ImmutableTable.java:359)     at com.google.common.collect.ImmutableTable.copyOf(ImmutableTable.java:221)     at com.google.common.collect.ImmutableTable.copyOf(ImmutableTable.java:211)     at net.minecraft.block.state.BlockStateContainer$StateImplementation.func_177235_a(BlockStateContainer.java:281)     at net.minecraft.block.state.BlockStateContainer.<init>(BlockStateContainer.java:95)     at net.minecraft.block.state.BlockStateContainer.<init>(BlockStateContainer.java:62)     at ic2.core.block.state.Ic2BlockState.<init>(Ic2BlockState.java:24)     at ic2.core.block.BlockTileEntity.func_180661_e(BlockTileEntity.java:254)     at net.minecraft.block.Block.<init>(Block.java:234)     at net.minecraft.block.Block.<init>(Block.java:243)     at ic2.core.block.BlockBase.<init>(BlockBase.java:45)     at ic2.core.block.BlockBase.<init>(BlockBase.java:37)     at ic2.core.block.BlockTileEntity.<init>(BlockTileEntity.java:110)     at ic2.core.block.BlockTileEntity.create(BlockTileEntity.java:102)     at ic2.core.block.BlockTileEntity.create(BlockTileEntity.java:92)     at ic2.core.block.TeBlockRegistry.buildBlocks(TeBlockRegistry.java:244)     at ic2.core.init.BlocksItems.initBlocks(BlocksItems.java:171)     at ic2.core.init.BlocksItems.init(BlocksItems.java:157)     at ic2.core.IC2.load(IC2.java:222)     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.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:637)     at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- System Details -- Details:     Minecraft Version: 1.12.2     Operating System: Windows 10 (x86) version 10.0     Java Version: 1.8.0_231, Oracle Corporation     Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation     Memory: 119827088 bytes (114 MB) / 259522560 bytes (247 MB) up to 259522560 bytes (247 MB)     JVM Flags: 0 total;      IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0     FML: MCP 9.42 Powered by Forge 14.23.5.2847 15 mods loaded, 15 mods active     States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored     | State | ID                 | Version                | Source                                  | Signature                                |     |:----- |:------------------ |:---------------------- |:--------------------------------------- |:---------------------------------------- |     | LCH   | minecraft          | 1.12.2                 | minecraft.jar                           | None                                     |     | LCH   | mcp                | 9.42                   | minecraft.jar                           | None                                     |     | LCH   | FML                | 8.0.99.99              | forge-1.12.2-14.23.5.2847-universal.jar | None                                     |     | LCH   | forge              | 14.23.5.2847           | forge-1.12.2-14.23.5.2847-universal.jar | None                                     |     | LCH   | opencomputers|core | 1.7.5.192              | minecraft.jar                           | None                                     |     | LCH   | WarpDriveCore      | 1.12.2-1.5.12.SNAPSHOT | minecraft.jar                           | None                                     |     | LCH   | bookshelf          | 2.3.581                | Bookshelf-1.12.2-2.3.581.jar            | d476d1b22b218a10d845928d1665d45fce301b27 |     | LCH   | gamestages         | 2.0.115                | GameStages-1.12.2-2.0.115.jar           | d476d1b22b218a10d845928d1665d45fce301b27 |     | LCE   | ic2                | 2.8.170-ex112          | industrialcraft-2-2.8.170-ex112.jar     | de041f9f6187debbc77034a344134053277aa3b0 |     | LC    | jei                | 4.15.0.291             | jei_1.12.2-4.15.0.291.jar               | None                                     |     | LC    | mantle             | 1.12-1.3.3.55          | Mantle-1.12-1.3.3.55.jar                | None                                     |     | LC    | tconstruct         | 1.12.2-2.13.0.171      | TConstruct-1.12.2-2.13.0.171.jar        | None                                     |     | LC    | nuclearcraft       | 2.18o                  | NuclearCraft-2.18o-1.12.2.jar           | None                                     |     | LC    | opencomputers      | 1.7.5.192              | OpenComputers-MC1.12.2-1.7.5.192.jar    | None                                     |     | LC    | warpdrive          | 1.12.2-1.5.12.SNAPSHOT | WarpDrive-1.12.2-1.5.12.jar             | f7be6b40743c6a8205df86c5e57547d578605d8a |     Loaded coremods (and transformers):  TransformerLoader (OpenComputers-MC1.12.2-1.7.5.192.jar)   li.cil.oc.common.asm.ClassTransformer WarpDriveCore (WarpDrive-1.12.2-1.5.12.jar)   cr0s.warpdrive.core.ClassTransformer     Pulsar/tconstruct loaded Pulses:          - TinkerCommons (Enabled/Forced)         - TinkerWorld (Enabled/Not Forced)         - TinkerTools (Enabled/Not Forced)         - TinkerHarvestTools (Enabled/Forced)         - TinkerMeleeWeapons (Enabled/Forced)         - TinkerRangedWeapons (Enabled/Forced)         - TinkerModifiers (Enabled/Forced)         - TinkerSmeltery (Enabled/Not Forced)         - TinkerGadgets (Enabled/Not Forced)         - TinkerOredict (Enabled/Forced)         - TinkerIntegration (Enabled/Forced)         - TinkerFluids (Enabled/Forced)         - TinkerMaterials (Enabled/Forced)         - TinkerModelRegister (Enabled/Forced)     Profiler Position: N/A (disabled)     Is Modded: Definitely; Server brand changed to 'fml,forge'     Type: Dedicated Server (map_server.txt)
    • By doing a little bit more digging, now that I'm not really tired today haha, I found that the PlayerRespawn event (when the player dies) actually also calls the PlayerClone event, helping me discover there was an option in PlayerEvent.Clone called "isWasDeath."   By using this event, I was able to determine if the player died, and re-apply my health modifier appropriately, which allowed me to set the playerNew's health to the same as the playerOld's health, thereby keeping their health across dimension change. Here's my fixed code: @SubscribeEvent public static void onPlayerClone(PlayerEvent.Clone event) { debug("PlayerClone{Event}"); // Fetch & Copy Capability PlayerEntity playerOld = event.getOriginal(); PlayerEntity playerNew = event.getPlayer(); IMoreHealth capOld = MoreHealth.getFromPlayer(playerOld); IMoreHealth capNew = MoreHealth.getFromPlayer(playerNew); capNew.copy(capOld); // Copy Health on Dimension Change if (!event.isWasDeath()) { debug("PlayerClone{Event}: Cloning from dimension change, re-applying health modifier."); LevelHearts.applyHealthModifier(playerNew, capNew.getTrueModifier()); playerNew.setHealth(playerOld.getHealth()); } } @SubscribeEvent public static void onPlayerRespawn(PlayerRespawnEvent event) { // Ensure server-side only if (event.getPlayer().getEntityWorld().isRemote) { return; } debug("PlayerRespawn{Event}"); // Fetch Capability PlayerEntity player = event.getPlayer(); IMoreHealth cap = MoreHealth.getFromPlayer(player); // Handle "The End" if (event.isEndConquered()) { debug("PlayerRespawn{Event}: Coming from end, syncing!"); MoreHealth.updateClient((ServerPlayerEntity) player, cap); return; } // ... other stuff }  
  • Topics

  • Who's Online (See full list)