Skip to content

Configuration (Presets)

StrangeOne101 edited this page Jun 12, 2022 · 1 revision

This is the configuration for presets in BendingGUI. This is found in the presets.yml file

Global Presets

Global Presets from ProjectKorra can be given specific icons in the prefix menu. This means that after you define some global prefixes in PK, you can choose to have a water bucket for the water preset, a grass block for the earth preset, etc.

GlobalPresetIcons:
  water: WATER_BUCKET
  earth: GRASS_BLOCK
  fire: BLAZE_POWDER
  air: WHITE_WOOL

Keywords

For all other presets that aren't global presets, the icon is decided by the name of the preset. Rather than deciding an icon for every single name we can think of, we can create a list of materials to use if the name contains a certain keyword.

For example, in the config, we might have (ignoring all other config entries)

PresetKeywords:
  water: POTION, SNOWBALL, WATER_BUCKET, ICE, BLUE_ICE, SNOW_BLOCK

This means that if someone creates a preset called "Water2", because it has "water" (case insensitive) in the name, it is going to pull from the water materials pool. The one it will select is random, but the icon selected will not change when they reopen the menu.

Global Keywords Pool

If there are no keywords found in the name of a preset, it will pull from the "GLOBAL" materials pool.

PresetKeywords:
  GLOBAL: IRON_SWORD, DIAMOND_SWORD, BOW, SHIELD, SPECTRAL_ARROW

By default, this means that one of these materials will be used as the icon.

Default config

PresetKeywords:
  GLOBAL: IRON_SWORD, DIAMOND_SWORD, BOW, SHIELD, SPECTRAL_ARROW
  chi: ARROW, LEATHER_LEGGINGS, GOLDEN_LEGGINGS, IRON_LEGGINGS, FLINT
  avatar: PURPLE_DYE, END_CRYSTAL, NETHER_STAR, BEACON, PURPLE_TERRACOTTA
  fire: FIRE_CHARGE, COAL, BLAZE_POWDER, FLINT_AND_STEEL, NETHER_BRICK
  spirit: PURPLE_DYE, BLUE_WOOL, TUBE_CORAL_BLOCK, LAPIS_LAZULI, ENDER_PEARL
  earth: GRASS_BLOCK, GRANITE, STONE, GREEN_TERRACOTTA
  survival: LEATHER_HELMET, IRON_HELMET, GOLDEN_HELMET, DIAMOND_HELMET, TURTLE_HELMET, COMPASS, CLOCK
  water: POTION, SNOWBALL, WATER_BUCKET, ICE, BLUE_ICE, SNOW_BLOCK
  pvp: BOW, GOLDEN_SWORD, IRON_SWORD, DIAMOND_SWORD, NETHERITE_SWORD
  air: FEATHER, STICK, STRING, QUARTZ_BLOCK, GLASS, WHITE_WOOL
  arena: BOW, GOLDEN_SWORD, IRON_SWORD, DIAMOND_SWORD, NETHERITE_SWORD
  metal: IRON_INGOT, IRON_BLOCK, RAW_IRON, IRON_PICKAXE, IRON_CHESTPLATE
GlobalPresetIcons:
  example: NETHER_STAR
Clone this wiki locally