Add abillity for addons to create custom block-renderers in some way
TBlueF opened this issue · 3 comments
Goal:
Make it possible for addons to add support for special blocks form mods, e.g. copycat blocks or custom tile-entities
@dawgermany I haven't made any documentation for it yet, i was hoping to create an example addon but didn't get around to do it yet.
Basically when making an addon you can now depend on bluemap-core and register an new BlockRendererType and then point the block-model of your custom block to your custom renderer the same way bluemap does it e.g. for water
Or alternatively implement the isFallbackFor method to use your custom renderer dynamically for certain blockstates..
The custom renderer itself is very low-level (you have control over every single vertex), but you can always copy, extend, use or delegate to the default block-renderer.
If someone wants to try this and has some questions i am always available on our discord for questions and will try to explain anything that comes up around this :)