Cubyz icon indicating copy to clipboard operation
Cubyz copied to clipboard

[SBB] Add `/sbb` command

Open Argmaster opened this issue 4 months ago • 1 comments

/sbb command would allow player to save a blueprint and structure building block at once. Additionally it would automatically read the configuration based on #1580. Interface should be similar to /blueprint command, allowing to save, delete and list available SBBs. Additionally, it should offer you place subcommand which would allow you to instantly place selected SBB in the world. SBB would operate on world edit clipboard, so paste can be used to place the SBB after loading. The difference between /sbb place and /paste is that first one will also resolve all the children and basically will place the structure same way world generation would, while second one just places the blocks as-is.

  • /sbb save <id> <--no-inline> <--world> - Create SBB and blueprint based on clipboard. --no-inline can be used to generate sbb zon file even if there was no child configuration set in origin block. --world can be used to write to world assets instead of game assets.
  • /sbb delete <id> - deletes existing SBB.
  • /sbb list - List IDs of available SBBs.
  • /sbb load <id> - Loads blueprint associated with the SBB.
  • sbb place <id> <x> <y> <z> <--seed <seed>> - Place SBB in the world, resolving all its children. Optionally accepts x y z coordinates, they will be used to place origin block of the structure. Optionally accepts --seed <seed> parameter which sets seed used to sample child lists.

Related to: #1341

Argmaster avatar Jun 01 '25 21:06 Argmaster