Cubyz/assets/cubyz/sbb/tree/oak/forest_generator.zig.zon
Krzysztof Wiśniewski 8f9ebe55fa
Allow direct use of blueprints as SBBs (#1500)
## Descriptions

This pull request adds inline SBBs feature which allows blueprints to be
used directly (without SBB zon file) as child in other SBB files.
Blueprint used this way must not any child blocks on it's own.
To ensure that the feature works correctly some of the now redundant SBB
zon files were removed.
Current implementation generates SBB at runtime for each of the
blueprints that has 0 child blocks and doesn't have an SBB with same ID.
In the future the implementation could be changed to create SBBs on
demand, to avoid wasting memory on blueprints which are not used or use
SBB with different name, that is not critical tho (really small gains)
and requires #1499

## Links

Resolves: #1403

---------

Co-authored-by: IntegratedQuantum <43880493+IntegratedQuantum@users.noreply.github.com>
2025-06-01 12:56:54 +02:00

11 lines
278 B
Zig

.{
.blueprint = "cubyz:tree/oak/forest_generator",
.children = .{
.crimson = .{
.{.structure = "cubyz:tree/oak/1/base/1", .chance = 0.5},
.{.structure = "cubyz:tree/oak/1/base/2", .chance = 0.3},
.{.structure = "cubyz:tree/oak/1/base/3", .chance = 0.2},
},
},
}