Sidecar Files

5commands
5files
3min read
Sheet 14 of 33 · Shop & Access

Filesconfig.yml · schematics/buildings/lighthouse.yml · schematics/bundles/starter_house.yml · schematics/plots/cottage.yml · +1

Fileconfig.ymlFileschematics/buildings/lighthouse.ymlCommand/paste reloadCommand/paste speedupA sidecar is a .yml file with the same base name as a schematic, in the same folder. It holds everything that schematic needs beyond its blocks: price, cooldown, build time, permission, the next tier. Every key is optional, and a schematic without a sidecar uses the defaults from config.yml.

schematics/
  buildings/
    lighthouse.schem
    lighthouse.yml      <- the sidecar for buildings/lighthouse

Command/paste reloadSidecars are read when the index is built: on start and on /paste reload. Edit, reload, done. A sidecar that fails to parse logs Failed to read schematic sidecar <file>: <error> and the schematic falls back to defaults.

Every key

KeyTypeDefaultMeaning
display-nametextgui.entry.display-nameMiniMessage name in the selector
lorelistgui.entry.loreMiniMessage lore in the selector. Replaces the default lore entirely, placeholders work
custom-model-datanumbergui.entry.custom-model-dataResource pack model for the selector icon. 0 uses the global value
permissiontextignitepaste.schem.<name>Node needed to see and paste it. See Access & Worlds
allowed-worldslistall worldsWorlds it may be pasted in, case-insensitive
tagslistnoneFree-form labels. Stored, not used by the plugin yet
costnumber0.0Vault money per paste. See Money & Confirmation
cost-itemslist or FULL_SCHEMATICnoneItems taken from the inventory per paste. See Material Costs
cooldown-secondsnumber0Per-player cooldown after each paste
max-uses-per-playernumber0 (no cap)Lifetime pastes per player. See Cooldowns & Use Limits
construction-durationsecondsglobal defaultBuild time. 0 forces an instant paste. -1 or no key inherits
speed-up-costnumberconstruction.speed-up.costPrice of one /paste speedup on this build. -1 or no key inherits
buildingtrue/falsefalseTrack pastes as buildings even without a tier chain
upgrade-toschematic namenoneThe next tier. Makes pastes tracked buildings
upgrade-costnumberthe next tier's costMoney for upgrading into upgrade-to. -1 or no key inherits
upgrade-cost-itemslist or FULL_SCHEMATICnoneItems for the upgrade. FULL_SCHEMATIC counts the next tier's blocks
upgrade-durationsecondsthe next tier's build timeUpgrade construction time. -1 or no key inherits

For construction-duration, speed-up-cost, upgrade-cost and upgrade-duration, -1 (or any negative number) means "use the default", the same as leaving the key out. On 1.6.0 and older it was read as 0: instant and free. Other negative numbers are read as 0.

Examples

A paid building that is placed once per player per hour, in two worlds:

schematics/buildings/lighthouse.yml
permission: ignitepaste.schem.buildings_lighthouse
display-name: "<aqua>Lighthouse"
lore:
  - "<gray>A coastal beacon."
  - "<dark_gray>Built by the construction team."
  - ""
  - "<gray>Cost: <white><cost>  <gray>Build time: <white><construction>"
cooldown-seconds: 3600
cost: 500.0
max-uses-per-player: 3
allowed-worlds:
  - world
  - world_nether
tags:
  - coastal
  - landmark

A survival kit: the player brings the materials, the crew builds it:

schematics/bundles/starter_house.yml
display-name: "<green>Starter House"
cost-items:
  - { material: OAK_LOG, amount: 32 }
  - { material: COBBLESTONE, amount: 64 }
  - GLASS:12
  - IRON_INGOT:4
construction-duration: 60

A one-per-account plot house:

schematics/plots/cottage.yml
permission: ignitepaste.schem.cottage
display-name: "<#FFD166>Cottage"
cost: 2500.0
cooldown-seconds: 86400          # one paste a day
max-uses-per-player: 1           # and only once, ever
allowed-worlds:
  - plots

A tier in a chain:

schematics/buildings/house_t1.yml
cost: 1000.0
upgrade-to: buildings/house_t2   # the selector name of the next tier
upgrade-cost: 2500.0             # omit to charge house_t2's own cost
upgrade-cost-items:
  - OAK_LOG:64
upgrade-duration: 90             # omit to use house_t2's build time

Names

Command/paste onetimeCommand/paste voucher giveCommand/paste statsA schematic's name is its path inside the schematics folder, with forward slashes and without the extension. That name is what upgrade-to, /paste onetime, /paste voucher give, /paste stats and the %ignitepaste_cooldown_<name>% placeholders expect.

FileName
schematics/well.schemwell
schematics/decor/well.schemdecor/well
schematics/buildings/t1/house.schematicbuildings/t1/house

Config keywell.schemConfig keywell.schematicTwo files that differ only in extension, like well.schem and well.schematic, get the same name, and only one of them ends up in the index. Keep names unique.

Loading the index

Enter openUp Down moveEsc close