Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

WARNING: coremods are present


Recommended Posts

Hello, world!

I have tried to start my server to play with friends, but gotcha problem. It doesn't work and crashes(

This is the crash report

 

 

---- Minecraft Crash Report ----

WARNING: coremods are present:
  MalisisSwitchesPlugin (malisisswitches-1.12.2-5.1.0.jar)
  CreativePatchingLoader (CreativeCore_v1.9.90_mc1.12.2.jar)
  SSLoadingPlugin (SereneSeasons-1.12.2-1.2.18-universal.jar)
  CTMCorePlugin (CTM-MC1.12.2-1.0.1.30.jar)
  ForgelinPlugin (Forgelin-1.8.4.jar)
  MekanismCoremod (Mekanism-1.12.2-9.8.3.390.jar)
  TransformLoader (DynamicSurroundings-1.12.2-3.6.0.2.jar)
  NWRTweak (redstonepaste-mc1.12-1.7.5.jar)
  BetterFontsCore (TTFR-1.12.1-1.9.1.jar)
  Inventory Tweaks Coremod (InventoryTweaks-1.64%2Bdev.150.jar)
  AppleCore (AppleCore-mc1.12.2-3.1.5.jar)
  ItemPatchingLoader (ItemPhysic_Full_1.4.28_mc1.12.2.jar)
  MalisisCorePlugin (malisiscore-1.12.2-6.5.1.jar)
  GSHooksLoader (GalaxySpace-1.12.2-2.0.12.jar)
  MicdoodlePlugin (MicdoodleCore-1.12.2-4.0.2.244.jar)
  TLSkinCapeHookLoader (tlskincape1.12.2-1.4.jar)
  LoadingPlugin (HardcoreDarkness-MC1.12.2-2.0.jar)
  FarseekCoreMod (Farseek-1.12-2.4.jar)
Contact their authors BEFORE contacting forge

// Uh... Did I do that?

Time: 03.05.22 0:33
Description: Exception in server tick loop

java.lang.NoClassDefFoundError: cubex2/ttfr/Config$SelectFontEntry
    at cubex2.ttfr.Config.syncConfig(Config.java:49)
    at cubex2.ttfr.Config.load(Config.java:37)
    at cubex2.ttfr.BFDummyContainer.preInit(BFDummyContainer.java:61)
    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.Subscriber.invokeSubscriberMethod(Subscriber.java:91)
    at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150)
    at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76)
    at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399)
    at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71)
    at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116)
    at com.google.common.eventbus.EventBus.post(EventBus.java:217)
    at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:219)
    at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:197)
    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.Subscriber.invokeSubscriberMethod(Subscriber.java:91)
    at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150)
    at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76)
    at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399)
    at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71)
    at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116)
    at com.google.common.eventbus.EventBus.post(EventBus.java:217)
    at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:136)
    at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:629)
    at net.minecraftforge.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:99)
    at net.minecraftforge.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:333)
    at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:125)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:486)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: cubex2.ttfr.Config$SelectFontEntry
    at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    ... 34 more
Caused by: java.lang.NoClassDefFoundError: net/minecraftforge/fml/client/config/GuiConfigEntries$SelectValueEntry
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:182)
    ... 36 more
