Описание

# Schematic Placer
An addon for [WorldEdit](https://enginehub.org/worldedit) that streamlines placing schematic files in Minecraft.
## Commands
#### `schemplace [] []`
loads and places a schematic. Loading is done asynchronously and placement happens over multiple ticks if necessary (see [batchSize](#batchSize)).
#### `schemremove [] []`
Sets blocks to air that are contained in the schematic. Uses the same loading and placement logic as 'schemplace'.
#### `schemanimate [] [] [] [] [] [] [] [] []`
Sequentially places schematics using the same logic as 'schemplace'.
#### `schemstopanimate [] [] [] [] [] [] [] [] []`
Stops any currently running animation that matches the given parameters.
#### `schemwait []`
Waits for the specified number of ticks
#### `schemstopwait []`
Stops any currently running wait task that matches the given parameters. Note: use the waitId to avoid overlap.
#### `schemstream [] [] [] [], []`
Opens a port and begins streaming schematics via TCP. A new client connection must be made for each sent schematic.
#### `schemstopstream [] [] [] [], []`
Stops any existing stream that matches the given parameters.
#### `schemsequence `
Runs a sequence of comma-separated commands. Supported commands are 'schemplace', 'schemremove', 'schemanimate', 'schemstopanimate', 'schemwait', 'schemstopwait'.
#### `schemstopsequence `
Stops any currently running sequence that matches the given parameters.
#### `schemitem `
Attaches a command (or list of comma-separated commands) to an item by adding the command to the item's Lore. The command(s) are activated using right click. If there is just a single command attached, shift right clicking will invert the command e.g. (place -> remove) or (start -> stop). If there is a sequence, shift right clicking will stop the sequence. Supported commands are the same as those supported by 'schemsequence'.
#### `schemtask list|stop|clear`
Provides access to the schematic task queue. 'list' prints out all queued tasks. 'stop' stops all queued tasks. 'clear' forcibly removes all queued tasks.
#### `schemreloadcache`
Reloads the schematic cache assuming [cacheSchematics](#cacheSchematics) is enabled.
| Parameter | Default Value | Explanation |
|-------------------------|-----------------|-------------|
| `` | *required* | Path or pattern for the schematic file(s). Supports `%d` formatting for frame numbers. |
| `[]` | Player position | World coordinates where the schematic is pasted. Accepts absolute or relative (`~ ~ ~`) values. |
| `[]` | `0` | Number of ticks between the start of each frame. If exceeded, the next frame will start as soon as possible. `-1` = wait until the schematic file exists. |
| `[]` | `0` | First frame number in the sequence. |
| `[]` | `-1` | Last frame number in the sequence (inclusive). `-1` = keep going until the schematic does not exist. |
| `[]` | `1` | How much to increment (or decrement if negative) the frame number each step. |
| `[]` | `false` | If `true`, restart at `` when the sequence finishes. |
| `[]` | `true` | If `true`, remove the last schematic frame when the animation completes. |
| `[]` | `true` | If `true`, automatically remove blocks from the previous frame before placing the next. |
| `[]` | `true` | If `true`, skip air blocks when pasting (can increase performance). |
| `` | *required* | TCP port to open. If `0`, automatically allocate. |
| `[]` | `true` | If `true`, skip any pending frames up to the latest loaded frame. |
- Note: running a command that is already running will instead pause or un-pause the task.
## Configuration
The config file will be located in the .minecraft folder at `config/schemplacer.json`.
#### `batchSize`
The maximum number of blocks that can be placed per game tick.
#### `cacheSchematics`
Whether to cache all schematics into memory to increase placement speed.
#### `schematicDir`
Path to the location where scematics are loaded from. Accepts local paths to `.minecraft` or absolute paths.
#### `commandOutput`
Whether to output command feedback to the player.