Jump to content

Recommended Posts

Posted

Hi!

 

I created some spikes with a Tile Entity to render them with a special Model, but the Block is just rendered as a transparent cube. What have I done wrong?

 

source:

 

  Reveal hidden contents

 

 

I hope anybody can help me with this problem!

 

(If I missed some code you need to understand, please write!)

Posted

What exactly is this suppose to do ?

 

GL11.glPushMatrix();
GL11.glRotatef(meta * (-90), 0.0F, 0.0F, 1.0F);
GL11.glPopMatrix();

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

Posted

Hi

 

I don't know the answer but I'd suggest it should be pretty easy to figure out with a few well-placed breakpoints-

eg is the renderer called at all?  if not why not?

is it rendering at the correct x,y,z location? what happens if you replace your render with a test object that you know renders properly?

 

-TGG

 

 

 

Posted
  On 10/31/2013 at 11:27 PM, TheGreyGhost said:

Hi

 

I don't know the answer but I'd suggest it should be pretty easy to figure out with a few well-placed breakpoints-

eg is the renderer called at all?  if not why not?

is it rendering at the correct x,y,z location? what happens if you replace your render with a test object that you know renders properly?

 

-TGG

I've added "System.out.println("CALLED");" at dome locations. (See code in the first post)

The Renderer isn't called at all...

Bit I think, I have initialized everything correctly!

Posted

In the ClientProxy class, try adding a String (can be anything, as long as it's unique) between the "TileEntitySpikes.class" and "new RenderBlockSpikes()". It solved it for me.

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Posted

Hi

 

I'd suggest:

 

Is the ClientProxy.registerRenderers() called?

 

If so, consider a breakpoint in TileEntityRenderer.renderTileEntityAt() at this line-

        TileEntitySpecialRenderer tileentityspecialrenderer = this.getSpecialRendererForEntity(par1TileEntity);

then trace into getSpecialRendererForEntity and see why your par1TileEntity doesn't match any of the entries in specialRendererMap

 

-TGG

Posted

OK, I've now found my mistake:

I have forgotten this lines of code:

@Override
public boolean hasTileEntity(int meta) {
	return true;
}

Now it renders correctly, but I cant destroy the Block anymore. It shows no Bounding Box. What is now wrong?

 

EDIT Sorry, my mistake! The Block is rendered one Block too high and I didn't see the box. All's OK now. Thank you!

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



×
×
  • Create New...

Important Information

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