Jump to content

Recommended Posts

Posted

i started modding again in 1.8

but the render keeps crashing

 

package com.sorch.sorchmod;

 

import net.minecraft.client.Minecraft;

import net.minecraft.client.model.ModelCow;

import net.minecraft.client.renderer.entity.RenderCow;

import net.minecraft.client.renderer.entity.RenderManager;

import net.minecraftforge.fml.client.registry.RenderingRegistry;

 

public class ClientProxy extends ServerProxy

{

public void registerRenderThings()

{

RenderingRegistry.registerEntityRenderingHandler(EntityOrch.class, new RenderOrch(Minecraft.getMinecraft().getRenderManager(), new ModelOrch(), 0.5F));

}

}

 

 

 

 

Render file:

package com.sorch.sorchmod;

 

import net.minecraft.client.Minecraft;

import net.minecraft.client.model.ModelBase;

import net.minecraft.client.renderer.EntityRenderer;

import net.minecraft.client.renderer.entity.RenderLiving;

import net.minecraft.client.renderer.entity.RenderManager;

import net.minecraft.entity.Entity;

import net.minecraft.util.ResourceLocation;

import net.minecraftforge.fml.relauncher.Side;

import net.minecraftforge.fml.relauncher.SideOnly;

 

@SideOnly(Side.CLIENT)

public class RenderOrch extends RenderLiving

{

    private static final ResourceLocation OrchTextures = new ResourceLocation("sorch:textures/entity/orch.png");

    private static final String __OBFID = "CL_00000984";

 

    public RenderOrch(RenderManager entityRenderer, ModelBase p_i46187_2_, float p_i46187_3_)

    {

    super(entityRenderer, p_i46187_2_, p_i46187_3_);

    }

 

    protected ResourceLocation func_180572_a(EntityOrch p_180572_1_)

    {

        return OrchTextures;

    }

 

    protected ResourceLocation getEntityTexture(Entity entity)

    {

        return this.func_180572_a((EntityOrch)entity);

    }

}

Posted

---- Minecraft Crash Report ----

// Oops.

 

Time: 26-1-15 19:41

Description: Rendering entity in world

 

java.lang.NullPointerException: Rendering entity in world

at net.minecraft.client.renderer.entity.RendererLivingEntity.canRenderName(RendererLivingEntity.java:563)

at net.minecraft.client.renderer.entity.RenderLiving.canRenderName(RenderLiving.java:28)

at net.minecraft.client.renderer.entity.RenderLiving.canRenderName(RenderLiving.java:157)

at net.minecraft.client.renderer.entity.RendererLivingEntity.passSpecialRender(RendererLivingEntity.java:481)

at net.minecraft.client.renderer.entity.RendererLivingEntity.renderName(RendererLivingEntity.java:578)

at net.minecraft.client.renderer.entity.Render.doRender(Render.java:46)

at net.minecraft.client.renderer.entity.RendererLivingEntity.doRender(RendererLivingEntity.java:198)

at net.minecraft.client.renderer.entity.RenderLiving.doRender(RenderLiving.java:50)

at net.minecraft.client.renderer.entity.RenderLiving.doRender(RenderLiving.java:172)

at net.minecraft.client.renderer.entity.RenderManager.doRenderEntity(RenderManager.java:370)

at net.minecraft.client.renderer.entity.RenderManager.renderEntityStatic(RenderManager.java:327)

at net.minecraft.client.renderer.entity.RenderManager.renderEntitySimple(RenderManager.java:294)

at net.minecraft.client.renderer.RenderGlobal.renderEntities(RenderGlobal.java:631)

at net.minecraft.client.renderer.EntityRenderer.renderWorldPass(EntityRenderer.java:1294)

at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1207)

at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1032)

at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1048)

at net.minecraft.client.Minecraft.run(Minecraft.java:345)

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

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(GradleStartCommon.java:78)

at GradleStart.main(GradleStart.java:45)

 

 

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

---------------------------------------------------------------------------------------

 

-- Head --

Stacktrace:

at net.minecraft.client.renderer.entity.RendererLivingEntity.canRenderName(RendererLivingEntity.java:563)

at net.minecraft.client.renderer.entity.RenderLiving.canRenderName(RenderLiving.java:28)

at net.minecraft.client.renderer.entity.RenderLiving.canRenderName(RenderLiving.java:157)

at net.minecraft.client.renderer.entity.RendererLivingEntity.passSpecialRender(RendererLivingEntity.java:481)

at net.minecraft.client.renderer.entity.RendererLivingEntity.renderName(RendererLivingEntity.java:578)

at net.minecraft.client.renderer.entity.Render.doRender(Render.java:46)

at net.minecraft.client.renderer.entity.RendererLivingEntity.doRender(RendererLivingEntity.java:198)

at net.minecraft.client.renderer.entity.RenderLiving.doRender(RenderLiving.java:50)

at net.minecraft.client.renderer.entity.RenderLiving.doRender(RenderLiving.java:172)

 

