Apply All
Applies multiple block entity modifiers sequentially.Type ID
Java Interface
dev.worldgen.lithostitched.worldgen.blockentitymodifier.ApplyAll:1
JSON Format
Fields
List of block entity modifiers to apply in order
Behavior
- Applies each modifier in the list sequentially
- Each modifier receives the NBT tag output from the previous modifier
- If any modifier returns
null, it is passed to the next modifier - Returns the final modified NBT tag after all modifiers have been applied
- Useful for combining multiple NBT modifications
Example: Initialize and Populate Chest
Apply Random
Randomly selects and applies one block entity modifier from a weighted list.Type ID
Java Interface
dev.worldgen.lithostitched.worldgen.blockentitymodifier.ApplyRandom:1
JSON Format
Fields
Weighted list of block entity modifiers
Behavior
- Randomly selects one modifier based on weights
- Applies only the selected modifier
- If no modifier is selected (empty list or zero total weight), returns the input tag unchanged
- Uses the provided
RandomSourcefor selection
Example: Random Loot Tables
Usage in Processing Rules
Block entity modifiers are used in structure processor processing rules:Combining Both Modifiers
Common Vanilla Modifiers
Lithostitched’s modifiers work alongside Minecraft’s built-in modifiers:minecraft:append_static- Adds static NBT dataminecraft:append_loot- Adds a loot tableminecraft:clear- Clears all NBT dataminecraft:passthrough- Returns the input unchanged
Registration
Block entity modifiers are registered inLithostitched.java:207-210:
