Creating a Pouch

Creating a pouch is relatively simple once you understand the configuration.

This is a full example pouch configuration file:

name: Example
weight: 0.1

lockedItem:
  material: DIAMOND_BLOCK
  name: '<red><bold>Example Pouch'
  lore:
    - '<gray>Break 100 cobblestone blocks and'
    - '<gray>10 diamond ores to unlock this pouch!'
    - ''
    - '<yellow>Cobblestone: %progress_breakCobblestone%/%goal_breakCobblestone%'
    - '<yellow>Diamond Ores: %progress_breakDiamonds%/%goal_breakDiamonds%'
unlockedItem:
  material: DIAMOND_BLOCK
  name: '<green><bold>Example Pouch'
  lore:
    - '<gray>Break 100 cobblestone blocks and'
    - '<gray>10 diamond ores to unlock this pouch!'
    - ''
    - '<yellow>Click to open!'

singleMission: false
missions:
  breakCobblestone:
    type: BLOCK_BREAK
    goal: 100
    parameters:
      blocks:
        - COBBLESTONE
  breakDiamonds:
    type: BLOCK_BREAK
    goal: 10
    parameters:
      blocks:
        - DIAMOND_ORE

expireTime: -1

pouchUpgrade: Example2

recipe:
  shape:
    - AAA
    - ABA
    - AAA
  ingredients:
    A: GLASS
    B: NETHER_STAR

actions:
  guaranteed:
    - '[Message] text=<gray>Congratulations, you redeemed the Example Pouch!'
  randomAmount: 1
  random:
    '0':
      actions:
        - '[Message] text=<green>This green message can appear 50% of the time.'
      weight: 0.5
      requirePermission: false
      invertPermissionCheck: false
      permission: actions.check
    '1':
      actions:
        - '[Message] text=<red>This red message can appear 50% of the time.'
      weight: 0.5
      requirePermission: true
      invertPermissionCheck: false
      permission: actions.check

If you need more help creating your pouches, feel free to reach out on Discord!


Revision #1
Created 3 February 2024 09:38:11 by Admin
Updated 3 February 2024 14:35:00 by Admin