-- Entity being rendered --

Details:

Entity Type: SMOrch (com.sorch.sorchmod.EntityOrch)

Entity ID: 4440

Entity Name: Orch

Entity's Exact location: -222,50, 64,00, 94,50

Entity's Block location: -223,00,64,00,94,00 - World: (-223,64,94), Chunk: (at 1,4,14 in -14,5; contains blocks -224,0,80 to -209,255,95), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)

Entity's Momentum: 0,00, 0,00, 0,00

Entity's Rider: ~~ERROR~~ NullPointerException: null

Entity's Vehicle: ~~ERROR~~ NullPointerException: null

 

-- Renderer details --

Details:

Assigned renderer: com.sorch.sorchmod.RenderOrch@b80cea

Location: 0,00,0,00,4,00 - World: (0,0,4), Chunk: (at 0,0,4 in 0,0; contains blocks 0,0,0 to 15,255,15), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)

Rotation: -74.66608

Delta: 0.9481406

Stacktrace:

at net.minecraft.client.renderer.entity.RenderManager.doRenderEntity(RenderManager.java:370)

at net.minecraft.client.renderer.entity.RenderManager.renderEntityStatic(RenderManager.java:327)

at net.minecraft.client.renderer.entity.RenderManager.renderEntitySimple(RenderManager.java:294)

at net.minecraft.client.renderer.RenderGlobal.renderEntities(RenderGlobal.java:631)

at net.minecraft.client.renderer.EntityRenderer.renderWorldPass(EntityRenderer.java:1294)

at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1207)

 

-- Affected level --

Details:

Level name: MpServer

All players: 1 total; [EntityPlayerSP['Player126'/234, l='MpServer', x=-222,50, y=64,00, z=90,50]]

Chunk stats: MultiplayerChunkCache: 289, 289

Level seed: 0

Level generator: ID 00 - default, ver 1. Features enabled: false

Level generator options:

Level spawn location: -216,00,64,00,100,00 - World: (-216,64,100), Chunk: (at 8,4,4 in -14,6; contains blocks -224,0,96 to -209,255,111), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)

Level time: 168 game time, 168 day time

Level dimension: 0

Level storage version: 0x00000 - Unknown?

Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)

Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false

