Jump to content

Recommended Posts

Posted

Hello all. I've been trying to create a custom rendered block but it just doesn't want to work. For some reason it's checking in minecraft and not in my model package...

 

The error

 

  Reveal hidden contents

 

 

This is everything in my main mod class that is related to rendering. The rendering happens in the PreInitialization.

 

  Reveal hidden contents

 

 

My block class

 

  Reveal hidden contents

 

 

My block renderer

 

  Reveal hidden contents

 

 

My item renderer

 

  Reveal hidden contents

 

 

My model

 

  Reveal hidden contents

 

 

Client proxy

 

  Reveal hidden contents

 

Posted

I'm not sure. However your BindTexture looks a little bit messed up in the BlockRendering class. It does require the "filename.png" in that case. So for example, it would be

 

this.bindTexture(new ResourceLocation("modid", "path/to/file.png"));

Posted

With the error thats being thrown its a pretty simple fix, in your main class your .setBlockTextureName is blank.. So the error is giving a blank png, and its going to the minecraft textures. To fix this in your main mod class you should have a modid and this is how your block init should look:

blockAstralLensBlock = new AstralLens(Material.iron).setBlockName("arcaneLens").setBlockTextureName(YourModClass.modid + ":" + "nameOfBlock");

 

This is basic minecraft forge modding, if your having trouble with this simple of an error, I wouldn't post here before checking tons of tutorials.

Posted

Sorry for the late reply. I wasn't able to get on the internet for a couple of days.

 

Now it's actually checking in my model package... That was a derp on my part.

But it still can't load the texture.

 

Basically, it's rendering as a normal block and my model at the same time but without a texture.

Could it be because one of the parts of my model is rotated or outside of the block space?

 

 

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.