forked from nisovin/MagicSpells
-
Notifications
You must be signed in to change notification settings - Fork 72
PasteSpell
JasperLorelai edited this page Jun 28, 2026
·
9 revisions
spell-class: ".targeted.PasteSpell"| Value | Supported |
|---|---|
entity |
false |
location |
true |
entity_from_location |
false |
Targeted Spell that pastes a WorldEdit schematic at the target location. Create a .schem file with WorldEdit and put it into MagicSpells/schematics folder.
Since 4.0 Beta 13 some of these options support dynamic values through numeric or string expressions.
| Option | Description | Type | Default | Supports expressions |
|---|---|---|---|---|
schematic |
Name of the schematic file. | String | "none" |
false |
y-offset |
Modifies the start height location. | Integer | 0 |
true |
undo-delay |
Delay before removing the schematic. | Integer | 0 |
true |
paste-air |
Should the schematic paste air? | Boolean | false |
true |
paste-structure-void |
Since 4.0 Beta 19. Should the schematic paste structure_void? |
Boolean | true |
true |
remove-paste |
Should the schematic be removed on server stop/reload? | Boolean | true |
true |
paste-at-caster |
Should the schematic be pasted at the caster's location? | Boolean | false |
true |
prevent-overwrite |
Since 4.0 Beta 19. When unspecified or empty, all blocks are overwritten like usual. When true, after filtering out paste-air & paste-structure-void, this option will prevent the paste from succeeding if a schematic block overrides any block in the world. When a Predicate, it only prevents overwriting of blocks that match the predicate. For example, you can allow the replacement of blocks that have the #replaceable tag (plants, liquids, water, etc. - but also light blocks). But you can easily prevent extra blocks with the predicate, like light, barrier, bedrock, etc.For example: "!#replaceable && (light && bedrock && barrier)"
|
true (for all blocks) or Predicate of Material (exclusively block types) |
false |
paste:
spell-class: ".targeted.PasteSpell"
schematic: schematicName.schem
y-offset: 1
undo-delay: 100
paste-air: false
remove-paste: true
paste-at-caster: false