Jump to content

Recommended Posts

Posted

I have tried for more than one hour to initiate a game with simple mods to make it more funny. But after resolving all incompatibilities with mods and restart the game many times I did it. But when I try to it ti crashes, it says "Saving World" and then it takes me out. It gives me this error.

net.minecraft.entity.LivingEntity.getEntityData()Lnet/minecraft/nbt/CompoundNBT;

 

And error files is this: 

 

--- Minecraft Crash Report ----
// Hey, that tickles! Hehehe!

Time: 14/09/19 08:55 PM
Description: Unexpected error

java.lang.NoSuchMethodError: net.minecraft.entity.LivingEntity.getEntityData()Lnet/minecraft/nbt/CompoundNBT;
    at ovh.corail.tombstone.event.EventHandler.isDrinking(EventHandler.java:794) ~[?:4.1.0] {}
    at ovh.corail.tombstone.event.EventHandler.onItemUseFinish(EventHandler.java:772) ~[?:4.1.0] {}
    at net.minecraftforge.eventbus.ASMEventHandler_117_EventHandler_onItemUseFinish_Finish.invoke(.dynamic) ~[?:?] {}
    at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:80) ~[eventbus-1.0.0-service.jar:?] {}
    at net.minecraftforge.eventbus.EventBus.post(EventBus.java:258) ~[eventbus-1.0.0-service.jar:?] {}
    at net.minecraftforge.event.ForgeEventFactory.onItemUseFinish(ForgeEventFactory.java:301) ~[?:?] {}
    at net.minecraft.entity.LivingEntity.func_71036_o(LivingEntity.java:2570) ~[?:?] {pl:accesstransformer:B}
    at net.minecraft.entity.player.PlayerEntity.func_70103_a(PlayerEntity.java:412) ~[?:?] {pl:accesstransformer:B}
    at net.minecraft.client.entity.player.ClientPlayerEntity.func_70103_a(ClientPlayerEntity.java:447) ~[?:?] {pl:runtimedistcleaner:A}
    at net.minecraft.client.network.play.ClientPlayNetHandler.func_147236_a(ClientPlayNetHandler.java:927) ~[?:?] {pl:runtimedistcleaner:A}
    at net.minecraft.network.play.server.SEntityStatusPacket.func_148833_a(SourceFile:38) ~[?:?] {}
    at net.minecraft.network.play.server.SEntityStatusPacket.func_148833_a(SourceFile:11) ~[?:?] {}
    at net.minecraft.network.PacketThreadUtil.func_225383_a(SourceFile:21) ~[?:?] {}
    at net.minecraft.network.PacketThreadUtil$$Lambda$4431/665020143.run(Unknown Source) ~[?:?] {}
    at net.minecraft.util.concurrent.ThreadTaskExecutor.func_213166_h(SourceFile:144) ~[?:?] {pl:accesstransformer:B}
    at net.minecraft.util.concurrent.RecursiveEventLoop.func_213166_h(SourceFile:23) ~[?:?] {}
    at net.minecraft.util.concurrent.ThreadTaskExecutor.func_213168_p(SourceFile:118) ~[?:?] {pl:accesstransformer:B}
    at net.minecraft.util.concurrent.ThreadTaskExecutor.func_213160_bf(SourceFile:103) ~[?:?] {pl:accesstransformer:B}
    at net.minecraft.client.Minecraft.func_195542_b(Minecraft.java:857) [?:?] {pl:accesstransformer:B,pl:runtimedistcleaner:A}
    at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:384) [?:?] {pl:accesstransformer:B,pl:runtimedistcleaner:A}
    at net.minecraft.client.main.Main.main(SourceFile:155) [?:?] {}
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_51] {}
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_51] {}
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_51] {}
    at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_51] {}
    at net.minecraftforge.fml.loading.FMLClientLaunchProvider.lambda$launchService$0(FMLClientLaunchProvider.java:56) [forge-1.14.4-28.0.100.jar:28.0] {}
    at net.minecraftforge.fml.loading.FMLClientLaunchProvider$$Lambda$350/2015261478.call(Unknown Source) [forge-1.14.4-28.0.100.jar:28.0] {}
    at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-3.2.0.jar:?] {}
    at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:50) [modlauncher-3.2.0.jar:?] {}
    at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:68) [modlauncher-3.2.0.jar:?] {}
    at cpw.mods.modlauncher.Launcher.run(Launcher.java:80) [modlauncher-3.2.0.jar:?] {}
    at cpw.mods.modlauncher.Launcher.main(Launcher.java:65) [modlauncher-3.2.0.jar:?] {}


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

