I need it so nothing will generate inside of my structure what I mean when I say this is when my structure is generated it will have for example trees spawned into it but that is not what I want, I have tried structure voids replacing air but that does not help so please do stuff into the code to prevent stuff like this generating inside of my structure ruining it
Assistant
To prevent blocks like trees from generating inside your structure, ensure the feature_restriction is properly configured across all relevant structure files. Here's how to adjust your setup:
Step-by-Step Solution:
Set feature_restriction in All Structure JSONs:
Add "feature_restriction": "no_features" to every structure JSON involved in your jigsaw setup (the main jigsaw, tent_1, tent_2, hunter_campsite, etc.).
Example for tent_1.json:
{
"format_version": "1.16.100",
"minecraft:structure": {
"description": {
"identifier": "bdh:tent_1",
"feature_restriction": "no_features", // Add this line
// ... rest of the structure definition
}
}
}
Repeat this for tent_2.json, hunter_campsite.json, and any other referenced structures.
Increase max_distance_from_center:
In your main jigsaw JSON, increase max_distance_from_center to ensure it covers the entire structure:
{
"type": "minecraft:jigsaw",
"start_pool": "bdh:tent/start_pool",
"size": 2,
"max_distance_from_center": 120, // Increased from 80
// ... other settings
}
Verify Structure Bounds:
Ensure the structure's bounding box (determined by max_distance_from_center and piece placement) fully encloses all generated elements. Test with larger values if needed.
Why This Works:
feature_restriction: "no_features" tells Minecraft not to generate terrain features (trees, ores, etc.) inside the structure's bounding box.
Consistent Application: Each referenced structure must have this setting to ensure the restriction applies to all parts of the complex.
Bounding Box Coverage: A larger max_distance_from_center ensures the entire generated structure is within the restricted area.
If issues persist, check chunk generation order or use external tools to debug the structure's bounding box.