Forced entities: 156 total; [EntityZombie['Zombie'/1024, l='MpServer', x=-256,50, y=58,00, z=22,50], EntityZombie['Zombie'/1026, l='MpServer', x=-242,50, y=28,00, z=90,50], EntityFallingBlock['Falling Block'/4162, l='MpServer', x=-281,50, y=19,35, z=9,50], EntityFallingBlock['Falling Block'/4163, l='MpServer', x=-281,50, y=19,35, z=10,50], EntityFallingBlock['Falling Block'/4164, l='MpServer', x=-280,50, y=19,35, z=9,50], EntityFallingBlock['Falling Block'/4165, l='MpServer', x=-280,50, y=19,35, z=10,50], EntityFallingBlock['Falling Block'/4166, l='MpServer', x=-282,50, y=19,35, z=8,50], EntityFallingBlock['Falling Block'/4167, l='MpServer', x=-282,50, y=19,35, z=9,50], EntityFallingBlock['Falling Block'/4168, l='MpServer', x=-282,50, y=19,35, z=10,50], EntityFallingBlock['Falling Block'/4170, l='MpServer', x=-283,50, y=19,35, z=8,50], EntityFallingBlock['Falling Block'/4171, l='MpServer', x=-283,50, y=19,35, z=9,50], EntityPig['Pig'/77, l='MpServer', x=-262,81, y=64,00, z=76,78], EntityFallingBlock['Falling Block'/4173, l='MpServer', x=-283,50, y=19,35, z=7,50], EntityPig['Pig'/78, l='MpServer', x=-262,50, y=64,00, z=80,50], EntityFallingBlock['Falling Block'/4174, l='MpServer', x=-284,50, y=19,35, z=7,50], EntityPig['Pig'/79, l='MpServer', x=-259,50, y=65,00, z=76,50], EntityFallingBlock['Falling Block'/4175, l='MpServer', x=-284,50, y=19,35, z=8,50], EntityPig['Pig'/80, l='MpServer', x=-261,19, y=64,00, z=75,16], EntityPig['Pig'/83, l='MpServer', x=-211,00, y=66,00, z=73,22], EntityPig['Pig'/84, l='MpServer', x=-224,22, y=65,00, z=69,50], EntityPig['Pig'/85, l='MpServer', x=-221,00, y=65,00, z=70,34], EntityPig['Pig'/86, l='MpServer', x=-223,06, y=65,00, z=69,69], EntityBat['Bat'/1132, l='MpServer', x=-152,50, y=17,56, z=127,65], EntityCreeper['Creeper'/1163, l='MpServer', x=-262,50, y=20,00, z=58,50], EntityCreeper['Creeper'/1202, l='MpServer', x=-305,07, y=38,00, z=65,28], EntityCreeper['Creeper'/1203, l='MpServer', x=-294,34, y=38,01, z=63,00], EntityCreeper['Creeper'/1204, l='MpServer', x=-297,50, y=37,00, z=67,50], EntityCreeper['Creeper'/1205, l='MpServer', x=-298,50, y=37,00, z=66,50], EntityFallingBlock['Falling Block'/4290, l='MpServer', x=-139,50, y=26,21, z=7,50], EntityFallingBlock['Falling Block'/4291, l='MpServer', x=-140,50, y=26,21, z=7,50], EntityFallingBlock['Falling Block'/4293, l='MpServer', x=-141,50, y=26,21, z=7,50], EntityFallingBlock['Falling Block'/4294, l='MpServer', x=-117,50, y=35,21, z=142,50], EntityZombie['Zombie'/1225, l='MpServer', x=-164,31, y=20,00, z=140,28], EntityFallingBlock['Falling Block'/4299, l='MpServer', x=-95,50, y=37,21, z=-39,50], EntityFallingBlock['Falling Block'/4300, l='MpServer', x=-94,50, y=37,21, z=-39,50], EntityFallingBlock['Falling Block'/4301, l='MpServer', x=-97,50, y=37,21, z=-40,50], EntityFallingBlock['Falling Block'/4302, l='MpServer', x=-96,50, y=37,21, z=-40,50], EntityFallingBlock['Falling Block'/4303, l='MpServer', x=-103,50, y=37,21, z=-34,50], EntityFallingBlock['Falling Block'/4304, l='MpServer', x=-102,50, y=37,21, z=-34,50], EntityFallingBlock['Falling Block'/4305, l='MpServer', x=-104,50, y=37,21, z=-35,50], EntityFallingBlock['Falling Block'/4306, l='MpServer', x=-103,50, y=37,21, z=-35,50], EntitySkeleton['Skeleton'/1235, l='MpServer', x=-238,50, y=27,00, z=90,50], EntityFallingBlock['Falling Block'/4307, l='MpServer', x=-105,50, y=37,21, z=-35,50], EntitySkeleton['Skeleton'/240, l='MpServer', x=-146,50, y=19,00, z=145,50], EntityZombie['Zombie'/1269, l='MpServer', x=-252,50, y=26,00, z=76,50], EntitySpider['Spider'/1297, l='MpServer', x=-189,31, y=15,09, z=44,28], EntityBat['Bat'/281, l='MpServer', x=-170,89, y=19,76, z=58,71], EntityPlayerSP['Player126'/234, l='MpServer', x=-222,50, y=64,00, z=90,50], EntityFallingBlock['Falling Block'/4397, l='MpServer', x=-103,50, y=39,05, z=-34,50], EntityFallingBlock['Falling Block'/4398, l='MpServer', x=-103,50, y=39,05, z=-35,50], EntitySkeleton['Skeleton'/314, l='MpServer', x=-235,53, y=19,00, z=46,88], EntityFallingBlock['Falling Block'/3391, l='MpServer', x=-144,50, y=29,62, z=153,50], EntityFallingBlock['Falling Block'/3392, l='MpServer', x=-143,50, y=29,62, z=153,50], EntityFallingBlock['Falling Block'/3393, l='MpServer', x=-145,50, y=29,62, z=153,50], EntityFallingBlock['Falling Block'/3394, l='MpServer', x=-146,50, y=29,62, z=153,50], EntityFallingBlock['Falling Block'/3395, l='MpServer', x=-147,50, y=29,62, z=153,50], EntitySkeleton['Skeleton'/1348, l='MpServer', x=-192,50, y=32,00, z=149,50], EntitySkeleton['Skeleton'/1349, l='MpServer', x=-189,50, y=32,00, z=149,50], EntityFallingBlock['Falling Block'/3400, l='MpServer', x=-131,50, y=32,62, z=147,50], EntitySpider['Spider'/1354, l='MpServer', x=-163,50, y=18,00, z=145,50], EntityEnderman['Enderman'/1355, l='MpServer', x=-165,06, y=20,00, z=141,00], EntityFallingBlock['Falling Block'/3404, l='MpServer', x=-121,50, y=34,62, z=186,50], EntityFallingBlock['Falling Block'/3405, l='MpServer', x=-121,50, y=34,62, z=187,50], EntityBat['Bat'/339, l='MpServer', x=-243,53, y=28,00, z=81,41], EntityFallingBlock['Falling Block'/3416, l='MpServer', x=-117,50, y=30,62, z=143,50], EntityOrch['Orch'/4440, l='MpServer', x=-222,50, y=64,00, z=94,50], EntityFallingBlock['Falling Block'/3417, l='MpServer', x=-117,50, y=29,62, z=142,50], EntityFallingBlock['Falling Block'/3418, l='MpServer', x=-116,50, y=30,62, z=143,50], EntitySquid['Squid'/355, l='MpServer', x=-201,00, y=62,28, z=120,16], EntitySquid['Squid'/356, l='MpServer', x=-194,03, y=62,28, z=120,06], EntitySquid['Squid'/357, l='MpServer', x=-195,84, y=60,78, z=120,72], EntitySquid['Squid'/358, l='MpServer', x=-202,72, y=62,16, z=121,03], EntitySquid['Squid'/363, l='MpServer', x=-285,63, y=62,00, z=135,56], EntitySquid['Squid'/364, l='MpServer', x=-286,53, y=61,09, z=133,50], EntitySquid['Squid'/365, l='MpServer', x=-284,84, y=60,09, z=128,72], EntitySquid['Squid'/366, l='MpServer', x=-232,03, y=60,56, z=132,69], EntitySquid['Squid'/367, l='MpServer', x=-230,22, y=59,84, z=127,75], EntitySquid['Squid'/368, l='MpServer', x=-228,28, y=62,22, z=135,94], EntitySquid['Squid'/369, l='MpServer', x=-226,34, y=59,50, z=130,91], EntitySquid['Squid'/374, l='MpServer', x=-247,00, y=62,44, z=145,03], EntitySquid['Squid'/375, l='MpServer', x=-234,66, y=60,53, z=143,16], EntitySquid['Squid'/376, l='MpServer', x=-239,16, y=59,97, z=141,41], EntitySquid['Squid'/377, l='MpServer', x=-235,47, y=60,72, z=133,38], EntityFallingBlock['Falling Block'/3483, l='MpServer', x=-95,50, y=31,62, z=-39,50], EntityFallingBlock['Falling Block'/3484, l='MpServer', x=-94,50, y=31,62, z=-39,50], EntityFallingBlock['Falling Block'/3485, l='MpServer', x=-97,50, y=31,62, z=-40,50], EntityFallingBlock['Falling Block'/3486, l='MpServer', x=-96,50, y=31,62, z=-40,50], EntityBat['Bat'/458, l='MpServer', x=-279,67, y=16,02, z=13,75], EntityCreeper['Creeper'/1500, l='MpServer', x=-175,50, y=55,00, z=71,50], EntityCreeper['Creeper'/490, l='MpServer', x=-166,50, y=18,00, z=82,50], EntityZombie['Zombie'/494, l='MpServer', x=-192,50, y=36,00, z=96,50], EntityCreeper['Creeper'/1518, l='MpServer', x=-255,51, y=39,45, z=42,42], EntitySkeleton['Skeleton'/495, l='MpServer', x=-201,00, y=39,00, z=94,00], EntityCreeper['Creeper'/1519, l='MpServer', x=-257,31, y=40,00, z=43,47], EntityCreeper['Creeper'/1521, l='MpServer', x=-257,25, y=40,00, z=42,10], EntityCreeper['Creeper'/1522, l='MpServer', x=-183,07, y=40,00, z=102,66], EntityCreeper['Creeper'/1541, l='MpServer', x=-198,47, y=28,00, z=126,53], EntitySkeleton['Skeleton'/1542, l='MpServer', x=-200,50, y=28,00, z=129,50], EntitySkeleton['Skeleton'/1543, l='MpServer', x=-196,00, y=29,00, z=125,56], EntityBat['Bat'/531, l='MpServer', x=-256,44, y=37,16, z=68,03], EntityZombie['Zombie'/1555, l='MpServer', x=-240,50, y=42,00, z=58,50], EntityBat['Bat'/532, l='MpServer', x=-252,81, y=38,88, z=69,63], EntitySpider['Spider'/1577, l='MpServer', x=-257,50, y=26,00, z=60,50], EntityBat['Bat'/641, l='MpServer', x=-178,15, y=12,10, z=56,44], EntityFallingBlock['Falling Block'/3723, l='MpServer', x=-281,50, y=16,55, z=9,50], EntityFallingBlock['Falling Block'/3724, l='MpServer', x=-281,50, y=16,55, z=10,50], EntityFallingBlock['Falling Block'/3725, l='MpServer', x=-280,50, y=16,55, z=9,50], EntityFallingBlock['Falling Block'/3726, l='MpServer', x=-280,50, y=16,55, z=10,50], EntityFallingBlock['Falling Block'/3727, l='MpServer', x=-282,50, y=16,55, z=8,50], EntityFallingBlock['Falling Block'/3728, l='MpServer', x=-282,50, y=16,55, z=9,50], EntityFallingBlock['Falling Block'/3729, l='MpServer', x=-282,50, y=16,55, z=10,50], EntityFallingBlock['Falling Block'/3731, l='MpServer', x=-283,50, y=16,55, z=8,50], EntityFallingBlock['Falling Block'/3732, l='MpServer', x=-283,50, y=16,55, z=9,50], EntityFallingBlock['Falling Block'/3734, l='MpServer', x=-283,50, y=16,55, z=7,50], EntityFallingBlock['Falling Block'/3735, l='MpServer', x=-284,50, y=16,55, z=7,50], EntityFallingBlock['Falling Block'/3736, l='MpServer', x=-284,50, y=16,55, z=8,50], EntityFallingBlock['Falling Block'/3737, l='MpServer', x=-285,50, y=17,55, z=6,50], EntityBat['Bat'/702, l='MpServer', x=-243,33, y=16,13, z=122,52], EntitySkeleton['Skeleton'/1743, l='MpServer', x=-150,50, y=20,00, z=144,50], EntityWitch['Witch'/1760, l='MpServer', x=-176,50, y=14,00, z=58,50], EntitySkeleton['Skeleton'/1761, l='MpServer', x=-173,50, y=14,00, z=56,50], EntityFallingBlock['Falling Block'/3954, l='MpServer', x=-138,50, y=23,46, z=7,50], EntityFallingBlock['Falling Block'/3955, l='MpServer', x=-139,50, y=23,46, z=7,50], EntityFallingBlock['Falling Block'/3956, l='MpServer', x=-140,50, y=24,00, z=7,50], EntityFallingBlock['Falling Block'/3958, l='MpServer', x=-139,50, y=24,00, z=6,50], EntityFallingBlock['Falling Block'/3959, l='MpServer', x=-138,50, y=23,46, z=8,50], EntityFallingBlock['Falling Block'/3960, l='MpServer', x=-141,50, y=24,00, z=7,50], EntityFallingBlock['Falling Block'/3961, l='MpServer', x=-140,50, y=24,00, z=6,50], EntityFallingBlock['Falling Block'/3962, l='MpServer', x=-141,50, y=24,00, z=6,50], EntityFallingBlock['Falling Block'/3963, l='MpServer', x=-142,50, y=24,00, z=6,50], EntityFallingBlock['Falling Block'/3964, l='MpServer', x=-142,50, y=24,00, z=7,50], EntityFallingBlock['Falling Block'/3965, l='MpServer', x=-143,50, y=23,46, z=7,50], EntityFallingBlock['Falling Block'/3966, l='MpServer', x=-144,50, y=32,46, z=153,50], EntityFallingBlock['Falling Block'/3967, l='MpServer', x=-145,50, y=32,46, z=153,50], EntityFallingBlock['Falling Block'/3968, l='MpServer', x=-146,50, y=32,46, z=153,50], EntityFallingBlock['Falling Block'/3971, l='MpServer', x=-121,50, y=37,46, z=186,50], EntityFallingBlock['Falling Block'/2952, l='MpServer', x=-281,50, y=11,70, z=9,50], EntityFallingBlock['Falling Block'/2953, l='MpServer', x=-281,50, y=11,70, z=10,50], EntityFallingBlock['Falling Block'/2954, l='MpServer', x=-280,50, y=11,70, z=9,50], EntityFallingBlock['Falling Block'/3978, l='MpServer', x=-117,50, y=32,46, z=142,50], EntityBat['Bat'/907, l='MpServer', x=-173,16, y=52,13, z=54,20], EntityFallingBlock['Falling Block'/2955, l='MpServer', x=-280,50, y=11,70, z=10,50], EntityFallingBlock['Falling Block'/2956, l='MpServer', x=-282,50, y=11,70, z=8,50], EntityFallingBlock['Falling Block'/2957, l='MpServer', x=-282,50, y=11,70, z=9,50], EntityFallingBlock['Falling Block'/2958, l='MpServer', x=-282,50, y=11,70, z=10,50], EntityFallingBlock['Falling Block'/2960, l='MpServer', x=-283,50, y=11,70, z=8,50], EntityFallingBlock['Falling Block'/2961, l='MpServer', x=-283,50, y=11,70, z=9,50], EntityFallingBlock['Falling Block'/2963, l='MpServer', x=-283,50, y=11,70, z=7,50], EntityFallingBlock['Falling Block'/3987, l='MpServer', x=-95,50, y=34,46, z=-39,50], EntityFallingBlock['Falling Block'/2964, l='MpServer', x=-284,50, y=11,70, z=7,50], EntityFallingBlock['Falling Block'/3988, l='MpServer', x=-94,50, y=34,46, z=-39,50], EntityFallingBlock['Falling Block'/2965, l='MpServer', x=-284,50, y=11,70, z=8,50], EntityFallingBlock['Falling Block'/3989, l='MpServer', x=-97,50, y=34,46, z=-40,50], EntityFallingBlock['Falling Block'/2966, l='MpServer', x=-285,50, y=12,70, z=6,50], EntityFallingBlock['Falling Block'/3990, l='MpServer', x=-96,50, y=34,46, z=-40,50], EntityFallingBlock['Falling Block'/2968, l='MpServer', x=-285,50, y=12,70, z=7,50]]

