minecraft-render icon indicating copy to clipboard operation
minecraft-render copied to clipboard

Enable rendering of modded blocks

Open exa-byte opened this issue 3 years ago • 2 comments

Currently when using a mod jar file no blocks are found to render. Maybe there is a way to render blocks from modded jars?

exa-byte avatar May 15 '22 09:05 exa-byte

Might be possible? Minecraft has a "data reports" system to export things such as blockstates, command tree structure (how params are laid out / what type) and models.

Can't be guaranteed to work with all modded blocks though as some will use their own rendering subsystem.

tehbeard avatar Sep 10 '22 09:09 tehbeard

I'm working on rework of this project for my own use.

Current focus has been separating data loading and rendering so that the logic to load from multiple sources (jars, directories, in memory etc) is separate from the logic for asking for a resource (e.g. translate a getModel("create:block/cogwheel") to looking for file assets/create/models/block/cogwheel.json, and then passing that to the loader which could just be a jar, or a chain of them w/ priority).

create-cogwheel

The rotation of the whole block is wrong due to not having x axis rotation from the blockstate come through (wasn't needed for vanilla blocks, I've only setup for the Y axis to fix rotation of blocks like glazed terracotta, furnaces etc), and something's going funky with the cross axis teeth which are at 45° angle that will probably be a pain to fix

But in principle, it's definitely possible.

tehbeard avatar Sep 17 '22 16:09 tehbeard