Jump to content

[SOLVED] Tessellator - already tessellating error


Recommended Posts

Posted

Hi,

 

I wanted to play around with tesselator, but I got this error:

 

2013-11-28 21:42:33 [iNFO] [sTDERR] 	at net.minecraft.client.renderer.Tessellator.startDrawing(Tessellator.java:343)
2013-11-28 21:42:33 [iNFO] [sTDERR] 	at net.minecraft.client.renderer.Tessellator.startDrawingQuads(Tessellator.java:333)
2013-11-28 21:42:33 [iNFO] [sTDERR] 	at morelights.renderers.LEDStripRenderer.renderWorldBlock(LEDStripRenderer.java:28)
2013-11-28 21:42:33 [iNFO] [sTDERR] 	at cpw.mods.fml.client.registry.RenderingRegistry.renderWorldBlock(RenderingRegistry.java:152)
2013-11-28 21:42:33 [iNFO] [sTDERR] 	at net.minecraft.src.FMLRenderAccessLibrary.renderWorldBlock(FMLRenderAccessLibrary.java:57)
2013-11-28 21:42:33 [iNFO] [sTDERR] 	at net.minecraft.client.renderer.RenderBlocks.renderBlockByRenderType(RenderBlocks.java:485)
2013-11-28 21:42:33 [iNFO] [sTDERR] 	at net.minecraft.client.renderer.WorldRenderer.updateRenderer(WorldRenderer.java:224)
2013-11-28 21:42:33 [iNFO] [sTDERR] 	at net.minecraft.client.renderer.RenderGlobal.updateRenderers(RenderGlobal.java:1551)
2013-11-28 21:42:33 [iNFO] [sTDERR] 	at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1129)
2013-11-28 21:42:33 [iNFO] [sTDERR] 	at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1006)
2013-11-28 21:42:33 [iNFO] [sTDERR] 	at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:946)
2013-11-28 21:42:33 [iNFO] [sTDERR] 	at net.minecraft.client.Minecraft.run(Minecraft.java:838)
2013-11-28 21:42:33 [iNFO] [sTDERR] 	at net.minecraft.client.main.Main.main(Main.java:93)
2013-11-28 21:42:33 [iNFO] [sTDERR] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2013-11-28 21:42:33 [iNFO] [sTDERR] 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2013-11-28 21:42:33 [iNFO] [sTDERR] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2013-11-28 21:42:33 [iNFO] [sTDERR] 	at java.lang.reflect.Method.invoke(Unknown Source)
2013-11-28 21:42:33 [iNFO] [sTDERR] 	at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)
2013-11-28 21:42:33 [iNFO] [sTDERR] 	at net.minecraft.launchwrapper.Launch.main(Launch.java:27)
2013-11-28 21:42:33 [iNFO] [sTDOUT] ---- Minecraft Crash Report ----
2013-11-28 21:42:33 [iNFO] [sTDOUT] // I just don't know what went wrong 
2013-11-28 21:42:33 [iNFO] [sTDOUT] 
2013-11-28 21:42:33 [iNFO] [sTDOUT] Time: 28.11.13 21:42
2013-11-28 21:42:33 [iNFO] [sTDOUT] Description: Unexpected error
2013-11-28 21:42:33 [iNFO] [sTDOUT] 
2013-11-28 21:42:33 [iNFO] [sTDOUT] java.lang.IllegalStateException: Already tesselating!
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	at net.minecraft.client.renderer.Tessellator.startDrawing(Tessellator.java:343)
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	at net.minecraft.client.renderer.Tessellator.startDrawingQuads(Tessellator.java:333)
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	at morelights.renderers.LEDStripRenderer.renderWorldBlock(LEDStripRenderer.java:28)
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	at cpw.mods.fml.client.registry.RenderingRegistry.renderWorldBlock(RenderingRegistry.java:152)
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	at net.minecraft.src.FMLRenderAccessLibrary.renderWorldBlock(FMLRenderAccessLibrary.java:57)
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	at net.minecraft.client.renderer.RenderBlocks.renderBlockByRenderType(RenderBlocks.java:485)
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	at net.minecraft.client.renderer.WorldRenderer.updateRenderer(WorldRenderer.java:224)
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	at net.minecraft.client.renderer.RenderGlobal.updateRenderers(RenderGlobal.java:1551)
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1129)
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1006)
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:946)
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	at net.minecraft.client.Minecraft.run(Minecraft.java:838)
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	at net.minecraft.client.main.Main.main(Main.java:93)
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	at java.lang.reflect.Method.invoke(Unknown Source)
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	at net.minecraft.launchwrapper.Launch.main(Launch.java:27)
2013-11-28 21:42:33 [iNFO] [sTDOUT] 
2013-11-28 21:42:33 [iNFO] [sTDOUT] 
2013-11-28 21:42:33 [iNFO] [sTDOUT] A detailed walkthrough of the error, its code path and all known details is as follows:
2013-11-28 21:42:33 [iNFO] [sTDOUT] ---------------------------------------------------------------------------------------
2013-11-28 21:42:33 [iNFO] [sTDOUT] 
2013-11-28 21:42:33 [iNFO] [sTDOUT] -- Head --
2013-11-28 21:42:33 [iNFO] [sTDOUT] Stacktrace:
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	at net.minecraft.client.renderer.Tessellator.startDrawing(Tessellator.java:343)
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	at net.minecraft.client.renderer.Tessellator.startDrawingQuads(Tessellator.java:333)
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	at morelights.renderers.LEDStripRenderer.renderWorldBlock(LEDStripRenderer.java:28)
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	at cpw.mods.fml.client.registry.RenderingRegistry.renderWorldBlock(RenderingRegistry.java:152)
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	at net.minecraft.src.FMLRenderAccessLibrary.renderWorldBlock(FMLRenderAccessLibrary.java:57)
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	at net.minecraft.client.renderer.RenderBlocks.renderBlockByRenderType(RenderBlocks.java:485)
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	at net.minecraft.client.renderer.WorldRenderer.updateRenderer(WorldRenderer.java:224)
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	at net.minecraft.client.renderer.RenderGlobal.updateRenderers(RenderGlobal.java:1551)
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1129)
2013-11-28 21:42:33 [iNFO] [sTDOUT] 
2013-11-28 21:42:33 [iNFO] [sTDOUT] -- Affected level --
2013-11-28 21:42:33 [iNFO] [sTDOUT] Details:
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	Level name: MpServer
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	All players: 1 total; [EntityClientPlayerMP['Player261'/19, l='MpServer', x=-41,40, y=5,62, z=121,90]]
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	Chunk stats: MultiplayerChunkCache: 441
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	Level seed: 0
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	Level generator: ID 01 - flat, ver 0. Features enabled: false
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	Level generator options: 
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	Level spawn location: World: (-51,4,122), Chunk: (at 13,0,10 in -4,7; contains blocks -64,0,112 to -49,255,127), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	Level time: 357678 game time, 188737 day time
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	Level dimension: 0
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	Level storage version: 0x00000 - Unknown?
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	Forced entities: 4 total; [EntityClientPlayerMP['Player261'/19, l='MpServer', x=-41,40, y=5,62, z=121,90], EntityPig['Pig'/10, l='MpServer', x=-99,75, y=4,00, z=62,22], EntityPig['Pig'/14, l='MpServer', x=-65,50, y=4,00, z=50,09], EntityPig['Pig'/15, l='MpServer', x=-66,66, y=4,00, z=47,22]]
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	Retry entities: 0 total; []
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	Server brand: fml,forge
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	Server type: Integrated singleplayer server
2013-11-28 21:42:33 [iNFO] [sTDOUT] Stacktrace:
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:440)
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2312)
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	at net.minecraft.client.Minecraft.run(Minecraft.java:863)
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	at net.minecraft.client.main.Main.main(Main.java:93)
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	at java.lang.reflect.Method.invoke(Unknown Source)
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	at net.minecraft.launchwrapper.Launch.main(Launch.java:27)
2013-11-28 21:42:33 [iNFO] [sTDOUT] 
2013-11-28 21:42:33 [iNFO] [sTDOUT] -- System Details --
2013-11-28 21:42:33 [iNFO] [sTDOUT] Details:
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	Minecraft Version: 1.6.4
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	Operating System: Windows 7 (amd64) version 6.1
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	Java Version: 1.7.0_45, Oracle Corporation
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	Memory: 671491320 bytes (640 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	AABB Pool Size: 18395 (1030120 bytes; 0 MB) allocated, 71 (3976 bytes; 0 MB) used
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	Suspicious classes: FML and Forge are installed
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	FML: MCP v8.11 FML v6.4.41.946 Minecraft Forge 9.11.1.946 4 mods loaded, 4 mods active
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	FML{6.4.41.946} [Forge Mod Loader] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	Forge{9.11.1.946} [Minecraft Forge] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	morelights{1.6.4 v0.1} [More Lights Mod] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	Launched Version: 1.6
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	LWJGL: 2.9.0
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	OpenGL: AMD Radeon HD 5800 Series GL version 4.2.12422 Compatibility Profile Context 13.152.0.0, ATI Technologies Inc.
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	Is Modded: Definitely; Client brand changed to 'fml,forge'
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	Type: Client (map_client.txt)
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	Resource Pack: Default
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	Current Language: English (US)
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	Profiler Position: N/A (disabled)
2013-11-28 21:42:33 [iNFO] [sTDOUT] 	Vec3 Pool Size: 286 (16016 bytes; 0 MB) allocated, 51 (2856 bytes; 0 MB) used
2013-11-28 21:42:33 [iNFO] [sTDOUT] #@!@# Game crashed! Crash report saved to: #@!@# D:\Data\Dokumenty\Development\forge\mcp\jars\.\crash-reports\crash-2013-11-28_21.42.33-client.txt
2013-11-28 21:42:33 [iNFO] [Minecraft-Server] Stopping server
2013-11-28 21:42:33 [iNFO] [Minecraft-Server] Saving players
2013-11-28 21:42:33 [iNFO] [Minecraft-Server] Stopping server
2013-11-28 21:42:33 [iNFO] [Minecraft-Server] Saving players
AL lib: (EE) alc_cleanup: 1 device not closed

 

I was trying to google it, but I didn't find an answer :(

 

Here is the code:

 

package morelights.renderers;

import org.lwjgl.opengl.GL11;

import morelights.lib.Reference;
import morelights.proxy.ClientProxy;
import net.minecraft.block.Block;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.RenderBlocks;
import net.minecraft.client.renderer.Tessellator;
import net.minecraft.util.ResourceLocation;
import net.minecraft.world.IBlockAccess;
import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler;

public class LEDStripRenderer implements ISimpleBlockRenderingHandler {

@Override
public void renderInventoryBlock(Block block, int metadata, int modelID,
		RenderBlocks renderer) {

}

@Override
public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z,
		Block block, int modelId, RenderBlocks renderer) {

	Tessellator tes = Tessellator.instance;
	tes.startDrawingQuads();
	int lightValue = block.getMixedBrightnessForBlock(world, x, y, z);
	tes.setBrightness(lightValue);
	tes.setColorOpaque_F(1.0F, 1.0F, 1.0F);

	tes.setTranslation(x, y, z);

	ResourceLocation textures = (new ResourceLocation(Reference.modid + ":textures/models/LEDStrip.png")); 
        Minecraft.getMinecraft().renderEngine.bindTexture(textures);
        
        tes.addVertexWithUV(0, 0, 0, 0, 1);
        tes.addVertexWithUV(0, 1, 0, 0, 0);
        tes.addVertexWithUV(0, 1, 1, 1, 0);
        tes.addVertexWithUV(0, 0, 1, 1, 1);
        
        tes.draw();

	return true;
}

@Override
public boolean shouldRender3DInInventory() {
	return true;
}

@Override
public int getRenderId() {
	return ClientProxy.LEDStripRenderType;
}
}