-- Head --
Thread: Client thread
Stacktrace:
    at ovh.corail.tombstone.event.EventHandler.isDrinking(EventHandler.java:794)
    at ovh.corail.tombstone.event.EventHandler.onItemUseFinish(EventHandler.java:772)
    at net.minecraftforge.eventbus.ASMEventHandler_117_EventHandler_onItemUseFinish_Finish.invoke(.dynamic)
    at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:80)
    at net.minecraftforge.eventbus.EventBus.post(EventBus.java:258)
    at net.minecraftforge.event.ForgeEventFactory.onItemUseFinish(ForgeEventFactory.java:301)
    at net.minecraft.entity.LivingEntity.func_71036_o(LivingEntity.java:2570)
    at net.minecraft.entity.player.PlayerEntity.func_70103_a(PlayerEntity.java:412)
    at net.minecraft.client.entity.player.ClientPlayerEntity.func_70103_a(ClientPlayerEntity.java:447)
    at net.minecraft.client.network.play.ClientPlayNetHandler.func_147236_a(ClientPlayNetHandler.java:927)
    at net.minecraft.network.play.server.SEntityStatusPacket.func_148833_a(SourceFile:38)
    at net.minecraft.network.play.server.SEntityStatusPacket.func_148833_a(SourceFile:11)
    at net.minecraft.network.PacketThreadUtil.func_225383_a(SourceFile:21)
    at net.minecraft.network.PacketThreadUtil$$Lambda$4431/665020143.run(Unknown Source)
    at net.minecraft.util.concurrent.ThreadTaskExecutor.func_213166_h(SourceFile:144)
    at net.minecraft.util.concurrent.RecursiveEventLoop.func_213166_h(SourceFile:23)
    at net.minecraft.util.concurrent.ThreadTaskExecutor.func_213168_p(SourceFile:118)

-- Affected level --
Details:
    All players: 1 total; [ClientPlayerEntity['JoEduRey'/212, l='MpServer', x=-30.84, y=63.00, z=15.07]]
    Chunk stats: Client Chunk Cache: 1849, 1442
    Level dimension: DimensionType{minecraft:overworld}
    Level name: MpServer
    Level seed: 0
    Level generator: ID 07 - biomesoplenty, ver 0. Features enabled: false
    Level generator options: {}
    Level spawn location: World: (0,69,83), Chunk: (at 0,4,3 in 0,5; contains blocks 0,0,80 to 15,255,95), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
    Level time: 17095 game time, 17095 day time
    Level storage version: 0x00000 - Unknown?
    Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
    Level game mode: Game mode: survival (ID 0). Hardcore: false. Cheats: false
    Server brand: forge
    Server type: Integrated singleplayer server
Stacktrace:
    at net.minecraft.client.world.ClientWorld.func_72914_a(ClientWorld.java:410)
    at net.minecraft.client.Minecraft.func_71396_d(Minecraft.java:1746)
    at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:405)
    at net.minecraft.client.main.Main.main(SourceFile:155)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at net.minecraftforge.fml.loading.FMLClientLaunchProvider.lambda$launchService$0(FMLClientLaunchProvider.java:56)
    at net.minecraftforge.fml.loading.FMLClientLaunchProvider$$Lambda$350/2015261478.call(Unknown Source)
    at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37)
    at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:50)
    at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:68)
    at cpw.mods.modlauncher.Launcher.run(Launcher.java:80)
    at cpw.mods.modlauncher.Launcher.main(Launcher.java:65)