Caused by: java.lang.ClassNotFoundException: net.minecraftforge.fml.client.config.GuiConfigEntries$SelectValueEntry
    at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:101)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    ... 40 more


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 8.1 (amd64) version 6.3
    Java Version: 1.8.0_45, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 1216476432 bytes (1160 MB) / 1507328000 bytes (1437 MB) up to 3806855168 bytes (3630 MB)
    JVM Flags: 0 total;
    IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
    FML: MCP 9.42 Powered by Forge 14.23.5.2854 97 mods loaded, 97 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.2854.jar                      | e3c3d50c7c986df74c645c0ac54639741c90a557 |
    | LCH   | forge                      | 14.23.5.2854            | forge-1.12.2-14.23.5.2854.jar                      | e3c3d50c7c986df74c645c0ac54639741c90a557 |
    | LCH   | creativecoredummy          | 1.0.0                   | minecraft.jar                                      | None                                     |
    | LCH   | itemphysic                 | 1.4.0                   | minecraft.jar                                      | None                                     |
    | LCH   | micdoodlecore              |                         | minecraft.jar                                      | None                                     |
    | LC    | betterfonts                | 1.9.1                   | minecraft.jar                                      | None                                     |
    | LC    | forgelin                   | 1.8.4                   | Forgelin-1.8.4.jar                                 | None                                     |
    | LC    | alib                       | 1.0.12                  | alib-1.0.12.jar                                    | None                                     |
    | LC    | alchemistry                | 1.12.2-39               | alchemistry-1.12.2-39.jar                          | None                                     |
    | LC    | applecore                  | 3.1.5                   | AppleCore-mc1.12.2-3.1.5.jar                       | None                                     |
    | LC    | jei                        | 4.15.0.293              | jei_1.12.2-4.15.0.293.jar                          | None                                     |
    | LC    | appleskin                  | 1.0.9                   | AppleSkin-mc1.12-1.0.9.jar                         | None                                     |
    | LC    | appliedenergistics2        | rv6-stable-7            | appliedenergistics2-rv6-stable-7.jar               | dfa4d3ac143316c6f32aa1a1beda1e34d42132e5 |
    | LC    | appliedintegrations        | 8.0.16.7                | AppliedIntegrations-1.12.2-e2884e6f.jar            | None                                     |
    | LC    | aquaculture                | 1.6.8                   | Aquaculture-1.12.2-1.6.8.jar                       | None                                     |
    | LC    | ic2                        | 2.8.197-ex112           | industrialcraft-2-2.8.197-ex112.jar                | de041f9f6187debbc77034a344134053277aa3b0 |
    | LC    | mantle                     | 1.12-1.3.3.55           | Mantle-1.12-1.3.3.55.jar                           | None                                     |
    | LC    | chisel                     | MC1.12.2-1.0.1.44       | Chisel-MC1.12.2-1.0.1.44.jar                       | None                                     |
    | LC    | tconstruct                 | 1.12.2-2.13.0.179       | TConstruct-1.12.2-2.13.0.179.jar                   | None                                     |
    | LC    | galacticraftcore           | 4.0.2.244               | GalacticraftCore-1.12.2-4.0.2.244.jar              | None                                     |
    | LC    | galacticraftplanets        | 4.0.2.244               | Galacticraft-Planets-1.12.2-4.0.2.244.jar          | None                                     |
    | LC    | asmodeuscore               | 0.0.13                  | asmodeuscore-1.12.2-0.0.13-1.jar                   | None                                     |
    | LC    | backpack                   | 3.0.2                   | backpack-3.0.2-1.12.2.jar                          | None                                     |
    | LC    | betterunderground          | 1.1.7                   | betterunderground-1.1.7.jar                        | None                                     |
    | LC    | biomesoplenty              | 7.0.1.2444              | BiomesOPlenty-1.12.2-7.0.1.2444-universal.jar      | None                                     |
    | LC    | buildcraftlib              | 7.99.24.5               | buildcraft-core-7.99.24.5.jar                      | None                                     |
    | LC    | buildcraftcore             | 7.99.24.5               | buildcraft-core-7.99.24.5.jar                      | None                                     |
    | LC    | buildcraftbuilders         | 7.99.24.5               | buildcraft-builders-7.99.24.5.jar                  | None                                     |
    | LC    | buildcraftenergy           | 7.99.24.5               | buildcraft-energy-7.99.24.5.jar                    | None                                     |
    | LC    | buildcraftfactory          | 7.99.24.5               | buildcraft-factory-7.99.24.5.jar                   | None                                     |
    | LC    | buildcrafttransport        | 7.99.24.5               | buildcraft-transport-7.99.24.5.jar                 | None                                     |
    | LC    | ceramics                   | 1.12-1.3.7              | Ceramics-1.12-1.3.7.jar                            | None                                     |
    | LC    | conarm                     | 1.2.5.4                 | conarm-1.12.2-1.2.5.4.jar                          | 2484ef4d131fdc0dca0647aa21b7b944ddb935a1 |
    | LC    | cookingforblockheads       | 6.5.0                   | CookingForBlockheads_1.12.2-6.5.0.jar              | None                                     |
    | LC    | configmod                  | v1.0                    | coroutil-1.12.1-1.2.36.jar                         | None                                     |
    | LC    | extendedrenderer           | v1.0                    | coroutil-1.12.1-1.2.36.jar                         | None                                     |
    | LC    | coroutil                   | 1.12.1-1.2.36           | coroutil-1.12.1-1.2.36.jar                         | None                                     |
    | LC    | creativecore               | 1.9.9                   | CreativeCore_v1.9.90_mc1.12.2.jar                  | None                                     |
    | LC    | customspawner              | 3.11.4                  | CustomMobSpawner-3.11.5.jar                        | None                                     |
    | LC    | mocreatures                | 12.0.5                  | DrZharks MoCreatures Mod-12.0.5.jar                | None                                     |
    | LC    | sereneseasons              | 1.2.18                  | SereneSeasons-1.12.2-1.2.18-universal.jar          | None                                     |
    | LC    | orelib                     | 3.6.0.1                 | OreLib-1.12.2-3.6.0.1.jar                          | 7a2128d395ad96ceb9d9030fbd41d035b435753a |
    | LC    | dsurround                  | 3.6.0.2                 | DynamicSurroundings-1.12.2-3.6.0.2.jar             | 7a2128d395ad96ceb9d9030fbd41d035b435753a |
    | LC    | toughasnails               | 3.1.0.141               | ToughAsNails-1.12.2-3.1.0.141-universal.jar        | None                                     |
    | LC    | forestry                   | 5.8.2.414               | forestry_1.12.2-5.8.2.414.jar                      | None                                     |
    | LC    | eleccore                   | 1.9.453                 | ElecCore-1.12.2-1.9.453.jar                        | None                                     |
    | LC    | endercompass               | 1.2.6.2                 | EnderCompass-1.12-1.2.6.2.jar                      | None                                     |
    | LC    | waila                      | 1.8.26                  | Hwyla-1.8.26-B41_1.12.2.jar                        | None                                     |
    | LC    | extracells                 | 2.6.5                   | ExtraCells-1.12.2-2.6.5.jar                        | None                                     |
    | LC    | farseek                    | 2.4                     | Farseek-1.12-2.4.jar                               | None                                     |
    | LC    | ftblib                     | 5.4.4.5                 | FTBLib-5.4.4.5.jar                                 | None                                     |
    | LC    | itemfilters                | 1.0.3.12                | ItemFilters-1.0.3.12.jar                           | None                                     |
    | LC    | ftbquests                  | 1.8.0.237               | FTBQuests-1.8.0.237.jar                            | None                                     |
    | LC    | cfm                        | 6.3.1                   | furniture-6.3.1-1.12.2.jar                         | None                                     |
    | LC    | galaxyspace                | 2.0.12                  | GalaxySpace-1.12.2-2.0.12.jar                      | None                                     |
    | LC    | gravestone                 | 1.10.3                  | gravestone-1.10.3.jar                              | None                                     |
    | LC    | gravisuite                 | 3.1.1                   | Gravitation Suite-3.1.1.jar                        | None                                     |
    | LC    | hardcoredarkness           | 2.0                     | HardcoreDarkness-MC1.12.2-2.0.jar                  | d72e0dd57935b3e9476212aea0c0df352dd76291 |
    | LC    | inventorytweaks            | 1.64+dev.150.7168e7a    | InventoryTweaks-1.64%2Bdev.150.jar                 | 55d2cd4f5f0961410bf7b91ef6c6bf00a766dcbe |
    | LC    | ironchest                  | 1.12.2-7.0.67.844       | ironchest-1.12.2-7.0.72.847.jar                    | None                                     |
    | LC    | jeibees                    | 0.9.0.5                 | jeibees-0.9.0.5-mc1.12.2.jar                       | None                                     |
    | LC    | journeymap                 | 1.12.2-5.5.9            | journeymap-1.12.2-5.5.9.jar                        | None                                     |
    | LC    | shadowmc                   | 3.8.0                   | ShadowMC-1.12-3.8.0.jar                            | None                                     |
    | LC    | leveluphp                  | 1.12.2-1.3.0            | level-up-hp-1.12.2-1.3.0.jar                       | None                                     |
    | LC    | malisiscore                | 1.12.2-6.5.1-SNAPSHOT   | malisiscore-1.12.2-6.5.1.jar                       | None                                     |
    | LC    | malisisblocks              | 1.12.2-6.1.0            | malisisblocks-1.12.2-6.1.0.jar                     | None                                     |
    | LC    | malisisdoors               | 1.12.2-7.3.0            | malisisdoors-1.12.2-7.3.0.jar                      | None                                     |
    | LC    | malisisswitches            | 1.12.2-5.1.0            | malisisswitches-1.12.2-5.1.0.jar                   | None                                     |
    | LC    | mekanism                   | 1.12.2-9.8.3.390        | Mekanism-1.12.2-9.8.3.390.jar                      | None                                     |
    | LC    | mekores                    | 2.0.13                  | mekores-2.0.13.jar                                 | None                                     |
    | LC    | guilib                     | $version                | morepaintings-paintings-1.12.2-5.0.1.2.jar         | None                                     |
    | LC    | paintingselgui             | $version                | morepaintings-paintings-1.12.2-5.0.1.2.jar         | None                                     |
    | LC    | morepaintings              | $version                | morepaintings-paintings-1.12.2-5.0.1.2.jar         | None                                     |
    | LC    | omlib                      | 3.2.0-250               | omlib-1.12.2-3.2.0-250.jar                         | None                                     |
    | LC    | openmodularturrets         | 3.2.0-363               | openmodularturrets-1.12.2-3.2.0-363.jar            | None                                     |
    | LC    | harvestcraft               | 1.12.2zb                | Pam%27s+HarvestCraft+1.12.2zf.jar                  | None                                     |
    | LC    | realistictorches           | 2.1.1                   | RealisticTorches-1.12.2-2.1.1.jar                  | None                                     |
    | LC    | redstonepaste              | 1.7.5                   | redstonepaste-mc1.12-1.7.5.jar                     | None                                     |
    | LC    | additionalstructures       | 2.3.1                   | Rex%27s-Additional-Structures-1.12.x-(v.2.3.1).jar | None                                     |
    | LC    | roguelike                  | 1.8.0                   | RoguelikeDungeons-1.12.2-1.8.0.jar                 | None                                     |
    | LC    | sophisticatedwolves        | 3.13.8                  | SophisticatedWolves-1.12.2-3.13.8.jar              | None                                     |
    | LC    | staminaplus                | 1.2                     | staminaplus-1.1.1.jar                              | None                                     |
    | LC    | stg                        | 1.12.2-1.2.3            | stg-1.12.2-1.2.3.jar                               | None                                     |
    | LC    | streams                    | 0.4.8                   | Streams-1.12-0.4.8.jar                             | None                                     |
    | LC    | superores                  | 1.8.4_1.12              | superores-1.8.4_1.12.jar                           | None                                     |
    | LC    | tinkersjei                 | 1.2                     | tinkersjei-1.2.jar                                 | None                                     |
    | LC    | tlauncher_custom_cape_skin | 1.4                     | tlskincape1.12.2-1.4.jar                           | None                                     |
    | LC    | treechopper                | 1.2.4                   | TreeChopper-1.12.2-1.2.4.jar                       | None                                     |
    | LC    | walljump                   | 1.3.2                   | walljump-1.12.2-1.3.2.jar                          | None                                     |
    | LC    | webshooter                 | 1.0.2                   | webshooter-1.11-1.0.2.jar                          | None                                     |
    | LC    | winterwonderland           | 1.2.2                   | WinterWonderLand-1.2.2.jar                         | None                                     |
    | LC    | wolfarmor                  | 2.2.3.6                 | wolfarmor-1.12.2-2.2.3.1798-universal.jar          | None                                     |
    | LC    | zombieawareness            | 1.12.1-1.11.15          | zombieawareness-1.12.1-1.11.15.jar                 | None                                     |
    | LC    | eleccoreloader             | 1.9.453                 | ElecCore-1.12.2-1.9.453.jar                        | None                                     |
    | LC    | hungeroverhaul             | 1.12.2-1.3.3.jenkins148 | HungerOverhaul-1.12.2-1.3.3.jenkins148.jar         | None                                     |

    Loaded coremods (and transformers):