If someone helps you, click that thank you button ;)

 

EasyTessellator library: http://www.minecraftforge.net/forum/index.php/topic,14705.0.html

Posted

Hi

 

The caller has already performed tes.startDrawingQuads(); for you.  Delete that line and it should be fine.

 

You can't do two startDrawingXXX in a row without a draw between them  (and vica versa too)

 

-TGG

Posted

Hi

 

The caller has already performed tes.startDrawingQuads(); for you.  Delete that line and it should be fine.

 

You can't do two startDrawingXXX in a row without a draw between them  (and vica versa too)

 

-TGG

 

Well I was thinking about it too, but guess what... then I get "Not tesselating!" error :D

If someone helps you, click that thank you button ;)

 

EasyTessellator library: http://www.minecraftforge.net/forum/index.php/topic,14705.0.html

Posted

Hi

 

Well we're making progress...

I didn't have this problem in my own ISBRH renderers so far, but perhaps you need to undo some of the setting changes you are making (setTranslate, texture, etc). 

I'd suggest removing them one by one and seeing which one(s) are causing the weirdness.

And come to think of it, I don't think you need setTranslate, the caller should have done that for you.  Setting it to 0,0,0 might actually be causing your problem.

 

Something else to be aware of - if your block has transparent bits (is not a full, opaque cube), you need to override isOpaqueBlock to return false.

