Jump to content

[SOLVED] SmartblockModel weird behaviour


Recommended Posts


since the subject completely changed from my first thread (http://www.minecraftforge.net/forum/index.php/topic,31184.0.html), I decided to make a new one.


I followed the SmartblcokModel example from TheGreyGhost (https://github.com/TheGreyGhost/MinecraftByExample/tree/master/src/main/java/minecraftbyexample/mbe05_block_smartblockmodel2) but at first, I couldn't get it to work. I had fixed all error messages, but my block was still missing the texture; since I had no error messages anymore, I was helpless.

The next day, I just started up eclipse, and added a console print somewhere, to find errors, and when I started up the game, my texture was there! I don't know why, but it suddenly worked.

Problem is now, I have 8 model files, and a different one should load depending on where you click. However, it always loads the same one. Worse, it loads it from somewhere I don't know, because I even removed all the model files from my resources folder, but in the game the texture still loads. How is that possible?


This probably explains why it wasn't working yesterday, and now, without a change, it does. Is there something that has to be refreshed after changing model files, before starting up the game?

Link to comment
Share on other sites

You probably had to refresh your project in Eclipse to make Eclipse aware of the changes and actually make MC aware not to load the assets.

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.



Link to comment
Share on other sites

Thanks, that was it! I didn't know you had to do this... now I've probably wasted hours and hours while it was working the whole time :P


Another quick question, what are the differences between: (in the Block class)







And maybe other similar methods? What I need is a method to set the blocks hitbox, but depending on its state, which is an extendedState.


Thanks in advance!


Link to comment
Share on other sites

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.

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.

  • Create New...

Important Information

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