Material Costs

1permission
4files
1figure
2min read
Sheet 16 of 33 · Shop & Access

Filesschematics/decor/well.yml · schematics/survival/farmhouse.yml · messages.yml · schematics/buildings/cottage_t2.yml

Fileschematics/decor/well.ymlFileschematics/survival/farmhouse.ymlA schematic can cost items from the player's inventory, on its own or on top of a money price. Items work without Vault, which makes them the natural price on survival servers: the player brings the blocks, the crew builds.

A list of items

schematics/decor/well.yml
display-name: "<aqua>Village Well"
cost: 250.0
cost-items:
  - COBBLESTONE:32
  - SPRUCE_PLANKS:12
  - LANTERN:1

Each entry is MATERIAL:amount or { material: MATERIAL, amount: N }, and both forms can be mixed. Material names are Bukkit names, case-insensitive. The same material listed twice is added up. An entry with an unknown material is skipped; a list with no valid entry means no material cost.

The whole schematic

schematics/survival/farmhouse.yml
cost-items: FULL_SCHEMATIC

With FULL_SCHEMATIC the plugin counts every block the schematic places, when the player clicks the paste wand, and asks for exactly those items. Blocks with no item form, like water or fire, are left out of the count. The lamp post in these screenshots asks for five dark oak fences, one dark oak plank, two lanterns and one stone brick; a castle asks for a castle's worth.

What the player sees

The confirmation menu lists every material with its amount before anything is taken. If something is missing, the paste is refused with the first item that is short. For a paste that happens before the menu opens; for an upgrade, when you confirm:

An upgrade to tier III refused: the player carries no stone bricks yet.
Chat reading You need 64x STONE_BRICKS in your inventory to paste this, in front of the tier II house

Filemessages.ymlThe message is material-shortage in messages.yml, with <amount> and <material>.

When items are taken

  • Pastes: after every check has passed (region guards included), right before the blocks go down.
  • Upgrades: up front, together with the money, before the crew starts.

Items are counted in the player's inventory; in paste mode that is the inventory stashed away when paste mode started, so the player brings the items along and pays from them. Plain items only: a renamed or enchanted stack does not count. Shulker boxes and ender chests are not searched.

Upgrade materials

Tier upgrades have their own list in the current tier's sidecar:

schematics/buildings/cottage_t2.yml
upgrade-to: buildings/cottage_t3
upgrade-cost: 6000.0
upgrade-cost-items:
  - STONE_BRICKS:64
  - DEEPSLATE_TILES:32

upgrade-cost-items: FULL_SCHEMATIC asks for every block of the next tier, not just the blocks that change. See Tier Upgrades.

Vouchers and staff

Permissionignitepaste.economy.freeA voucher or a blueprint waives the material cost along with the money. ignitepaste.economy.free waives money only; staff still need the items, or a voucher.

Loading the index

Enter openUp Down moveEsc close