-
Dynamic block rendering?
Wow. I see that I really should complete my rendering library . It's work in progress but you can use it (as long as you render only cuboids). https://github.com/skore13/renderLib
-
How do I use the renderWorldBlock method?
I was just doing this. https://github.com/skore13/renderLib It's my work in progress library that is supposed to make it easier to make custom renderers. You might also want look into .obj loading. Example mod using this is Equivalent Exchange (and I think that pahimar is creator of obj loading feature of forge) https://github.com/pahimar/Equivalent-Exchange-3
-
How would I set my blocks metadata depending on the players direction?
Here is wiki I created: https://github.com/skore13/renderLib/wiki Now I'm working on rotation. But for your roads it's irrelevant. Also if you are missing anything rendering-related please tell me Road signs: It's gonna be hard to create round signs... But I've idea (from vanilla code for rendering item in player's hand) Also you have to override hitboxes for your road blocks but that's not as hard as custom renderers and I also want it in my library.
-
rendering Model in renderWorldBlock of ISimpleBlockRenderingHandler
Bugs fixed now!
-
[SOLVED] Custom block renderer problem
Fixed block not showing in chunk section. To fix it I had to return true in renderWorldBlock method. That means that my library is fine. You can just go ahead and use it. If you use it in your mod please write a line about me. Also please star it on github if you are using it. And send me link to your mod. I just want to see if it's usefull. Changelog: https://github.com/skore13/renderLib/commits/master I'm going to add rotation and maybe other shapes so it is going to be more usefull in future.
-
How would I set my blocks metadata depending on the players direction?
There is way to avoid TileEntities in custom renderes. I've coded a library that does. I have example code for it too. But it still have one bug: It won't render if there is no full block in chunk section which shouldn't be issue for you since it's road block. Take a look in here: https://github.com/skore13/renderLib
-
[SOLVED] Custom block renderer problem
I fixed two bugs but 1 still remains. It's that invisible block thing. I fixed brightness and and color bugs. It's not on github yet because it's little messy.
-
rendering Model in renderWorldBlock of ISimpleBlockRenderingHandler
Checkout my code. It's library with example usage. You can use it (it's unfinished but designed as future-compatible) or just use my code. Important class is (which you can use on its own): cz.skore13.renderLib.renderHelper Also note that there are 2 minor bugs that I'm working on: http://www.minecraftforge.net/forum/index.php/topic,7943.0.html PS: I know that this post is 1 month old but it could be still useful. If not nothing happened EDIT: link to github repository: https://github.com/skore13/renderLib
-
[SOLVED] Custom block renderer problem
I made something I can call library. I was about to release it as help for other because it took me a while to make. But when I was creating example mod I run into 2 problems: 1) When custom rendered block is alone in chunk section (you know, that 16*16*16 section of chunk introduced with anvil file format) it's not rendering at all 2) When grass is rendered before it it takes green tint. I guess that it's because of something that every single block in vanila minecraft does. Something that changes opacity, color and other properties. But I wasn't able to spot that in vanila code. (and I was reading it really carefuly since my library is derived from it) Some kind of flag or something like that. Do you know, what is it? Tessellator or opengl method? Thank you very much for your help. Github repository here: https://github.com/skore13/renderLib
-
Language Registry applies last use to all
If you want to get unlocalized name without "tile." prefix use getUnlocalizedName2() instead of getUnlocalizedName(). But as mnn suggested use LangRegistry for shown name and unlocalized name as internal reference. (I use it in custom renderers so I don't have to keep reference to ID.)
-
Language Registry applies last use to all
If you want to get unlocalized name without "tile." prefix use getUnlocalizedName2() instead of getUnlocalizedName(). But as mnn suggested use LangRegistry for shown name and unlocalized name as internal reference. (I use it in custom renderers so I don't have to keep reference to ID.)
-
Language Registry applies last use to all
Please post more code (@mod class, Block classes and any non-vanila superclasses). I'll try to troubleshoot that.
-
Language Registry applies last use to all
Please post more code (@mod class, Block classes and any non-vanila superclasses). I'll try to troubleshoot that.
IPS spam blocked by CleanTalk.