Loading schematics
This commit is contained in:
+2
-1
@@ -80,7 +80,8 @@ ctx.schematics.register(id, schematic);
|
||||
ctx.schematics.place(id, { position, position_pivot, rotation, mirror });
|
||||
```
|
||||
|
||||
`register` takes a `Schematic` object for now, loading them from mods' schematics directories isn't built. There's no
|
||||
Mods' `schematics/<name>.cbsm` files are registered as `<mod id>:<name>` before scripts run. They're decoded when the
|
||||
mod is checked and packed into its `data.json` like its other server only data, so players don't get them. There's no
|
||||
`dimension` yet, like export. Blocks with data in the schematic get it as it is and skip `on_create`, the rest get their
|
||||
`on_create`, then every placed block tells its neighbors.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user