Block replacements
In Catharsis, we allow for retexturing and remodelling of blocks. This allows you to change the look of the same block in different regions of the game.
Definition
Definitions are placed in a block replacement definition file located at assets/<block namespace>/catharsis/block_replacements/<block id>.json
The definition follows the following scheme
A block replacement object
- type: One of the block replacement definition types defined below
- Additional fields depending on the value of type, see the respective block replacement type documentation for more details.
Supported Types
Redirect (catharsis:redirect)
A simple redirect, replacing one block state with another one.
Root redirect object
- type:
catharsis:redirect - virtual_state: A virtual block state reference
Random (catharsis:random)
Allows for random block replacements.
The random is seeded based on the blocks position, meaning, while it's random it is consistent for each block. Resource pack ordering may affect the result!
Root random object
- type:
catharsis:random - min: The min value of the random
- min: The max value of the random
- threshold: The min amount to reach to pass the check
- definition: The block replacement definition to use if the check passes.
- fallback: (Optional) The block replacement definition to use if the check fails.
Per Area (catharsis:per_area)
Allows for having a different block per area.
Root per area object
- type:
catharsis:per_area - entries: An object of area to block replacement definition.
- <area id>: The area to test