[Feature] Allow graceful and dynamic handling of block IDs. #475
Labels
Status: Backlog
Issue/PR is not currently being worked on.
Type: Compatibility
Issue with compatibility
Type: Enhancement
A request for a new feature or enhancement to be added.
Pre-Request Checklist
ones, and found none.
should be implemented by a pack or addon.
Feature Description
Allow Terra config modpacks to fallback to a valid block when an invalid block is referenced, and/or allow config packs to reference blocks conditionally based on their validity.
What Problem Does This Solve?
Currently, a terra config pack must presume a select set of blocks. If a config is intending to represent a wide breadth of mods, they must either provide a plethora of config variants, or require a user to have the full breadth of mods installed, or worse have the user modify the pack themselves. Otherwise a crash occurs.
A Solution You'd Like
Terra should provide a fallback block parameter for config developers to define a block onto which any failed references can fall back to. Terra should default this to something sensible otherwise (maybe based on vanilla biome tags?)
Additionally, it'd be nice to allow config developers to conditionally refer to blocks within a new BLOCK: context where a fallback and a desired block can both be declared. An example:
The given example could also allow a fallback cascade. IE it fails from top to bottom as a list.
Alternative Solutions
The text was updated successfully, but these errors were encountered: