Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/quat1024/packages
Worse Barrels 2: Electric Boogaloo. Now for Fabric. Now also for not Fabric?
https://github.com/quat1024/packages
epic
Last synced: 30 days ago
JSON representation
Worse Barrels 2: Electric Boogaloo. Now for Fabric. Now also for not Fabric?
- Host: GitHub
- URL: https://github.com/quat1024/packages
- Owner: quat1024
- Created: 2020-04-14T05:19:32.000Z (over 4 years ago)
- Default Branch: trunk
- Last Pushed: 2023-08-10T01:47:50.000Z (over 1 year ago)
- Last Synced: 2023-08-10T02:00:27.772Z (over 1 year ago)
- Topics: epic
- Language: Java
- Homepage:
- Size: 1.22 MB
- Stars: 3
- Watchers: 2
- Forks: 5
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Packages
========Worse Barrels successor for ~~Fabric~~ Fabric and also Forge ~~1.15.2~~ ~~1.16.4~~ ~~1.17.0~~ ~~1.17.1~~ ~~1.18~~ ~~1.18.2~~ ~~1.19.2~~ ~~1.19.4~~ 1.20.1.
Package Crafter model by [Kat](https://kat.blue).
# Quick note about model handling
The xplat set contains `packages:block/package` and `packages:block/package_maker`. These models use the "special" textures `packages:package_special/frame` and `packages:package_special/inner` to mark which quads should be retextured, and as such these models are not expected to be displayed as-is to players. The xplat set also points the Package and Package Crafter's blockstates at the models `packages:special/package` and `packages:special/package_maker` (with `special` instead of `block`) respectively. Implemetations of the `special` model load the corresponding `block` model and perform the retexturing at runtime.
On Fabric, there is a `ModelLoadingRegistry` API. Resource providers hook requests for specific files, and variant providers hook requests for specific `ModelResourceLocation`s. Requests for `special/package` and `item/package#inventory` are diverted to the appropriate dynamic model.
On Forge, there is a `RegisterGeometryLoaders` API. I register a geometry loader for the package/packagemaker models and ship model JSONs with the `loader` field set, which causes Forge to load the appropriate dynamic model.
# License
LGPL-3.0-or-later