Container Configuration Examples

This page will show you a few examples of container configuration for you to get inspiration

containers/container1.yml

# The plugin hasn't been tested using other container materials
material: CHEST
# The cooldown in seconds before an instance gets refreshed
cooldown: 5
# The custom displayed name of the container's inventory instances
display-name: "&8Rusted Chest"
# The item table used to generated items
item-table: item_table1
# Whether the container instances should despawn once (completely) looted
is-despawning: true
# Prevents player from destroying this container instances
unbreakable: true
# The container keys required in order to unlock this container instances
keys:
  key1: 2
  key2: 1
# The events of the container
events:
  # Spawn living entities
  spawn-entity:
    trigger: ON_OPEN
    entities:
      # 'mm:' to let RPGChest know it should look for a MythicMob entity
      mm:SkeletalKnight: 1
      # Amounts can be a range meaning 2 to 3 zombies can spawn
      ZOMBIE: 2-3
      SKELETON: 1
  # Send a message to all players around
  message:
    trigger: ON_OPEN
    # The radius of the message
    radius: 7
    text:
    - "&cA squad of undead rises from the ground!"
    - "&cAt arms!"

Last updated