BlueMap

BlueMap

85.1k Downloads

Add abillity for addons to create custom block-renderers in some way

TBlueF opened this issue · 3 comments

commented

Goal:
Make it possible for addons to add support for special blocks form mods, e.g. copycat blocks or custom tile-entities

commented

Added in v5.5

commented

@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 :)

commented

Is there some doc already? nice feature - hope it will not only be able to support chisel but also Minecolonies(or rather the dependency structurize)