MalisisSwitchesPlugin (malisisswitches-1.12.2-5.1.0.jar)
 
CreativePatchingLoader (CreativeCore_v1.9.90_mc1.12.2.jar)
 
SSLoadingPlugin (SereneSeasons-1.12.2-1.2.18-universal.jar)
  sereneseasons.asm.transformer.EntityRendererTransformer
  sereneseasons.asm.transformer.WorldTransformer
CTMCorePlugin (CTM-MC1.12.2-1.0.1.30.jar)
  team.chisel.ctm.client.asm.CTMTransformer
ForgelinPlugin (Forgelin-1.8.4.jar)
 
MekanismCoremod (Mekanism-1.12.2-9.8.3.390.jar)
  mekanism.coremod.KeybindingMigrationHelper
TransformLoader (DynamicSurroundings-1.12.2-3.6.0.2.jar)
 
NWRTweak (redstonepaste-mc1.12-1.7.5.jar)
  net.fybertech.nwr.NWRTransformer
BetterFontsCore (TTFR-1.12.1-1.9.1.jar)
  cubex2.ttfr.BFClassTransformer
Inventory Tweaks Coremod (InventoryTweaks-1.64%2Bdev.150.jar)
  invtweaks.forge.asm.ContainerTransformer
AppleCore (AppleCore-mc1.12.2-3.1.5.jar)
  squeek.applecore.asm.TransformerModuleHandler
