What is a Decorator?
Decorators are lightweight placement systems for blocks that:- Place on the surface of terrain
- Can stack vertically (grass, kelp, cactus)
- Have simple placement rules
- Generate very efficiently
Basic Decorator
Configuration Fields
Essential Properties
| Field | Type | Default | Description |
|---|---|---|---|
chance | Double | 0.1 | Placement probability per block (0-1, required) |
palette | BlockData[] | - | Blocks to place (required) |
stackMin | Integer | 1 | Minimum stack height |
stackMax | Integer | 1 | Maximum stack height |
Block Palette
Simple palette:Stacking
For tall plants like sugar cane, cactus, kelp:stackMin: Minimum blocks tallstackMax: Maximum blocks tallheightVariance: How height varies (noise style)
Top Palette
Different blocks at the top of stacks:topPalette: Blocks for the top sectiontopThreshold: When to switch (0.8 = top 20%)
Distribution Styles
How decorators are scattered:style: Where to place (STATIC = random, SIMPLEX/etc = patches)variance: How to pick from palette
STATIC: Completely random (vanilla-like)SIMPLEX: Smooth, natural patchesCELLULAR_IRIS_DOUBLE: Cell-based clustersGLOB: Blobby patches
Placement Conditions
Slope restrictions:Decoration Parts
For underwater/cave decoration:NONE: Normal surface decorationSEA_SURFACE: Top of underwater areasSEA_FLOOR: Ocean floorSHORE_LINE: Beach/shore areasCAVE_CEILING: Cave roofsCAVE_FLOOR: Cave floors
Example Decorators
Grassland Coverage
Flower Patches
Sugar Cane
Cactus
Kelp (Underwater)
Sea Pickles
Mushrooms (Cave Floor)
Stalactites (Cave Ceiling)
Dead Bushes
Bamboo Forest
Lily Pads
Advanced Techniques
Layered Decoration
Combine multiple decorators for depth:Biome-Specific Decoration
Tailor decorators to biome theme: Forest floor:Seasonal Variation
Use block states for variety:Performance Tips
Optimize Chance Values
- Use lower chances for rare decorations
- Dense decoration (high chance) can impact generation speed
- Balance aesthetics with performance
Use Appropriate Styles
STATICis fastest- Complex noise styles add computation
- Use simpler styles for very common decorators
Stack Wisely
- Large
stackMaxvalues can slow generation - Use
absoluteMaxStackto cap extreme cases - Consider
scaleStackfor caves
FAQ
FAQ
What's the difference between decorators and objects?
What's the difference between decorators and objects?
Decorators are for small, surface-level blocks (grass, flowers). Objects are for 3D structures (trees, buildings). Use decorators for simple, numerous items and objects for complex structures.
Why isn't my decorator placing?
Why isn't my decorator placing?
Check:
chanceis reasonable (try 1.0 for testing)- Surface blocks match
whitelistif defined - Not blocked by
blacklist slopeConditionallows placementpartOfmatches the area type
Can decorators place underwater?
Can decorators place underwater?
Yes! Use
partOf: SEA_SURFACE or SEA_FLOOR for underwater decoration.How do I make flower patches instead of scattered flowers?
How do I make flower patches instead of scattered flowers?
Use a noise-based
style like CELLULAR_IRIS_DOUBLE or GLOB with appropriate zoom:What does zoom do in decoration styles?
What does zoom do in decoration styles?
Higher zoom = larger, less frequent patches. Lower zoom = smaller, more frequent patches. Experiment to find the right scale for your biome.
Next Steps
- Combine with Objects for complete biomes
- Learn about Biomes to use decorators effectively
- Explore Loot Tables for interactive decorations