Skip to content

Inlined SBB definitions #1403

@Argmaster

Description

@Argmaster

Description

As requested in #1382 (comment)
Allow inlined SBB declarations, so it is not necessary to create SBB zon file when SBB has no children.

Syntax could be:

.{
	.blueprint = "cubyz:tree/oak/1/branch_3",
	.children = .{
		.crimson = .{
			.{.structure = "cubyz:tree/oak/1/leaf_1"},
			.{.structure = "cubyz:tree/oak/1/leaf_2"},
			.{.structure = "cubyz:tree/oak/1/leaf_3"},
		},
	},
}

Where cubyz:tree/oak/1/leaf_1 must map to existing blueprint asset.

Instead of:

.{
	.blueprint = "cubyz:tree/oak/1/branch_3",
	.children = .{
		.crimson = .{
			.{.structure = "cubyz:tree/oak/1/leaf_1"},
			.{.structure = "cubyz:tree/oak/1/leaf_2"},
			.{.structure = "cubyz:tree/oak/1/leaf_3"},
		},
	},
}

And assets/cubyz/sbb/tree/oak/1/leaf_1.zig.zon with:

.{
	.blueprint = "cubyz:tree/oak/1/leaf_1",
}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions