chunky
chunky copied to clipboard
Add support for custom block models
This PR adds support for custom block models. It can (and currently is hard-coded to do so) also replace Chunky's built-in models by models generated from the minecraft jar file.

Caveats:
- [x] Does not support tint colors (yet, we'll have to change the way Chunky handles tint colors)
- [x] Redstone and some other blocks are not rendered
- [x] Redstone tinting isn't supported yet
- [x] Water is not yet rendered and might show question marks
- [x] Lava might be broken
- [ ] Randomized block variants always use the first block variant
- [ ] Doesn't support resource pack directories (unzipped resource packs) yet
- [x] Azalea leaves somehow are not transparent
- [ ] Entity blocks don't show up due to
entityLoadingPreferencescausing them not to load by default - [ ] You need to manually re-apply the resourcepacks once after launch (and then reload the world to update the map view)
- [ ] Replace
TintedQuadand use thetintsarray instead (as in hard-coded models) - [ ]
JsonModelandMultipartJsonModelshouldn't beBlocks - [ ] Fix eg.
minecraft:pitcher_plant
To get the latest build of this PR, follow this guide: https://github.com/leMaik/chunky-pr-as-update-site Due to a bug, you currently have to open the resource pack dialog and apply the resourcepacks after launching this Chunky build. Then it will load the models. Reload the world if you only see purple blocks.
Fixes #88 and fixes #426.
Outside of models larger than a block and cube-like models not rendering:

It does appear that everything else shows up to some extent. Not so much the right model, but the vanilla ones.
Otherwise, loading the whole of Greenfield indicates that there is an issue that slows down the loading of the BVH and spams the debug console with a lot of stuff.
What's the progress?
@Zhou-Shilin Needs a rebase and is not ready yet. There is a checklist above.