Retry entities: 0 total; []

Server brand: fml,forge

Server type: Integrated singleplayer server

Stacktrace:

at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:350)

at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2488)

at net.minecraft.client.Minecraft.run(Minecraft.java:367)

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

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(GradleStartCommon.java:78)

at GradleStart.main(GradleStart.java:45)

 

-- System Details --

Details:

Minecraft Version: 1.8

Operating System: Windows 8.1 (x86) version 6.3

Java Version: 1.8.0_31, Oracle Corporation

Java VM Version: Java HotSpot Client VM (mixed mode), Oracle Corporation

Memory: 714163208 bytes (681 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB)

JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M

IntCache: cache: 0, tcache: 0, allocated: 13, tallocated: 95

FML: MCP v9.10 FML v8.0.20.1290 Minecraft Forge 11.14.0.1290 4 mods loaded, 4 mods active

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

FML{8.0.20.1290} [Forge Mod Loader] (forgeSrc-1.8-11.14.0.1290-1.8.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

Forge{11.14.0.1290} [Minecraft Forge] (forgeSrc-1.8-11.14.0.1290-1.8.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

sorch{0.1} [sorch] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

Launched Version: 1.8

LWJGL: 2.9.1

OpenGL: AMD Radeon R7 200 Series GL version 4.3.12618 Compatibility Profile Context 13.251.9001.1001, ATI Technologies Inc.

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: No

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)

Posted

Main class:

 

package com.sorch.sorchmod;

 

import net.minecraft.block.Block;

import net.minecraft.client.Minecraft;

import net.minecraft.client.renderer.entity.RenderItem;

import net.minecraft.client.resources.model.ModelBakery;

import net.minecraft.client.resources.model.ModelResourceLocation;

import net.minecraft.creativetab.CreativeTabs;

import net.minecraft.entity.EntityList;

import net.minecraft.entity.EnumCreatureType;

import net.minecraft.entity.player.EntityPlayer;

import net.minecraft.init.Blocks;

import net.minecraft.init.Items;

import net.minecraft.item.Item;

import net.minecraft.item.ItemStack;

import net.minecraft.item.Item.ToolMaterial;

import net.minecraft.item.ItemSword;

import net.minecraft.world.biome.BiomeGenBase;

import net.minecraftforge.common.MinecraftForge;

import net.minecraftforge.fml.common.FMLCommonHandler;

import net.minecraftforge.fml.common.Mod;

import net.minecraftforge.fml.common.Mod.EventHandler;

import net.minecraftforge.fml.common.SidedProxy;

import net.minecraftforge.fml.common.event.FMLInitializationEvent;

import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;

import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;

import net.minecraftforge.fml.common.registry.EntityRegistry;

import net.minecraftforge.fml.common.registry.GameRegistry;

import net.minecraftforge.fml.common.registry.LanguageRegistry;

import net.minecraftforge.fml.relauncher.Side;

import net.minecraftforge.fml.relauncher.SideOnly;

 

@Mod(modid = Sorch.MODID, version = Sorch.VERSION)

 

public class Sorch

    @SidedProxy(clientSide = "com.sorch.sorchmod.ClientProxy", serverSide = "com.sorch.sorchmod.ServerProxy")

    public static ServerProxy proxy; 

    public static final String MODID = "sorch";

    public static final String VERSION = "0.1";

   

    // Items //

    public static Item woodBlade;

    public static Item stoneBlade;

    public static Item longBow;

    public static Item stoneArrow;

   

    @EventHandler

    public void preLoad(FMLPreInitializationEvent event)

    {

        proxy.registerRenderThings();

       

        longBow = new ItemLongBow().setUnlocalizedName("longBow");

        GameRegistry.registerItem(longBow, "longBow");

    }

 

    @EventHandler

    public void load(FMLInitializationEvent event)

    {

    woodBlade = new ItemSword(Item.ToolMaterial.WOOD).setUnlocalizedName("woodBlade");

    stoneBlade = new ItemSword(Item.ToolMaterial.STONE).setUnlocalizedName("stoneBlade");

    stoneArrow = new Item().setUnlocalizedName("stoneArrow").setCreativeTab(CreativeTabs.tabCombat);

    GameRegistry.registerItem(woodBlade, "woodBlade");

    GameRegistry.registerItem(stoneBlade, "stoneBlade");

    GameRegistry.registerItem(stoneArrow, "stoneArrow");

   

    // Mobs //

   

    EntityRegisterSorch.registerMobs();

    EntityRegisterSorch.addSpawns();

   

    if(event.getSide() == Side.CLIENT)

    {

        RenderItem renderItem = Minecraft.getMinecraft().getRenderItem();

        renderItem.getItemModelMesher().register(woodBlade, 0, new ModelResourceLocation(Sorch.MODID + ":" + "woodBlade", "inventory"));

        renderItem.getItemModelMesher().register(stoneBlade, 0, new ModelResourceLocation(Sorch.MODID + ":" + "stoneBlade", "inventory"));

        renderItem.getItemModelMesher().register(longBow, 0, new ModelResourceLocation(Sorch.MODID + ":" + "longBow", "inventory"));

        renderItem.getItemModelMesher().register(stoneArrow, 0, new ModelResourceLocation(Sorch.MODID + ":" + "stoneArrow", "inventory"));

        ModelBakery.addVariantName(longBow, new String[] {MODID + ":longBow", MODID + ":longBow_pull", MODID + ":longBow_pull_double"});

                registerItem(longBow, 0, MODID + ":longBow");

                registerItem(longBow, 1, MODID + ":longBow_pull");

                registerItem(longBow, 2, MODID + ":longBow_pull_double");

    }

    }

 

    @SideOnly(Side.CLIENT)

    public static void registerItem(Item item, int metadata, String itemName)

    {

   

    }

 

    @EventHandler

    public void postInit(FMLPostInitializationEvent event)

    {

    GameRegistry.addRecipe(new ItemStack(Sorch.stoneArrow, 10), new Object[]{

        "  A",

        " B ",

        "B  ",

        'A', Blocks.cobblestone, 'B', Blocks.planks});

    }

}

 

 

 

 

 

 

 

 

 

 

 

