Better Runtime Resource Pack (BRRP)
A library mod to generated resource at runtime. Based on and made enhancements on ARRP mod.
Обновлён 19 августа 2024 г. · опубликован 26 апреля 2022 г.
BRRP (Better Runtime Resource Pack), is a library mod used for generate resources at runtime, which is a branch of ARRP (Advanced Runtime Resource Pack) mod.
Welcome to join Tencent QQ group 587928350 or KOOK (KaiHeiLa) channel invitation code KlFS0n to experience the latest update of this mod.
Notice: Since version 1.0.0, the ID of the mod was changed from better_runtime_resource_pack to brrp_v1, and modified the code without compatibility for older versions, but can co-exist with older versions. Unless needed, please do not used old version.
What is a runtime resource pack?
Runtime resource pack (RRP) refers to asset and data files generated when Minecraft is running, in avoidance of some repetitive works. For mods with masses of similar blocks and items, runtime resource pack helps to significantly reduce the size of mod file.
For instance, the loot table of most blocks can be described as "drop the block itself". Some blocks drop only when with Silk Touch. For slab blocks, when double slab block is broken, two blocks are dropped instead of one. In loot tables, each block requires a loot table JSON file; creating them is quite time-consuming. Moreover, almost each block requires a "block states", block model and item model (block models may be more than one). If loot tables and recipes (if it exists) are counted, each block requires at least 5 JSONs to achieve full features. In contrast, runtime resource packs make them generated inside the game instance, instead of stored in the mod JAR file.
Runtime resource packs have no difference than regular resource packs with regard to features. Normal resource packs (including the mod's builtin resource and manually-installed resource-packs or data-packs) can override contents of runtime resource packs, or have relations to runtime resource packs. A typical example is, block models are defined in runtime resource packs, and their texture files are stored in mod files as usual (as it's not appropriate to generate texture files in runtime).
Compared to traditional resource packs, runtime resource packs reduce I/Os, but adds the process of object serialization, which is a drawback of runtime resource pack. When resource packs are generated, objects are converted to byte forms (usually JSON). This process is called serialization. When game instance reads these resource packs, these byte-form contents are analysed to generate objects in game. This process is called deserialization. In traditional resource packs, all resources are serialized, and the game instance needs only to deserialize them when loading resources. However, runtime resource packs require the process of both serialization and deserialization.
To summarize again the process traditional resource packs and runtime resource packs are read in game:
- Traditional File → (read as) byte form → (deserialized as) in-game objects
- Runtime Code → ARRP objects → (serialized as) byte form → (deserialized as) in-game objects
It's been in my plan to make it possible to directly use objects generated in game in future versions, without the process of deserialization and serialization. This is already possible in theory, but to be in the form of resource pack and allow overriding by traditional resource packs and data packs, some further research is required.
About this mod
This mod (BRRP) is a branch of ARRP. Since 1.0.0, this mod has become independent of ARRP, no longer provides features of ARRP, but can co-exist with ARRP mod.
This mod is open-source and published under the MPLv2 license.
More details are available on GitHub.
Версии
| Версия | Канал | Игра | Загрузчики | Дата | Скачать |
|---|---|---|---|---|---|
| 1.0.4-mc1.20.6-fabric | Релиз | 1.20.5, 1.20.6 | fabric | 19 августа 2024 г. | .jar (195 КБ) |
| 1.0.4-mc1.21.1-fabric | Релиз | 1.21, 1.21.1 | fabric | 19 августа 2024 г. | .jar (196 КБ) |
| 1.0.3-mc1.21-fabric | Релиз | 1.21, 1.21.1 | fabric | 16 июня 2024 г. | .jar (190 КБ) |
| 1.0.3-mc1.20.6-fabric | Релиз | 1.20.5, 1.20.6 | fabric | 11 мая 2024 г. | .jar (190 КБ) |
| 1.0.3-beta.1-mc1.20.5-fabric | Альфа | 1.20.5 | fabric | 26 апреля 2024 г. | .jar (190 КБ) |
| 1.0.3-alpha.1-mc24w10a-fabric | Альфа | 24w10a | fabric | 11 марта 2024 г. | .jar (188 КБ) |
| 1.0.3-mc1.20.4-fabric | Релиз | 1.20.3, 1.20.4 | fabric | 13 декабря 2023 г. | .jar (187 КБ) |
| 1.0.3-beta.3-mc1.20.4-fabric | Бета | 1.20.3, 1.20.4 | fabric | 8 декабря 2023 г. | .jar (187 КБ) |
| 1.0.2-mc1.20.2-fabric | Релиз | 1.20.2 | fabric | 9 октября 2023 г. | .jar (187 КБ) |
| 1.0.1-mc1.20.2 | Релиз | 1.20.2 | fabric | 22 сентября 2023 г. | .jar (186 КБ) |
| 1.0.1-beta.1-mc1.20.2-pre4 | Бета | 1.20.2-pre4 | fabric | 14 сентября 2023 г. | .jar (185 КБ) |
| 1.0.1-mc1.18.2-forge | Релиз | 1.18.2 | forge | 21 июня 2023 г. | .jar (160 КБ) |
| 1.0.1-mc1.18.2-fabric | Релиз | 1.18.2 | fabric | 21 июня 2023 г. | .jar (181 КБ) |
| 1.0.1-mc1.19.2-forge | Релиз | 1.19.2 | forge | 21 июня 2023 г. | .jar (164 КБ) |
| 1.0.1-mc1.19.2-fabric | Релиз | 1.19.2 | fabric | 21 июня 2023 г. | .jar (182 КБ) |
Показаны последние 15 из 93 версий. Все версии — на Modrinth.
Ченджлог
1.0.4-mc1.20.6-fabricРелиз1.20.5, 1.20.6 · 19 августа 2024 г.
- Fixed the conflict with some mods that modify data driven contents.
- Optimized the implementation of loot table generation.
1.0.4-mc1.21.1-fabricРелиз1.21, 1.21.1 · 19 августа 2024 г.
- Fixed the conflict with some mods that modify data driven contents.
- Optimized the implementation of loot table generation.
1.0.3-mc1.21-fabricРелиз1.21, 1.21.1 · 16 июня 2024 г.
- 利用 MixinExtras,优化一些 mixin
1.0.3-mc1.20.6-fabricРелиз1.20.5, 1.20.6 · 11 мая 2024 г.
- Fit into 1.20.5/6.
1.0.3-beta.1-mc1.20.5-fabricАльфа1.20.5 · 26 апреля 2024 г.
- 利用 MixinExtras,优化一些 mixin
1.0.3-beta.3-mc1.20.4-fabricБета1.20.3, 1.20.4 · 8 декабря 2023 г.
- Adapted to 1.20.4
1.0.2-mc1.20.2-fabricРелиз1.20.2 · 9 октября 2023 г.
- Fixed the issue that the mod cannot launch under non-development environment
1.0.1-mc1.20.2Релиз1.20.2 · 22 сентября 2023 г.
For 1.20.2 snapshot versions
Полная история изменений — на Modrinth.
Комментарии
Загружаем…