Schematic Selector

1file
1figure
2min read
Sheet 8 of 33 · Paste Mode

Filesconfig.yml

Fileconfig.ymlThe selector is the chest menu behind the first hotbar tool. It lists every indexed schematic the player may see, one item per schematic, and clicking one selects it and closes the menu: Selected schematic buildings/cottage_t1.

Layout

SettingDefaultMeaning
gui.title"<gradient:#78ff78:#00aa00><bold>Schematic Browser"MiniMessage title. Placeholders: <page>, <pages>, <folder>
gui.size54Menu size, a multiple of 9 from 9 to 54
gui.entry-slot-start0First slot used for entries
gui.entry-slot-end44Last slot used for entries. The range sets how many entries fit on a page
gui.navigation.previousslot 45, ARROWPrevious page button: slot, material, display-name, custom-model-data
gui.navigation.nextslot 53, ARROWNext page button
gui.navigation.closeslot 49, BARRIERClose button

Entries are sorted by name, case-insensitive. Keep the navigation slots outside the entry range.

Entries

Config keygui.entryEach schematic is drawn with gui.entry:

config.yml
gui:
  entry:
    material: FILLED_MAP
    custom-model-data: 0
    display-name: "<green><bold><name>"
    lore:
      - "<gray>Size: <white><width>x<height>x<length>"
      - "<gray>Folder: <white><folder>"
      - "<gray>Cost: <white><cost>"
      - "<gray>Build time: <white><construction>"
      - "<gray>Cooldown: <white><cooldown> <dark_gray>(<remaining>)"
      - "<gray>Uses left: <white><uses_left>"
      - ""
      - "<yellow>Click to select"
PlaceholderValue
<name>The schematic name, for example buildings/cottage_t1
<folder>Its folder, / for the root
<width>, <height>, <length>Its size in blocks
<cost>The money cost formatted by your economy ($1,000), or Free when there is no cost, the economy is off, or the player has the free-paste permission
<construction>The build time, 40s, or Instant
<cooldown>The cooldown, 600s, or None
<remaining>What is left of this player's cooldown, 448s, or Ready
<max_uses>The lifetime cap, or ∞
<uses_left>Uses this player has left, or ∞

A sidecar overrides the look per schematic: display-name replaces the name line, lore replaces the whole lore (write the price lines yourself if you want them), and custom-model-data replaces the icon model. The placeholders above work in sidecar lore too.

Folders

With gui.folders.enabled: true every subfolder of the schematics folder becomes a chest in its parent, showing how many schematics are inside it, nested ones included. Folders come first, then the schematics of the current folder. Outside the root a back button leads to the parent.

config.yml
gui:
  folders:
    enabled: true
    material: CHEST
    display-name: "<gold><bold><name>/"
    lore:
      - "<gray>Folder"
      - "<gray>Entries: <white><count>"
      - ""
      - "<yellow>Click to open"
    back:
      slot: 47
      material: ARROW
      display-name: "<yellow>« Back to <parent>"

<name> is the folder name, <count> the number of schematics in it, <parent> the parent folder (/ for the root). Folders also take custom-model-data, which the back button shares. Set enabled: false for a single flat list of everything, sorted by full name.

Locked entries

With permission gating on, a schematic the player lacks the node for is either hidden (permission-gating.hide-locked: true) or shown as a locked entry that says You do not have permission to use <name>. when clicked.

A locked VIP schematic, shown as a barrier.
The selector with a barrier in the last entry slot, its tooltip showing vip/golden_gazebo in red
config.yml
gui:
  locked-entry:
    material: BARRIER
    display-name: "<red><name>"
    lore:
      - "<gray>Folder: <white><folder>"
      - "<gray>Size: <white><width>x<height>x<length>"
      - ""
      - "<red>You do not have access to this schematic."

Config keypermission-gating.locked-entryConfig keygui.locked-entryThe block also accepts custom-model-data. Configs from before 1.6.1 that moved it under permission-gating.locked-entry keep working: that spot is read when gui.locked-entry is missing.

Every screen of the selector, the purchase confirmation and the building manager is on the Menu Explorer, drawn from a crawl of a live server.

Loading the index

Enter openUp Down moveEsc close