EntityRegisterSorch:

package com.sorch.sorchmod;

 

import net.minecraft.entity.EnumCreatureType;

import net.minecraft.world.biome.BiomeGenBase;

import net.minecraftforge.fml.common.registry.EntityRegistry;

 

public class EntityRegisterSorch

{

public static void registerMobs()

{

//  http://www.colorpicker.com/  http://www.mathsisfun.com/hexadecimal-decimal-colors.html

 

EntityRegisterSorch.registerEntity(EntityOrch.class, "SMOrch", 150, 4534038, 14071595);

}

 

public static void registerEntity(Class entityClass, String name, int id, int primaryColor, int secondaryColor)

{

EntityRegistry.registerGlobalEntityID(entityClass, name, id, primaryColor, secondaryColor);

        EntityRegistry.registerModEntity(entityClass, name, id, Sorch.MODID, 80, 3, false);

}

 

public static void addSpawns()

{

EntityRegistry.addSpawn(EntityOrch.class, 100, 0, 0, EnumCreatureType.CREATURE, new BiomeGenBase[] { BiomeGenBase.beach});

}

}

 

Posted

i only know there is something wrong with this:

RenderingRegistry.registerEntityRenderingHandler(EntityOrch.class, new RenderOrch(Minecraft.getMinecraft().getRenderManager(), new ModelOrch(), 1.0F));

 