ItemPatchingLoader (ItemPhysic_Full_1.4.28_mc1.12.2.jar)
  com.creativemd.itemphysic.ItemTransformer
MalisisCorePlugin (malisiscore-1.12.2-6.5.1.jar)
 
GSHooksLoader (GalaxySpace-1.12.2-2.0.12.jar)
  galaxyspace.core.hooklib.minecraft.PrimaryClassTransformer
MicdoodlePlugin (MicdoodleCore-1.12.2-4.0.2.244.jar)
  micdoodle8.mods.miccore.MicdoodleTransformer
TLSkinCapeHookLoader (tlskincape1.12.2-1.4.jar)
  gloomyfolken.hooklib.minecraft.PrimaryClassTransformer
LoadingPlugin (HardcoreDarkness-MC1.12.2-2.0.jar)
  lumien.hardcoredarkness.asm.ClassTransformer
FarseekCoreMod (Farseek-1.12-2.4.jar)
  farseek.core.FarseekClassTransformer
    AE2 Version: stable rv6-stable-7 for Forge 14.23.5.2768
    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)
        - chiselIntegration (Enabled/Not Forced)
        - wailaIntegration (Enabled/Not Forced)

    Profiler Position: N/A (disabled)
    Is Modded: Definitely; Server brand changed to 'fml,forge'
    Type: Dedicated Server (map_server.txt)

