Carpenter's Blocks Not Rendered in Opis Mapwriter
Mochnant opened this issue ยท 10 comments
I've noticed that carpenter's blocks are not rendered in Opis MapWriter. I created an issue with MapWriter, but thought I would post it here as well in case there is anything that can be done from this side.
If it's anything similar to mini maps not showing blocks as a correct color, the best help would come from the map writer mod author, or at least give me an idea of where to look to correct this if it can be done on my side.
I'm sorry to have so little to go on at the moment. I tried adding an override to the Mapwriter color via block id, to no effect. I'll see if I can get anything out of the Mapwriter folks.
A commenter mentioned in the MapWriter ticket that it is related to Carpenter's Blocks being rendered as tile entities (like chests), which MapWriter does not support.
Do you know of any mapping mod that includes a minimap that does support carpenter's blocks?
Interesting. None of my blocks (apart from tile) use a tile entity renderer, and there are safe ways to grab block textures anyways, which would render the blocks as empty frames instead of completely invisible.
That's good to know, and thank you for that tidbit. I'll add that to the MapWriter issue, but considering the last commit was in March 2014 I'm not too hopeful a fix will be forthcoming.
I was able to make a single color for all blocks based on ID (disproving the tile entity comment), so I'll keep working on it with them. Thanks!
the problem is that mapwriter pulls the icons from the blocks with getIcon(). it seems that carpenter blocks returns an invisable icon. and thus mapwriter doesnt save a color map for that block.
@Vectron Good to know. Is this getIcon() function something Carpenter's Blocks might be interested in supporting?
It's probably calling getIcon(int side, int metadata), since that is actually what returns the invisible icon. The only way to get the icon is to pass in metadata 16. The out-of-range value is simply to tell my code to replace it with the non-invisible icon. Sprint particles are hard-coded to this method so I have to return an invisible icon by default.
i already found the passing of meta 16 to get a icon. this will make carpenter blocks render brown on the minimap. i also looked into getting the real texture but this is imposible to do with how mapwriter is structured. and the fact that cover block id is in a tile entity wich mapwriter cant access at map generation (threading problem). i dont think either side can realy do something at the time to support carpenter blocks better then rendering the brown texture on the minimap.