in Clientproxy, maybe its not in the right file? idk

Posted

yay ik fixed it, i had to put this:

RenderingRegistry.registerEntityRenderingHandler(EntityOrch.class, new RenderOrch(Minecraft.getMinecraft().getRenderManager(), new ModelOrch(), 1.0F));

 

in the main class, not in clientproxy

 

thanks :D

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

    • The specific issue is that items in my inventory wont stack properly. For instance, if I punch a tree down to collect wood, the first block I collected goes to my hand. So when I punch the second block of wood to collect it, it drops, but instead of stacking with the piece of wood already in my hand, it goes to the second slot in my hotbar instead. Another example is that I'll get some dirt, and then when I'm placing it down later I'll accidentally place a block where I don't want it. When I harvest it again, it doesn't go back to the stack that it came from on my hotbar, where it should have gone, but rather into my inventory. That means that if my inventory is full, then the dirt wont be picked up even though there should be space available in the stack I'm holding. The forge version I'm using is 40.3.0, for java 1.18.2. I'll leave the mods I'm using here, and I'd appreciate it if anybody can point me in the right direction in regards to figuring out how to fix this. I forgot to mention that I think it only happens on my server but I'm not entirely sure. PLEASE HELP ME! LIST OF THE MODS. aaa_particles Adorn AdvancementPlaques AI-Improvements AkashicTome alexsdelight alexsmobs AmbientSounds amwplushies Animalistic another_furniture AppleSkin Aquaculture aquamirae architectury artifacts Atlas-Lib AutoLeveling AutoRegLib auudio balm betterfpsdist biggerstacks biomancy BiomesOPlenty blockui blueprint Bookshelf born_in_chaos Botania braincell BrassAmberBattleTowers brutalbosses camera CasinoCraft cfm (MrCrayfish’s Furniture Mod) chat_heads citadel cloth-config Clumps CMDCam CNB cobweb collective comforts convenientcurioscontainer cookingforblockheads coroutil CosmeticArmorReworked CozyHome CrabbersDelight crashexploitfixer crashutilities Create CreativeCore creeperoverhaul cristellib crittersandcompanions Croptopia CroptopiaAdditions CullLessLeaves curios curiouslanterns curiouslights Curses' Naturals CustomNPCs CyclopsCore dannys_expansion decocraft Decoration Mod DecorationDelightRefurbished Decorative Blocks Disenchanting DistantHorizons doubledoors DramaticDoors drippyloadingscreen durabilitytooltip dynamic-fps dynamiclights DynamicTrees DynamicTreesBOP DynamicTreesPlus Easy Dungeons EasyAnvils EasyMagic easy_npc eatinganimation ecologics effective_fg elevatorid embeddium emotecraft enchantlimiter EnchantmentDescriptions EnderMail engineersdecor entityculling entity_model_features entity_texture_features epicfight EvilCraft exlinefurniture expandability explosiveenhancement factory-blocks fairylights fancymenu FancyVideo FarmersDelight fast-ip-ping FastSuite ferritecore finsandtails FixMySpawnR Forge Middle Ages fossil FpsReducer2 furnish GamingDeco geckolib goblintraders goldenfood goodall H.e.b habitat harvest-with-ease hexerei hole_filler huge-structure-blocks HunterIllager iammusicplayer Iceberg illuminations immersive_paintings incubation infinitybuttons inventoryhud InventoryProfilesNext invocore ItemBorders itemzoom Jade jei (Just Enough Items) JetAndEliasArmors journeymap JRFTL justzoom kiwiboi Kobolds konkrete kotlinforforge lazydfu LegendaryTooltips libIPN lightspeed lmft lodestone LongNbtKiller LuckPerms Lucky77 MagmaMonsters malum ManyIdeasCore ManyIdeasDoors marbledsarsenal marg mcw-furniture mcw-lights mcw-paths mcw-stairs mcw-trapdoors mcw-windows meetyourfight melody memoryleakfix Mimic minecraft-comes-alive MineTraps minibosses MmmMmmMmmMmm MOAdecor (ART, BATH, COOKERY, GARDEN, HOLIDAYS, LIGHTS, SCIENCE) MobCatcher modonomicon mods_optimizer morehitboxes mowziesmobs MutantMonsters mysticalworld naturalist NaturesAura neapolitan NekosEnchantedBooks neoncraft2 nerb nifty NightConfigFixes nightlights nocube's_villagers_sell_animals NoSeeNoTick notenoughanimations obscure_api oculus oresabovediamonds otyacraftengine Paraglider Patchouli physics-mod Pillagers Gun PizzaCraft placeableitems Placebo player-animation-lib pneumaticcraft-repressurized polymorph PrettyPipes Prism projectbrazier Psychadelic-Chemistry PuzzlesLib realmrpg_imps_and_demons RecipesLibrary reeves-furniture RegionsUnexplored restrictedportals revive-me Scary_Mobs_And_Bosses selene shetiphiancore ShoulderSurfing smoothboot
    • Hi everyone, I'm currently developing a Forge 1.21 mod for Minecraft and I want to display a custom HUD overlay for a minigame. My goal: When the game starts, all players should see an item/block icon (from the base game, not a custom texture) plus its name/text in the HUD – similar to how the bossbar overlay works. The HUD should appear centered above the hotbar (or at a similar prominent spot), and update dynamically (icon and name change as the target item changes). What I've tried: I looked at many online tutorials and several GitHub repos (e.g. SeasonHUD, MiniHUD), but most of them use NeoForge or Forge versions <1.20 that provide the IGuiOverlay API (e.g. implements IGuiOverlay, RegisterGuiOverlaysEvent). In Forge 1.21, it seems that neither IGuiOverlay nor RegisterGuiOverlaysEvent exist anymore – at least, I can't import them and they are missing from the docs and code completion. I tried using RenderLevelStageEvent as a workaround but it is probably not intended for custom HUDs. I am not using NeoForge, and switching the project to NeoForge is currently not an option for me. I tried to look at the original minecraft source code to see how elements like hearts, hotbar etc are drawn on the screen but I am too new to Minecraft modding to understand. What I'm looking for: What is the correct way to add a custom HUD element (icon + text) in Forge 1.21, given that the previous overlay API is missing? Is there a new recommended event, callback, or method in Forge 1.21 for custom HUD overlays, or is everyone just using a workaround? Is there a minimal open-source example repo for Forge 1.21 that demonstrates a working HUD overlay without relying on NeoForge or deprecated Forge APIs? My ideal solution: Centered HUD element with an in-game item/block icon (from the base game's assets, e.g. a diamond or any ItemStack / Item) and its name as text, with a transparent background rectangle. It should be visible to the players when the mini game is running. Easy to update the item (e.g. static variable or other method), so it can change dynamically during the game. Any help, code snippets, or up-to-date references would be really appreciated! If this is simply not possible right now in Forge 1.21, it would also help to know that for sure. Thank you very much in advance!
    • The simple answer is there is not an easy way. You would need to know how to program in Java, as well as at least some familiarity with how Forge works so you could port the differences. You would also need the sourcecode for the original mod, and permission from the author to modify it, if they did not use some sort of open source license. So it's not impossible, but it would take some effort, but doing so would open up a whole new world of possibilities for you!
    • Does it still crash if you remove holdmyitems? Looks like that mod doesn't work on a server as far as I can tell from the error.  
  • Topics

×
×
  • Create New...

Important Information

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