Pages » Gchallenges » Challenges » Config


# Challenge name.
# Placeholders:
# %generator-name% - Randomly selected name from generator.
# %generator-level% - Randomly generated level from generator.
name: '%generator-name% &7Lv. %generator-level%'
# Challenge type. Click on a type name for possible objective names.
# Allowed types:
# BLOCK_BREAK - Player have to break certain blocks.
# ITEM_CONSUME - Player have to consume certain items.
# ITEM_CRAFT - Player have to craft certain items.
# ITEM_COOK - Player have to cook/smelt certain items in furnace.
# ITEM_ENCHANT - Player have to enchant items with certain enchantments.
# ITEM_DISENCHANT - Player have to disenchant certain items in Grindstone.
# ITEM_TRADE - Player have to trade certain items from villagers.
# ITEM_FISH - Player have to fish certain items.
# ENTITY_KILL - Player have to kill certain entities.
# ENTITY_KILL_MYTHIC - Player have to kill certain MythicMobs.
# ENTITY_TAME - Player have to tame certain entities.
# ENTITY_BREED - Player have to breed certain entities.
# ENTITY_SHEAR - Player have to shear certain entities.
# PROJECTILE_LAUNCH - Player have to launch certain projectiles.
# POTION_BREW - Player have to brew certain potions.
# ANVIL_RENAME - Player have to rename certain items on anvil.
# DAMAGE_RECEIVE - Player have to receive certain damage.
# DAMAGE_INFLICT - Player have to inflict certain damage.
type: BLOCK_BREAK
# Challenge icon.
# See HERE for available options.
icon:
  material: 'IRON_PICKAXE'
  name: '%name%'
  lore: []
  item-flags:
  - '*'

# Challenge settings generator.
generator:
  # List of challenge names.
  names:
  - '&bSimple Mining'
  - '&eMy Challenge'
  
  # Challenge levels.
  levels:
    minimum: 1
    maximum: 5
  
  # Challenge objectives. For a list of available objectives, click on a challenge type above.
  objectives:
    # Defines the total amount of objectives.
    amount:
      
      # ----------------------------------------------------------
      # Formula fields.
      # For such files you can use a single math expression with placeholders or create a map with custom values for each level.
      # Single Expression Example:
      # Use %level% placeholder for challenge level.
      # minimum: '1 + %level%'
      # Per-Level Map Values Example:
      # Challenge level : Value
      # minimum:
      #  '1': 1
      #  '2': 3
      #  '3': 5
      # ----------------------------------------------------------
      
      minimum: '1' # Formula field. 
      maximum: '3' # Formula field.
      
      # List of objectives.
      # You can provide different objectives for different challenge levels.
      # Use * to include all possible objectives.
      list:
        '1': # Challenge level
        - 'STONE'
        - 'ANDESITE'
        - 'DIORITE'
        - 'GRANITE'
        '2': # Challenge level
        - 'COAL_ORE'
        - 'IRON_ORE'
        - 'GOLD_ORE'
    
    # Amount of times to complete the objective.
    # You can provide different values for different objectives.
    # Use default to apply for all objectives.
    progress:
      default: # Objective name
        minimum: '30 * %level%' # Formula field.
        maximum: '50 * %level%' # Formula field.
      STONE: # Objective name
        minimum: '20' # Formula field.
        maximum: '40' # Formula field.
  
  # List of worlds, where this challenge could be completed.
  # You can provide different worlds for different challenge levels.
  # If no worlds provided, then the challenge is available in any world.
  affected-worlds:
    minimum: '1' # Formula field.
    maximum: '1' # Formula field.
    list:
      '1': # Challenge level
      - 'world'
  
  # Challenge rewards.
  # You can provide different rewards for different reward levels.
  rewards:
    minimum: '1' # Formula field.
    maximum: '2' # Formula field.
    list:
      '1': # Challenge level
        reward1: # Reward id. Must be unique.
          # Reward lore.
          lore:
          - '$2500'
          # List of actions executed by this reward.
          # See HERE for Custom Actions Guide.
          custom-actions:
            default:
              target-selectors:
              - '[SELF] ~name: self;'
              conditions:
                list: []
                actions-on-fail: 'null'
              action-executors:
              - '[COMMAND_CONSOLE] ~message: eco give %target% 2500; ~target: self;'
        reward2:
          lore:
          - 'x2 Diamonds'
          custom-actions:
            default:
              target-selectors:
              - '[SELF] ~name: self;'
              conditions:
                list: []
                actions-on-fail: 'null'
              action-executors:
              - '[COMMAND_CONSOLE] ~message: give %target% diamond 2; ~target: self;'

Information
Empty Block

18+