mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-01-10 17:30:29 +00:00
f10e401aea
- Add a new computercraft:turtle_overlay dynamic registry, which stores turtle overlays. Turtle overlays are just a model id and an (optional) boolean flag, which specifies whether this overlay is compatible with the elf/christmas model. - Change the computercraft:overlay component to accept a Holder<TurtleOverlay> (instead of just a model ID). This accepts both an overlay ID or an inline overlay object (e.g. you can do cc:turtle_normal[computercraft:overlay={model:"foo"}]. - Update turtle model and BE rendering code to render both the overlay and elf (if compatible). Fixes #1663. - Ideally we'd automatically load all models listed in the overlay registry. However, resource loading happens separately to datapacks, so we can't link the two. Instead, we add a new assets/computercraft/extra_models.json file that lists any additional models that should be loaded and baked. This file includes all built-in overlay models, but external resource packs and/or mods can easily extend it. |
||
---|---|---|
.. | ||
src | ||
build.gradle.kts |