-- System Details --
Details:
    Minecraft Version: 1.14.4
    Minecraft Version ID: 1.14.4
    Operating System: Windows 10 (amd64) version 10.0
    Java Version: 1.8.0_51, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 1191973864 bytes (1136 MB) / 4294967296 bytes (4096 MB) up to 4294967296 bytes (4096 MB)
    CPUs: 12
    JVM Flags: 9 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xss1M -Xmx4G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M
    ModLauncher: 3.2.0+60+b86c1d4
    ModLauncher launch target: fmlclient
    ModLauncher naming: srg
    ModLauncher services: 
        /eventbus-1.0.0-service.jar eventbus PLUGINSERVICE 
        /forge-1.14.4-28.0.100.jar object_holder_definalize PLUGINSERVICE 
        /forge-1.14.4-28.0.100.jar runtime_enum_extender PLUGINSERVICE 
        /accesstransformers-1.0.0-shadowed.jar accesstransformer PLUGINSERVICE 
        /forge-1.14.4-28.0.100.jar capability_inject_definalize PLUGINSERVICE 
        /forge-1.14.4-28.0.100.jar runtimedistcleaner PLUGINSERVICE 
        /forge-1.14.4-28.0.100.jar fml TRANSFORMATIONSERVICE 
    FML: 28.0
    Forge: net.minecraftforge:28.0.100
    FML Language Providers: 
        javafml@28.0
        minecraft@1
    Mod List: 
        Adventure-Tools-Mod-1.14.4.jar Adventure Tools {adventurepack@1.14.4-1.0 DONE}
        AmbientSounds_v3.0.9_mc1.14.4.jar Ambient Sounds {ambientsounds@3.0.3 DONE}
        Baby-Animals-Mod-1.14.4.jar Baby Animals Model Swapper {babyanimals@1.14.3-0.pre1 DONE}
        Better-Than-Mending-Mod-1.14.4.jar BetterThanMending {betterthanmending@1.3.1 DONE}
        BiomesOPlenty-1.14.4-9.0.0.252-universal.jar Biomes O' Plenty {biomesoplenty@1.14.4-9.0.0.252 DONE}
        Corail-Tombstone-Mod-1.14.4.jar Corail Tombstone {tombstone@4.1.0 DONE}
        Craftable-Saddles-Mod-1.14.4.jar Craftable Saddles {craftable_saddles@1.3 DONE}
        Dude-Wheres-My-Horse-Mod-1.14.4.jar Dude! Where's my Horse? {dwmh@1.14.4-3.0.1 DONE}
        Extra-Golems-Mod-1.14.4.jar Extra Golems {golems@TODO-golems_version DONE}
        extraboats-1.0.1-1.14.4.jar Extra Boats {extraboats@1.0.1 DONE}
        Fertilization-Mod-1.14.4.jar Fertilization {fertilization@3.0.6 DONE}
        Fish-Traps-Mod-1.14.4.jar Fish Traps {fishtraps@1.14.4-0.0.4 DONE}
        Friendly-Fire-Mod-1.14.4.jar FriendlyFire {friendlyfire@3.0.1 DONE}
        Hwyla-Mod-1.14.4.jar Waila {waila@version DONE}
        Iron-Chests-Mod-1.14.4.jar Iron Chests {ironchest@1.14.3-9.0.DEV.55a7af2 DONE}
        Neat-Mod-1.14.4.jar Neat {neat@1.5-18 DONE}
        practicaltools-1.14.4-1.4.jar Practical Tools {practicaltools@1.14.4-1.4 DONE}
        Respawnable-Pets-Mod-1.14.4.jar Respawnable Pets {respawnablepets@1.0.4.2 DONE}
        Ruins-Mod-1.14.4.jar Ruins {ruins@1.14.3.3 DONE}
        Simple-Diving-Gear-Mod-1.14.4.jar Simple Diving Gear {simpledivegear@3.0.0 mc 1.14.4 DONE}
        Simple-Farming-Mod-1.14.4.jar Simple Farming {simplefarming@1.14.4-1.0.7 DONE}
        Simply-Light-Mod-1.14.4.jar Simply Light {simplylight@0.8.7 DONE}
        Snow-Variants-Mod-1.14.4.jar Snow Variants {snowvariants@1.14.4-1.0.2 DONE}
        Super-Tools-Mod-1.14.4.jar Super Tools {supertools@1.2 DONE}
        SwingThroughGrass-Mod-1.14.4.jar SwingThroughGrass {swingthroughgrass@1.14.4-1.3.2 DONE}
        U-Team-Core-1.14.4.jar U Team Core {uteamcore@2.7.0.129 DONE}
        Useful-Backpacks-Mod-1.14.4.jar Useful Backpacks {usefulbackpacks@1.7.0.34 DONE}
        Xaeros_Minimap_1.18_Forge_1.14.4.jar Xaero's Minimap {xaerominimap@1.18 DONE}
        forge-1.14.4-28.0.100-universal.jar Forge {forge@28.0.100 DONE}
        forge-1.14.4-28.0.100-client.jar Minecraft {minecraft@1.14.4 DONE}
    Launched Version: 1.14.4-forge-28.0.100
    LWJGL: 3.2.2 build 10
    OpenGL: Intel(R) UHD Graphics 630 GL version 4.5.0 - Build 24.20.100.6287, Intel
    GL Caps: Using GL 1.3 multitexturing.