http://4.bp.blogspot.com/-F0FTLzenidU/UfKBs19w_rI/AAAAAAAAABw/nxNmavM7sd4/s1600/StandardBlockWithAlpha-1.png

 

-TGG

Posted

Hi

 

Well we're making progress...

I didn't have this problem in my own ISBRH renderers so far, but perhaps you need to undo some of the setting changes you are making (setTranslate, texture, etc). 

I'd suggest removing them one by one and seeing which one(s) are causing the weirdness.

And come to think of it, I don't think you need setTranslate, the caller should have done that for you.  Setting it to 0,0,0 might actually be causing your problem.

 

Ok so binding the texture was the problem. So how do I tell the tessellator which texture to use?

 

 

Something else to be aware of - if your block has transparent bits (is not a full, opaque cube), you need to override isOpaqueBlock to return false.

http://4.bp.blogspot.com/-F0FTLzenidU/UfKBs19w_rI/AAAAAAAAABw/nxNmavM7sd4/s1600/StandardBlockWithAlpha-1.png

 

-TGG

I know that ;)

If someone helps you, click that thank you button ;)

 

EasyTessellator library: http://www.minecraftforge.net/forum/index.php/topic,14705.0.html

Posted

Hi

 

From looking in EntityRenderer.renderWorld I think this should work:

 

Minecraft.getMinecraft().getTextureManager().bindTexture(TextureMap.locationBlocksTexture);

         

-TGG

 

Well it's almost the same as I did it before and this is binding the texture map for vanilla blocks (and even then there is no texture). But now I know why it was doing that glitch where blocks didn't have texture. It was because I was binding my texture, but then it using it for every block in that chunk. So I have just put Minecraft.getMinecraft().getTextureManager().bindTexture(TextureMap.locationBlocksTexture); when I finished rendering my block and it's not doing that glitch, but my block is still not rendering (or doesn't have texture)

If someone helps you, click that thank you button ;)

 

EasyTessellator library: http://www.minecraftforge.net/forum/index.php/topic,14705.0.html

Posted

Hi

 

Sounds like it might be rendering but not in the place you expect.

 

Suggest to try

// comment this out		tes.setTranslation(x, y, z);

	ResourceLocation textures = (new ResourceLocation(Reference.modid + ":textures/models/LEDStrip.png")); 
        Minecraft.getMinecraft().renderEngine.bindTexture(textures);
        
        tes.addVertexWithUV(x,     y,     z, 0, 1);
        tes.addVertexWithUV(x, y+1,     z, 0, 0);
        tes.addVertexWithUV(x, y+1, z+1, 1, 0);
        tes.addVertexWithUV(x,     y, z+1, 1, 1);

