Construction Animation

1command
1permission
2files
2figures
4min read
Sheet 12 of 33 · Construction

Filesconfig.yml · schematics/plots/castle.yml

Fileconfig.ymlFileschematics/plots/castle.ymlCommand/paste speedupWith a construction time set, a paste does not appear at once. It rises from the ground, layer by layer, over exactly that many seconds, while a crew of workers walks the site and places every block. Prices, cooldowns, vouchers and region checks work the same as for an instant paste; only the placement is different.

A voucher for cozy-medieval-cottage: redeem, place, and the crew builds it in 60 seconds.

Turning it on

Globally, for every schematic:

config.yml
construction:
  default-duration-seconds: 120   # 0 = instant paste

Or per schematic, in its sidecar:

schematics/plots/castle.yml
construction-duration: 180       # this one takes three minutes
speed-up-cost: 500.0             # and /paste speedup costs 500 here

How the time is resolved:

  1. construction-duration in the sidecar, if the key is there. 0 means instant, even with a global default.
  2. Config keyconstruction.default-duration-secondsOtherwise construction.default-duration-seconds.
  3. Config keyconstruction.min-duration-secondsConfig keyconstruction.max-duration-secondsAnything above 0 is clamped between construction.min-duration-seconds (default 5) and construction.max-duration-seconds (default 600).

To inherit the global default, leave the key out of the sidecar or set it to -1.

Order

Config keyconstruction.layer-orderBlocks are placed bottom-up, and within a layer solid blocks go before torches, carpets and other blocks that hang on something. construction.layer-order decides the order inside a layer:

ValueOrder
CENTER (default)Centre of the layer first, spreading outward
EDGEOuter ring first, filling inward. Reads like a frame going up
RANDOMShuffled within the layer

Timing

Config keyconstruction.workers.max-countThe duration is a promise. A controller re-checks progress against the clock twice a second: when the build falls behind it hires more workers, up to construction.workers.max-count, and only when the full crew still cannot keep up do workers place a few blocks per swing. A huge schematic on a short timer gets a bigger crew, never a longer build.

The boss bar

The player who started the build sees a progress bar.

config.yml
construction:
  boss-bar:
    enabled: true
    title: "<gold>Building <yellow><name><gold> · <white><progress>%"
    color: YELLOW                # YELLOW, PINK, BLUE, RED, GREEN, PURPLE, WHITE
    overlay: NOTCHED_10          # PROGRESS, NOTCHED_6, NOTCHED_10, NOTCHED_12, NOTCHED_20
    update-interval-ticks: 4

<name> is the schematic, <progress> 0 to 100, <remaining> the estimated seconds left.

Construction of buildings/cottage_t1 has begun. ETA: 40s · 329 blocks.
The boss bar reading Building buildings/cottage_t1 20 percent, and chat saying construction has begun with ETA 40s and 329 blocks

Sound and particles

KeyDefaultMeaning
construction.scaffold-particleCRITParticle at each block as it is placed
construction.scaffold-particle-count3Count, 0 for none
construction.hammer-soundblock.wood.hitLooping sound at the centre of the site
construction.hammer-sound-volume / hammer-sound-pitch0.6 / 1.0Volume and pitch
construction.hammer-sound-every-ticks10How often it plays
construction.complete-soundui.toast.challenge_completePlays when the build finishes
construction.complete-sound-volume / complete-sound-pitch1.0 / 1.2Volume and pitch

Sounds use the Minecraft id without minecraft:. Leave a sound as "" to mute it.

Speeding up

Command/paste speedupConfig keyconstruction.speed-up.multiplier/paste speedup pays to finish sooner. Each use divides the time the job has to run by construction.speed-up.multiplier, so two buys at 3.0 make it about nine times faster. It works on paste constructions, upgrades and pick-ups alike.

config.yml
construction:
  speed-up:
    enabled: true
    cost: 100.0          # per use; 0 makes it free
    multiplier: 3.0      # at least 1.0

Permissionignitepaste.economy.freeA schematic's sidecar can set its own speed-up-cost. For upgrades the next tier's value applies. Players with ignitepaste.economy.free pay nothing. The reply: Sped up construction by x3. Paid $100. Progress: 42%.

Cancelling

A paste construction is tied to paste mode. Leave paste mode or log out before it finishes and it is cancelled:

  • with construction.rollback-on-cancel: true (default), every block placed so far goes back to what was there, the money, the items and the voucher are given back whatever the refund window says, and the paste leaves the undo history. Chat: Construction of buildings/cottage_t1 was cancelled. Rolled back 211 blocks.
  • with false, the half-built structure stays and so does the payment. Useful for staff who want to finish by hand.

Upgrades and pick-ups are not cancelled by logging out: they were charged up front and keep going.

A server stop rolls every running construction, upgrade and pick-up back, whatever rollback-on-cancel says, and refunds it in full. An upgrade leaves the building on its old tier, a pick-up leaves it standing with its chests as they were. Rolling back was chosen over resuming on the next start because the world can change in between. A hard crash cannot be rolled back. On Folia a build cut short by a stop is rolled back on the next start.

What a construction places

Config keypaste.copy-entitiesEverything a plain paste places: block states, chest and barrel contents, sign text, banner patterns and other block entities. Containers are filled when the build finishes, so nobody can empty a chest halfway and then cancel for a refund. With paste.copy-entities on, item frames, armor stands and other entities are added at the end too.

Config keyeconomy.refund-on-failA construction that hits an error rolls itself back and, with economy.refund-on-fail, hands the payment back: The paste of <name> failed, your payment was handed back.

Messages

KeyWhen
construction-startedThe build began. <name>, <seconds>, <blocks>
construction-completeIt finished. <name>, <x>, <y>, <z>
construction-cancelledIt was cancelled. <name>, <blocks> rolled back
construction-busyYou tried to paste or enter paste mode while a job of yours runs
construction-no-active/paste speedup with nothing running
construction-speedup-disabledSpeed-up is off
construction-speedup-no-balanceNot enough money. <cost>, <balance>
construction-speedup-success<multiplier>, <cost>, <progress>

Loading the index

Enter openUp Down moveEsc close