Posted October 10, 20178 yr So, I saw this issue: https://github.com/MinecraftForge/MinecraftForge/issues/2851 ...and I'm guessing there's no direct way to allow tinting (via IBlockColor) of an OBJ model (either the entire model or selected faces of the model) at this point. That said, what would be the recommended way to achieve this indirectly? The thoughts I had: Add a TESR to the block; it's a tile entity anyway Add one or more JSON submodels to the block to allow tinting of certain faces of the model Do something with the IBakedModel to replace the appropriate quads with the desired colour, based on some extended block property Recommendations? (1) would be simple enough but worst for performance, I assume. (2) is also easy, but limited to horizontal/vertical faces of the model (or it'll look bad). (3) if possible might be best, but can I intercept the baked model and modify certain quads? That's something I've been having difficulty getting my head round...
November 2, 20178 yr Author Been doing some work on this: see https://github.com/MinecraftForge/MinecraftForge/issues/2851 for detailed description and link to sample implementation. In short: I took option 3. No need for extended properties, though; this just uses the normal IBlockColor tinting mechanism, allowing tinting to be controlled via the "custom" property in the blockstates file. Edited November 2, 20178 yr by desht
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.