-TGG

 

Posted

Hi

 

Sounds like it might be rendering but not in the place you expect.

 

Suggest to try

// comment this out		tes.setTranslation(x, y, z);

	ResourceLocation textures = (new ResourceLocation(Reference.modid + ":textures/models/LEDStrip.png")); 
        Minecraft.getMinecraft().renderEngine.bindTexture(textures);
        
        tes.addVertexWithUV(x,     y,     z, 0, 1);
        tes.addVertexWithUV(x, y+1,     z, 0, 0);
        tes.addVertexWithUV(x, y+1, z+1, 1, 0);
        tes.addVertexWithUV(x,     y, z+1, 1, 1);

-TGG

 

I've already done that ;)

 

Actual code:

package morelights.renderers;

import org.lwjgl.opengl.GL11;

import morelights.lib.Reference;
import morelights.proxy.ClientProxy;
import net.minecraft.block.Block;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.RenderBlocks;
import net.minecraft.client.renderer.Tessellator;
import net.minecraft.client.renderer.texture.TextureMap;
import net.minecraft.util.ResourceLocation;
import net.minecraft.world.IBlockAccess;
import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler;

public class LEDStripRenderer implements ISimpleBlockRenderingHandler {

@Override
public void renderInventoryBlock(Block block, int metadata, int modelID,
		RenderBlocks renderer) {

}

@Override
public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z,
		Block block, int modelId, RenderBlocks renderer) {

	Tessellator tes = Tessellator.instance;
	int lightValue = block.getMixedBrightnessForBlock(world, x, y, z);
	tes.setBrightness(lightValue);
	tes.setColorOpaque_F(1.0F, 1.0F, 1.0F);

	ResourceLocation texture = (new ResourceLocation(Reference.modid + ":textures/models/LEDStrip.png"));
	Minecraft.getMinecraft().getTextureManager().bindTexture(texture);
        
        tes.addVertexWithUV(0, 0, 0, 0, 1);
        tes.addVertexWithUV(0, 1, 0, 0, 0);
        tes.addVertexWithUV(0, 1, 1, 1, 0);
        tes.addVertexWithUV(0, 0, 1, 1, 1);
        
        Minecraft.getMinecraft().getTextureManager().bindTexture(TextureMap.locationBlocksTexture);
        
	return true;
}

@Override
public boolean shouldRender3DInInventory() {
	return true;
}

@Override
public int getRenderId() {
	return ClientProxy.LEDStripRenderType;
}
}

If someone helps you, click that thank you button ;)

 

EasyTessellator library: http://www.minecraftforge.net/forum/index.php/topic,14705.0.html

Posted

Hi

 

Your code currently renders from [0,0,0] to [1,1,1] instead of from [x,y,z] to [x+1, y+1, z+1].

Did you try that [x,y,z] to [x+1, y+1, z+1] already?

I think the tes.setTranslation(x, y, z) won't work because the caller has set the viewpoint and translation relative to the chunk coordinates, not relative to an origin of [0,0,0]

 

-TGG

 

Posted

Also, if you want to change the texture, you need to do it while the tesselator is not tesselating, otherwise you'll mess up rendering of other blocks. You also need to restore the previous texture when you're finished, again while the tesselator is not tesselating. The correct procedure is:

 

tes.draw();
/* bind your texture here */
tes.startDrawingQuads();
/* draw your block here */
test.draw();
/* restore the default texture */
tes.startDrawingQuads();

 

But note that using a custom texture for rendering blocks is no longer the recommended way of doing things. The modern way is to provide each of your block images as a separate image file, and let MC stitch them into the main texture. This eliminates the need to switch textures while rendering blocks, simplifying your rendering code and improving graphics performance.

 

To see how it's done, take a look at the

registerIcons()

method of some of the vanilla blocks, and how RenderBlocks makes use of the

Icon

