-
-
Notifications
You must be signed in to change notification settings - Fork 7
Configuration (Presets)
This is the configuration for presets in BendingGUI. This is found in the presets.yml file
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_WOOLFor 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_BLOCKThis 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.
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_ARROWBy default, this means that one of these materials will be used as the icon.
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