Link to comment
Share on other sites

The version you are using is no longer supported on this forum.

Please update to a modern version of Minecraft to receive support.

Currently supported versions are 1.18.1/1.18.2 (Latest) and 1.16.5 (LTS).

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • i found it guys
    • So i just bought a RLcraft server for me and my friends to play on. I launched it and it is working fine but it tells me that i need to download all the mods i go to mods and press "minecraft forge" and nothing shows up that i can open files. If anyone have a suggestion i would need the help. This is the server hosting i  used 
    • i did it in 1.12.2 not walking for me can anyone help me get it pls???  
    • Got the rotation working. I had to look at LivingEntityRenderer#render and setupRotations a little more closely, and I realized that I needed to change the custom entity's yBodyRot and yBodyRotO.  private static boolean renderingCustomEntity = false; private static CustomEntity customEntity; private static void refreshCustomEntity(LocalPlayer localPlayer, LivingEntity livingEntity) { if (customEntity == null || customEntity.isRemoved()) { customEntity = ModEntities.CUSTOM_ENTITY.get().create(localPlayer.clientLevel); } if (!customEntity.level.dimension().equals(livingEntity.level.dimension())) { customEntity.discard(); } } @SubscribeEvent public static void replaceMobModel(RenderLivingEvent.Pre<LivingEntity, EntityModel<LivingEntity>> event) { LocalPlayer localPlayer = Minecraft.getInstance().player; if (localPlayer != null && event.getEntity() instanceof Mob mob) { if (/* put your own condition here */) { if (!renderingCustomEntity) { try { renderingCustomEntity = true; event.setCanceled(true); refreshCustomEntity(localPlayer, mob); // (truth be told, my custom entity does not have a "head", so these lines aren't needed) // customEntity.setYHeadRot(mob.getYHeadRot()); // customEntity.yHeadRotO = mob.yHeadRotO; customEntity.setYBodyRot(mob.yBodyRot); customEntity.yBodyRotO = mob.yBodyRotO; customEntity.setPose(mob.getPose()); Minecraft.getInstance().getEntityRenderDispatcher().getRenderer(customEntity).render( customEntity, customEntity.yBodyRot, event.getPartialTick(), event.getPoseStack(), event.getMultiBufferSource(), event.getPackedLight() ); } finally { renderingCustomEntity = false; } } } } }   As shown in my code, if the mob whose model is replaced moves to a different dimension, I unload the custom entity with Entity#discard and then reinitialize it on the next tick. I wonder if I also have to unload the custom entity when the mob it is "replacing" dies.
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.