class.

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

    • After removing shieldexpansion it wont let me join the server because it's included in the server's modpack. is there a way to bypass that?  
    • Getting this, been trying to comb thru but cant seem to find the error... [13:11:35] [main/INFO]: Loading 169 mods:     - ad_astra 1.15.19     - ae2 15.3.3     - aether 1.20.1-1.5.2-neoforge         |-- cumulus_menus 1.20.1-1.0.1-neoforge         \-- nitrogen_internals 1.20.1-1.0.12-neoforge     - aiimprovements 0.5.2     - alexsmobs 1.22.9     - almostunified 1.20.1-0.9.4     - appleskin 2.5.1+mc1.20.1     - architectury 9.2.14     - athena 3.1.2     - bellsandwhistles 0.4.3-1.20.x     - betterchunkloading 1.20.1-5.3     - betterdeserttemples 1.20-Forge-3.0.3     - betterdungeons 1.20-Forge-4.0.4     - betterendisland 1.20-Forge-2.0.6     - betterfortresses 1.20-Forge-2.0.6     - betterjungletemples 1.20-Forge-2.0.5     - bettermineshafts 1.20-Forge-4.0.4     - betteroceanmonuments 1.20-Forge-3.0.4     - betterstrongholds 1.20-Forge-4.0.3     - bettervillage 3.2.0     - betterwitchhuts 1.20-Forge-3.0.3     - bookshelf 20.2.13     - botanypots 13.0.40     - botarium 2.3.4     - canary 0.3.3     - carryon 2.1.2.7     - cgm 1.4.18     - chipped 3.0.7     - chunkloaders 1.2.8a     - citadel 2.6.1     - cofh_core 11.0.2     - comforts 6.4.0+1.20.1         \-- spectrelib 0.13.15+1.20.1     - copycats 2.2.0+mc.1.20.1-forge     - corpse 1.20.1-1.0.20     - create 0.5.1.j         \-- flywheel 0.6.11-13     - create_better_motors 1.1.0     - create_bic_bit 0.0.86     - create_central_kitchen 1.3.12         \-- create_dragon_lib 1.4.3     - create_confectionery 1.1.0     - create_connected 0.9.4-mc1.20.1     - create_copper_and_zinc 1.6.0     - create_crush_everything 1.0.2     - create_dd 0.1b.Release-Early-Dev     - create_enchantment_industry 1.2.9.d     - create_eureka 1.0.0+forge-1.20.1     - create_extra_casing 0.0.2     - create_factory 0.4b-1.20.1     - create_ltab_f 2.5.0     - create_mechanical_extruder 1.20.1-1.6.3.j-55     - create_new_age 1.1.2     - create_pillagers_arise 116.26.     - create_power_loader 1.5.0-mc1.20.1     - create_questing 1.0.0     - create_sa 2.0.8     - create_ultimate_factory 1.9.0     - createaddoncompatibility 0.2.2b     - createbigcannons 5.8.2         \-- ritchiesprojectilelib 2.0.0-dev+mc.1.20.1-forge-build.182     - createcasing 1.20.1-1.6.2-fix1     - createdieselgenerators 1.20.1-1.2i     - createloveandwar 0.4-1.20.1     - createmobeggs 2.0.1     - createoreexcavation 1.5.3     - createutilities 0.3.0+1.20.1     - crittersandcompanions 2.2.2     - crystal_clear 2.1-Beta     - cupboard 1.20.1-2.7     - curios 5.11.1+1.20.1     - diagonalfences 8.1.5         \-- diagonalblocks 8.0.6     - domum_ornamentum 1.20.1-1.0.284-snapshot     - duckling 3.0.0     - dungeons_arise 2.1.58-1.20.x     - dungeons_arise_seven_seas 1.0.2     - extendedgears 2.1.1-1.20.1-0.5.1.f-forge     - fallingleaves 2.1.0     - fallingtree 4.3.4     - farmersdelight 1.20.1-1.2.7     - fastasyncworldsave 1.20.1-2.3     - ferritecore 6.0.1     - flansmod 0.4         \-- flansphysics 0.4     - forge 47.3.0     - framedblocks 9.3.1     - framework 0.7.12     - ftblibrary 2001.2.9     - ftbquests 2001.4.11     - ftbteams 2001.3.1     - ftbxmodcompat 2.1.2     - fusion 1.2.4     - garnished 2.0.7     - geckolib 4.7     - goblintraders 1.9.3     - gpumemleakfix 1.20.1-1.8     - handcrafted 3.0.6     - interiors 0.5.6     - irisflw 1.1.2     - jade 11.12.3+forge     - jei 15.20.0.106     - kitchen_grow 0.1-1.20.1     - kotlinforforge 4.11.0     - leaky 1.20.1-2.1     - libraryferret 4.0.0     - lmft 1.0.4+1.20.1     - minecraft 1.20.1     - missions 0.4.2     - modernfix 5.20.2+mc1.20.1         \-- mixinextras 0.4.1     - moderntrainparts 0.1.7-forge-mc1.20.1-cr0.5.1.f     - molten_vents 2.0.9     - moonlight 1.20-2.13.62     - moped 1.0.0     - mr_warp_portals 1.4.0     - necronomicon 1.6.0     - numismatics 1.0.7+forge-mc1.20.1     - oculus 1.8.0     - puzzleslib 8.1.25         \-- puzzlesaccessapi 8.0.7     - quark 4.0-460     - railways 1.6.7+forge-mc1.20.1     - rechiseled 1.1.6     - rechiseledcreate 1.0.2     - resourcefulconfig 2.1.2     - resourcefullib 2.1.29     - ribbits 1.20.1-Forge-3.0.4     - rightclickharvest 3.2.3+1.20.1-forge     - simpleclouds 0.6.3+1.20.1-forge         \-- crackerslib 1.20.1-0.4.4     - skinlayers3d 1.7.4     - smoothchunk 1.20.1-4.0     - sophisticatedbackpacks 3.23.4.1196     - sophisticatedcore 1.2.9.867     - storagedrawers 12.9.13     - supermartijn642configlib 1.1.8     - supermartijn642corelib 1.1.18     - supplementaries 1.20-3.1.13         \-- mixinsquared 0.1.1     - tectonic 2.4.1     - terrablender 3.0.1.7     - terralith 2.5.4     - tfmg 0.9.3-1.20.1     - thermal_cultivation 11.0.1     - thermal_dynamics 11.0.1     - thermal_expansion 11.0.1     - thermal_foundation 11.0.6         \-- thermal 11.0.6     - thermal_innovation 11.0.1     - thermal_integration 11.0.1     - torchmaster 20.1.9     - trackwork 1.1.1b     - trashcans 1.0.18b     - travelersbackpack 9.1.16     - twilightforest 4.3.2508     - valkyrienskies 2.3.0-beta.5         \-- cloth_config 11.1.106     - vinery 1.4.38     - vs_clockwork 1.20.1-0.1.16-forge-b3b22e39fe     - vs_eureka 1.5.1-beta.3     - worldedit 7.2.15+6463-5ca4dff     - xaerominimap 25.0.0     - xaeroworldmap 1.39.2     - yungsapi 1.20-Forge-4.0.6     - yungsbridges 1.20-Forge-4.0.3     - yungsextras 1.20-Forge-4.0.3     - zeta 1.0-24 [13:11:35] [main/WARN]: Reference map 'create_eureka-common-refmap.json' for create_eureka-common.mixins.json could not be read. If this is a development environment you can ignore this message [13:11:35] [main/WARN]: Reference map 'eureka-1201-forge-refmap.json' for vs_eureka.mixins.json could not be read. If this is a development environment you can ignore this message [13:11:35] [main/WARN]: Reference map 'createmechanicalextruder.refmap.json' for create_mechanical_extruder.mixins.json could not be read. If this is a development environment you can ignore this message [13:11:35] [main/WARN]: Reference map 'mixins.trackwork.refmap.json' for trackwork.mixins.json could not be read. If this is a development environment you can ignore this message [13:11:35] [main/WARN]: Reference map 'tfmg.refmap.json' for tfmg.mixins.json could not be read. If this is a development environment you can ignore this message [13:11:35] [main/WARN]: Reference map 'Create_The_Kitchen_Must_Grow.refmap.json' for kitchen_grow.mixins.json could not be read. If this is a development environment you can ignore this message [13:11:36] [main/WARN]: Error loading class: mekanism/client/render/entity/RenderFlame (java.lang.ClassNotFoundException: mekanism.client.render.entity.RenderFlame) [13:11:36] [main/WARN]: Error loading class: mekanism/client/render/armor/MekaSuitArmor (java.lang.ClassNotFoundException: mekanism.client.render.armor.MekaSuitArmor) [13:11:36] [main/WARN]: Error loading class: xyz/przemyk/simpleplanes/upgrades/shooter/ShooterUpgrade (java.lang.ClassNotFoundException: xyz.przemyk.simpleplanes.upgrades.shooter.ShooterUpgrade) [13:11:36] [main/WARN]: @Mixin target xyz.przemyk.simpleplanes.upgrades.shooter.ShooterUpgrade was not found cgm.mixins.json:common.simpleplanes.ShooterUpgradeMixin [13:11:36] [main/WARN]: Error loading class: com/jamieswhiteshirt/reachentityattributes/ReachEntityAttributes (java.lang.ClassNotFoundException: com.jamieswhiteshirt.reachentityattributes.ReachEntityAttributes) [13:11:36] [main/WARN]: Error loading class: com/sonicether/soundphysics/SoundPhysics (java.lang.ClassNotFoundException: com.sonicether.soundphysics.SoundPhysics) [13:11:36] [main/WARN]: Error loading class: blusunrize/immersiveengineering/common/gui/BlockEntityInventory (java.lang.ClassNotFoundException: blusunrize.immersiveengineering.common.gui.BlockEntityInventory) [13:11:36] [main/WARN]: Error loading class: net/dries007/tfc/world/TFCChunkGenerator (java.lang.ClassNotFoundException: net.dries007.tfc.world.TFCChunkGenerator) [13:11:36] [main/WARN]: Error loading class: cofh/core/block/entity/TileCoFH (java.lang.ClassNotFoundException: cofh.core.block.entity.TileCoFH) [13:11:36] [main/WARN]: Error loading class: li/cil/tis3d/common/entity/InfraredPacketEntity (java.lang.ClassNotFoundException: li.cil.tis3d.common.entity.InfraredPacketEntity) [13:11:36] [main/WARN]: Error loading class: me/desht/modularrouters/container/RouterMenu (java.lang.ClassNotFoundException: me.desht.modularrouters.container.RouterMenu) [13:11:36] [main/WARN]: Error loading class: me/jellysquid/mods/sodium/client/render/chunk/RenderSectionManager (java.lang.ClassNotFoundException: me.jellysquid.mods.sodium.client.render.chunk.RenderSectionManager) [13:11:36] [main/WARN]: @Mixin target me.jellysquid.mods.sodium.client.render.chunk.RenderSectionManager was not found valkyrienskies-forge.mixins.json:compat.sodium.MixinRenderSectionManager [13:11:36] [main/WARN]: Error loading class: li/cil/tis3d/client/renderer/block/entity/CasingBlockEntityRenderer (java.lang.ClassNotFoundException: li.cil.tis3d.client.renderer.block.entity.CasingBlockEntityRenderer) [13:11:36] [main/WARN]: Error loading class: li/cil/tis3d/client/renderer/RenderContextImpl (java.lang.ClassNotFoundException: li.cil.tis3d.client.renderer.RenderContextImpl) [13:11:37] [main/WARN]: Error loading class: me/jellysquid/mods/lithium/common/ai/pathing/PathNodeDefaults (java.lang.ClassNotFoundException: me.jellysquid.mods.lithium.common.ai.pathing.PathNodeDefaults) [13:11:37] [main/WARN]: Error loading class: noobanidus/mods/lootr/config/ConfigManager (java.lang.ClassNotFoundException: noobanidus.mods.lootr.config.ConfigManager) [13:11:37] [main/WARN]: Error loading class: me/jellysquid/mods/sodium/client/render/chunk/compile/pipeline/FluidRenderer (java.lang.ClassNotFoundException: me.jellysquid.mods.sodium.client.render.chunk.compile.pipeline.FluidRenderer) [13:11:37] [main/WARN]: Error loading class: net/raphimc/immediatelyfast/feature/map_atlas_generation/MapAtlasTexture (java.lang.ClassNotFoundException: net.raphimc.immediatelyfast.feature.map_atlas_generation.MapAtlasTexture) [13:11:37] [main/WARN]: Error loading class: dan200/computercraft/shared/integration/MoreRedIntegration (java.lang.ClassNotFoundException: dan200.computercraft.shared.integration.MoreRedIntegration) [13:11:37] [main/WARN]: @Mixin target dan200.computercraft.shared.integration.MoreRedIntegration was not found create_central_kitchen.mixins.json:common.computercraft.MoreRedIntegrationMixin [13:11:37] [main/WARN]: Error loading class: com/sammy/minersdelight/content/block/copper_pot/CopperPotBlockEntity (java.lang.ClassNotFoundException: com.sammy.minersdelight.content.block.copper_pot.CopperPotBlockEntity) [13:11:37] [main/WARN]: @Mixin target com.sammy.minersdelight.content.block.copper_pot.CopperPotBlockEntity was not found create_central_kitchen.mixins.json:common.minersdelight.CopperPotBlockEntityMixin [13:11:37] [main/WARN]: Error loading class: com/sammy/minersdelight/content/block/sticky_basket/StickyBasketBlockEntity (java.lang.ClassNotFoundException: com.sammy.minersdelight.content.block.sticky_basket.StickyBasketBlockEntity) [13:11:37] [main/WARN]: @Mixin target com.sammy.minersdelight.content.block.sticky_basket.StickyBasketBlockEntity was not found create_central_kitchen.mixins.json:common.minersdelight.StickyBasketBlockEntityAccessor [13:11:37] [main/WARN]: Error loading class: com/sammy/minersdelight/content/block/sticky_basket/StickyBasketBlockEntity (java.lang.ClassNotFoundException: com.sammy.minersdelight.content.block.sticky_basket.StickyBasketBlockEntity) [13:11:37] [main/WARN]: @Mixin target com.sammy.minersdelight.content.block.sticky_basket.StickyBasketBlockEntity was not found create_central_kitchen.mixins.json:common.minersdelight.StickyBasketBlockEntityMixin [13:11:37] [main/WARN]: Error loading class: net/orcinus/overweightfarming/blocks/CropFullBlock (java.lang.ClassNotFoundException: net.orcinus.overweightfarming.blocks.CropFullBlock) [13:11:37] [main/WARN]: @Mixin target net.orcinus.overweightfarming.blocks.CropFullBlock was not found create_central_kitchen.mixins.json:common.overweightfarming.CropFullBlockMixin [13:11:37] [main/ERROR]: valkyrienskies-common.mixins.json:feature.container_distance_check.MixinContainer: Interface mixin contains a non-public method! Found includeShipsInDistanceCheck(Lnet/minecraft/world/entity/player/Player;DDD)D in valkyrienskies-common.mixins.json:feature.container_distance_check.MixinContainer org.spongepowered.asm.mixin.transformer.throwables.InvalidInterfaceMixinException: Interface mixin contains a non-public method! Found includeShipsInDistanceCheck(Lnet/minecraft/world/entity/player/Player;DDD)D in valkyrienskies-common.mixins.json:feature.container_distance_check.MixinContainer     at org.spongepowered.asm.mixin.transformer.MixinPreProcessorInterface.prepareMethod(MixinPreProcessorInterface.java:65) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4]     at org.spongepowered.asm.mixin.transformer.MixinPreProcessorStandard.prepare(MixinPreProcessorStandard.java:187) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4]     at org.spongepowered.asm.mixin.transformer.MixinInfo$State.validate(MixinInfo.java:322) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4]     at org.spongepowered.asm.mixin.transformer.MixinInfo.validate(MixinInfo.java:913) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4]     at org.spongepowered.asm.mixin.transformer.MixinConfig.postInitialise(MixinConfig.java:801) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4]     at org.spongepowered.asm.mixin.transformer.MixinProcessor.prepareConfigs(MixinProcessor.java:567) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4]     at org.spongepowered.asm.mixin.transformer.MixinProcessor.select(MixinProcessor.java:462) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4]     at org.spongepowered.asm.mixin.transformer.MixinProcessor.checkSelect(MixinProcessor.java:438) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4]     at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:290) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4]     at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClass(MixinTransformer.java:250) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4]     at org.spongepowered.asm.service.modlauncher.MixinTransformationHandler.processClass(MixinTransformationHandler.java:131) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4]     at org.spongepowered.asm.launch.MixinLaunchPluginLegacy.processClass(MixinLaunchPluginLegacy.java:131) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4]     at cpw.mods.modlauncher.serviceapi.ILaunchPluginService.processClassWithFlags(ILaunchPluginService.java:156) ~[modlauncher-10.0.9.jar:10.0.9+10.0.9+main.dcd20f30]     at cpw.mods.modlauncher.LaunchPluginHandler.offerClassNodeToPlugins(LaunchPluginHandler.java:88) ~[modlauncher-10.0.9.jar:?]     at cpw.mods.modlauncher.ClassTransformer.transform(ClassTransformer.java:120) ~[modlauncher-10.0.9.jar:?]     at cpw.mods.modlauncher.TransformingClassLoader.maybeTransformClassBytes(TransformingClassLoader.java:50) ~[modlauncher-10.0.9.jar:?]     at cpw.mods.cl.ModuleClassLoader.readerToClass(ModuleClassLoader.java:113) ~[securejarhandler-2.1.10.jar:?]     at cpw.mods.cl.ModuleClassLoader.lambda$findClass$15(ModuleClassLoader.java:219) ~[securejarhandler-2.1.10.jar:?]     at cpw.mods.cl.ModuleClassLoader.loadFromModule(ModuleClassLoader.java:229) ~[securejarhandler-2.1.10.jar:?]     at cpw.mods.cl.ModuleClassLoader.findClass(ModuleClassLoader.java:219) ~[securejarhandler-2.1.10.jar:?]     at java.lang.ClassLoader.loadClass(ClassLoader.java:637) ~[?:?]     at java.lang.Class.forName(Class.java:545) ~[?:?]     at net.minecraftforge.fml.earlydisplay.DisplayWindow.lambda$updateModuleReads$14(DisplayWindow.java:601) ~[fmlearlydisplay-1.20.1-47.3.0.jar:1.0]     at java.util.Optional.map(Optional.java:260) ~[?:?]     at net.minecraftforge.fml.earlydisplay.DisplayWindow.updateModuleReads(DisplayWindow.java:601) ~[fmlearlydisplay-1.20.1-47.3.0.jar:1.0]     at net.minecraftforge.fml.loading.ImmediateWindowHandler.acceptGameLayer(ImmediateWindowHandler.java:71) ~[fmlloader-1.20.1-47.3.0.jar:1.0]     at net.minecraftforge.fml.loading.FMLLoader.beforeStart(FMLLoader.java:207) ~[fmlloader-1.20.1-47.3.0.jar:1.0]     at net.minecraftforge.fml.loading.targets.CommonLaunchHandler.launchService(CommonLaunchHandler.java:92) ~[fmlloader-1.20.1-47.3.0.jar:?]     at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:30) ~[modlauncher-10.0.9.jar:?]     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) ~[modlauncher-10.0.9.jar:?]     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) ~[modlauncher-10.0.9.jar:?]     at cpw.mods.modlauncher.Launcher.run(Launcher.java:108) ~[modlauncher-10.0.9.jar:?]     at cpw.mods.modlauncher.Launcher.main(Launcher.java:78) ~[modlauncher-10.0.9.jar:?]     at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) ~[modlauncher-10.0.9.jar:?]     at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) ~[modlauncher-10.0.9.jar:?]     at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:141) ~[bootstraplauncher-1.1.2.jar:?] [13:11:37] [main/INFO]: Initializing MixinExtras via com.llamalad7.mixinextras.service.MixinExtrasServiceImpl(version=0.4.1). [13:11:39] [pool-4-thread-1/INFO]: ModernFix reached bootstrap stage (11.29 s after launch) [13:11:39] [pool-4-thread-1/WARN]: @Final field delegatesByName:Ljava/util/Map; in modernfix-forge.mixins.json:perf.forge_registry_alloc.ForgeRegistryMixin should be final [13:11:39] [pool-4-thread-1/WARN]: @Final field delegatesByValue:Ljava/util/Map; in modernfix-forge.mixins.json:perf.forge_registry_alloc.ForgeRegistryMixin should be final [13:11:39] [pool-4-thread-1/INFO]: Injecting BlockStateBase cache population hook into getNeighborPathNodeType from com.abdelaziz.canary.mixin.ai.pathing.BlockStateBaseMixin [13:11:39] [pool-4-thread-1/INFO]: Injecting BlockStateBase cache population hook into getPathNodeType from com.abdelaziz.canary.mixin.ai.pathing.BlockStateBaseMixin [13:11:39] [pool-4-thread-1/WARN]: @Inject(@At("INVOKE")) Shift.BY=1 on crittersandcompanions.mixins.json:LivingEntityMixin::handler$cjk000$onDie exceeds the maximum allowed value: 0. Increase the value of maxShiftBy to suppress this warning. [13:11:40] [pool-4-thread-1/INFO]: Vanilla bootstrap took 1231 milliseconds [13:11:42] [pool-4-thread-1/WARN]: Static binding violation: PRIVATE @Overwrite method m_47505_ in modernfix-common.mixins.json:perf.remove_biome_temperature_cache.BiomeMixin cannot reduce visibiliy of PUBLIC target method, visibility will be upgraded. [13:11:42] [Render thread/WARN]: Error loading class: net/caffeinemc/mods/sodium/api/memory/MemoryIntrinsics (java.lang.ClassNotFoundException: net.caffeinemc.mods.sodium.api.memory.MemoryIntrinsics)  
    • It could be a mod conflict or world generation issue.
    • Start with removing controllable
    • Please read the FAQ and post logs as described there.
  • Topics

×
×
  • Create New...

Important Information

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