Go: Bulk world editing¶
Functions¶
SetBlocks¶
| Go | |
|---|---|
SetBlocks writes many blocks in one call: palette holds block specs and each cell names one by index. It returns how many cells changed. Server thread only.
- Parameters:
- dim :
int32 - palette :
[]string - cells :
[]BlockCell - updateFlags :
int32
- dim :
- Return type:
(int64, error) - Slots:
edit_set_blocks
FillRegion¶
| Go | |
|---|---|
FillRegion fills a box with one block and returns how many cells changed.
- Parameters:
- dim :
int32 - x1 :
int32 - y1 :
int32 - z1 :
int32 - x2 :
int32 - y2 :
int32 - z2 :
int32 - blockSpec :
string - updateFlags :
int32
- dim :
- Return type:
(int64, error) - Slots:
edit_fill_region