Using GL 1.3 texture combiners.
Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
Shaders are available because OpenGL 2.1 is supported.
VBOs are available because OpenGL 1.5 is supported.

    Using VBOs: Yes
    Is Modded: Definitely; Client brand changed to 'forge'
    Type: Client (map_client.txt)
    Resource Packs: 
    Current Language: English (US)
    CPU: 12x Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz

Posted
  On 9/15/2019 at 3:07 AM, Eduardo0298 said:

Corail-Tombstone-Mod-1.14.4.jar Corail Tombstone {tombstone@4.1.0 DONE}

Expand  

This is the mod causing the problem. Update to it's most recent 1.14 version. And if that doesn't fix the problem you'll have to remove it.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Posted

The filenames of one or more of your mods suggests you got them from a repost site.

Please read up on the StopModReposts project (link in my signature) for info on why this is a bad thing.

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

Join the conversation

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

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

  Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

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

  Your previous content has been restored.   Clear editor

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

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Hi! I'm trying to add my custom models/textures renderer like this: public class PonyPlayerWrapperRenderer extends EntityRenderer<Player> { // wrapper class under my LivingEntityRenderer class implementation private final PonyPlayerRenderer innerRenderer; private final PonyPlayerRenderer innerSlimRenderer; public PonyPlayerWrapperRenderer(final EntityRendererProvider.Context context) { super(context); System.out.println("creating new PonyPlayerWrapperRenderer"); this.innerRenderer = new PonyPlayerRenderer(context, false); this.innerSlimRenderer = new PonyPlayerRenderer(context, true); } @Override public void render(final Player entity, final float yaw, final float partialTicks, final PoseStack poseStack, final MultiBufferSource bufferSource, final int packedLight) { System.out.println("PonyPlayerWrapperRenderer render: " + entity.toString()); if (entity instanceof AbstractClientPlayer clientPlayer) { if (clientPlayer.getModelName().contains("slim")) { innerSlimRenderer.render(clientPlayer, yaw, partialTicks, poseStack, bufferSource, packedLight); } else { innerRenderer.render(clientPlayer, yaw, partialTicks, poseStack, bufferSource, packedLight); } } } @Override public ResourceLocation getTextureLocation(final Player player) { System.out.println("PonyPlayerWrapperRenderer getTextureLocation"); if (player instanceof AbstractClientPlayer clientPlayer) { return clientPlayer.getSkinTextureLocation(); } System.out.println("player instanceof AbstractClientPlayer is false"); return getDefaultSkin(player.getUUID()); } } public class PonyPlayerRenderer extends LivingEntityRenderer<AbstractClientPlayer, PlayerModel<AbstractClientPlayer>> { private final PlayerModel<AbstractClientPlayer> earthModel; private final PlayerModel<AbstractClientPlayer> pegasusModel; private final PlayerModel<AbstractClientPlayer> unicornModel; public PonyPlayerRenderer(final EntityRendererProvider.Context context, final boolean slim) { super( context, slim ? new PonyModelSlim(context.bakeLayer(PonyModelSlim.LAYER_LOCATION)) : new PonyModel(context.bakeLayer(PonyModel.LAYER_LOCATION)), 0.5f ); System.out.println("creating new PonyPlayerRenderer"); this.earthModel = slim ? new PonyModelSlim(context.bakeLayer(PonyModelSlim.LAYER_LOCATION)) : new PonyModel(context.bakeLayer(PonyModel.LAYER_LOCATION)); this.pegasusModel = new PegasusModel(context.bakeLayer(PegasusModel.LAYER_LOCATION)); this.unicornModel = new UnicornModel(context.bakeLayer(UnicornModel.LAYER_LOCATION)); } @Override public void render(final AbstractClientPlayer player, final float entityYaw, final float partialTicks, final PoseStack poseStack, final MultiBufferSource buffer, final int packedLight) { final PonyRace race = player.getCapability(PONY_DATA) .map(data -> ofNullable(data.getRace()).orElse(PonyRace.EARTH)) .orElse(PonyRace.EARTH); this.model = switch (race) { case PEGASUS -> pegasusModel; case UNICORN -> unicornModel; case EARTH -> earthModel; }; super.render(player, entityYaw, partialTicks, poseStack, buffer, packedLight); } @Override public ResourceLocation getTextureLocation(final AbstractClientPlayer player) { final PonyRace race = player.getCapability(PONY_DATA) .map(data -> ofNullable(data.getRace()).orElse(PonyRace.EARTH)) .orElse(PonyRace.EARTH); return switch (race) { case EARTH -> fromNamespaceAndPath(MODID, "textures/entity/earth_pony.png"); case PEGASUS -> fromNamespaceAndPath(MODID, "textures/entity/pegasus.png"); case UNICORN -> fromNamespaceAndPath(MODID, "textures/entity/unicorn.png"); }; } } @Mod.EventBusSubscriber(modid = MODID, bus = MOD, value = CLIENT) public class ClientRenderers { // mod bus render registration config @SubscribeEvent public static void onRegisterLayerDefinitions(final EntityRenderersEvent.RegisterLayerDefinitions event) { event.registerLayerDefinition(PonyModel.LAYER_LOCATION, PonyModel::createBodyLayer); event.registerLayerDefinition(PonyModelSlim.LAYER_LOCATION, PonyModelSlim::createBodyLayer); event.registerLayerDefinition(PegasusModel.LAYER_LOCATION, PegasusModel::createBodyLayer); event.registerLayerDefinition(UnicornModel.LAYER_LOCATION, UnicornModel::createBodyLayer); event.registerLayerDefinition(InnerPonyArmorModel.LAYER_LOCATION, InnerPonyArmorModel::createBodyLayer); event.registerLayerDefinition(OuterPonyArmorModel.LAYER_LOCATION, OuterPonyArmorModel::createBodyLayer); } @SubscribeEvent public static void onRegisterRenderers(final EntityRenderersEvent.RegisterRenderers event) { event.registerEntityRenderer(EntityType.PLAYER, PonyPlayerWrapperRenderer::new); System.out.println("onRegisterRenderers end"); } } Method onRegisterRenderers() is called and I can see it being logged. But when I enter the world, my PonyWrapperRenderer render() method doesn't ever seem to be called. I also tried to put my renderer to EntityRenderDispatcher's playerRenderers via reflection: @Mod.EventBusSubscriber(modid = MODID, bus = MOD, value = CLIENT) public class ClientRenderers { @SubscribeEvent public static void onRegisterLayerDefinitions(final EntityRenderersEvent.RegisterLayerDefinitions event) { event.registerLayerDefinition(PonyModel.LAYER_LOCATION, PonyModel::createBodyLayer); event.registerLayerDefinition(PonyModelSlim.LAYER_LOCATION, PonyModelSlim::createBodyLayer); event.registerLayerDefinition(PegasusModel.LAYER_LOCATION, PegasusModel::createBodyLayer); event.registerLayerDefinition(UnicornModel.LAYER_LOCATION, UnicornModel::createBodyLayer); event.registerLayerDefinition(InnerPonyArmorModel.LAYER_LOCATION, InnerPonyArmorModel::createBodyLayer); event.registerLayerDefinition(OuterPonyArmorModel.LAYER_LOCATION, OuterPonyArmorModel::createBodyLayer); } @SubscribeEvent public static void onClientSetup(final FMLClientSetupEvent event) { event.enqueueWork(() -> { try { final EntityRenderDispatcher dispatcher = Minecraft.getInstance().getEntityRenderDispatcher(); final Field renderersField = getEntityRenderDispatcherField("playerRenderers"); final Field itemInHandRenderer = getEntityRenderDispatcherField("itemInHandRenderer"); @SuppressWarnings("unchecked") final Map<String, EntityRenderer<? extends Player>> playerRenderers = (Map<String, EntityRenderer<? extends Player>>)renderersField.get(dispatcher); final PonyPlayerWrapperRenderer renderer = new PonyPlayerWrapperRenderer( new EntityRendererProvider.Context( dispatcher, Minecraft.getInstance().getItemRenderer(), Minecraft.getInstance().getBlockRenderer(), (ItemInHandRenderer)itemInHandRenderer.get(dispatcher), Minecraft.getInstance().getResourceManager(), Minecraft.getInstance().getEntityModels(), Minecraft.getInstance().font ) ); playerRenderers.put("default", renderer); playerRenderers.put("slim", renderer); System.out.println("Player renderers replaced"); } catch (final Exception e) { throw new RuntimeException("Failed to replace player renderers", e); } }); } private static Field getEntityRenderDispatcherField(final String fieldName) throws NoSuchFieldException { final Field field = EntityRenderDispatcher.class.getDeclaredField(fieldName); field.setAccessible(true); return field; } } But I receive the error before Minecraft Client appears (RuntimeException: Failed to replace player renderers - from ClientRenderers onClientSetup() method - and its cause below): java.lang.IllegalArgumentException: No model for layer anotherlittlepony:earth_pony#main at net.minecraft.client.model.geom.EntityModelSet.bakeLayer(EntityModelSet.java:18) ~[forge-1.20.1-47.4.0_mapped_official_1.20.1-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.renderer.entity.EntityRendererProvider$Context.bakeLayer(EntityRendererProvider.java:69) ~[forge-1.20.1-47.4.0_mapped_official_1.20.1-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A} at com.thuggeelya.anotherlittlepony.client.renderer.pony.PonyPlayerRenderer.<init>(PonyPlayerRenderer.java:32) ~[main/:?] {re:classloading} at com.thuggeelya.anotherlittlepony.client.renderer.pony.PonyPlayerWrapperRenderer.<init>(PonyPlayerWrapperRenderer.java:24) ~[main/:?] {re:classloading} at com.thuggeelya.anotherlittlepony.client.renderer.ClientRenderers.lambda$onClientSetup$0(ClientRenderers.java:79) ~[main/:?] {re:classloading} ... 33 more Problem appears when EntityRendererProvider context tries to bakeLayer with my model layer location: new PonyModel(context.bakeLayer(PonyModel.LAYER_LOCATION)); // PonyPlayerRenderer.java:32 public class PonyModel extends PlayerModel<AbstractClientPlayer> { // the model class itself public static final ModelLayerLocation LAYER_LOCATION = new ModelLayerLocation( ResourceLocation.fromNamespaceAndPath(MODID, "earth_pony"), "main" ); public PonyModel(final ModelPart root) { super(root, false); } public static LayerDefinition createBodyLayer() { // some CubeListBuilder stuff for model appearance } } Textures PNGs are placed at: resources/assets/[my mod id]/textures/entity. My forge version is 1.20.1. Would appreciate any help.
    • Well, a bit more information about what you're trying to do would be helpful. e.g. why you're trying to use "INVOKE_ASSIGN" instead of "INVOKE". "INVOKE_ASSIGN" calls your code after the "target" is called and its value is stored, if applicable. "INVOKE" calls your code before the target is called. "target" expects a fully qualified name, as per the SpongePowered docs, if that name is going to be remapped (which it will be if your injecting into Minecraft itself and not another mod). For more information on fully qualified names versus canonical names, see the Java specifications. Here's an example of a working "@At" from my own code that targets the "getClosestsVulnerablePlayerToEntity" call inside a mob's logic: @At(value = "INVOKE_ASSIGN", target = "net.minecraft.world.World.getClosestVulnerablePlayerToEntity(Lnet/minecraft/entity/Entity;D)Lnet/minecraft/entity/player/EntityPlayer;") Hope this helps!
    • Ran it one more time just to check, and there's no errors this time on the log??? Log : https://mclo.gs/LnuaAiu I tried allocating more memory to the modpack, around 8000MB and it's still the same; stopping at "LOAD_REGISTRIES". Are some of the mods clashing, maybe? I have no clue what to do LOL
    • Tried removing some biome generation mods and test ran it again, but it's still the same; still not responding as soon as it gets to "LOAD_REGISTRIES". This time with more errors though. Log : https://mclo.gs/uygZzD8 Is there too little memory allocated to the modpack maybe? Can someone help please.    (T.T)馃挃
    • This is sad. Over 3300 people have checked the thread and no one is able to help or give any ideas :(.
  • Topics

  • Create New...

Important Information

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