Skip to content

Chests ​

The map's chests are filled from chest-items.yml at the start of every game and refilled during it.

yaml
refill:
  interval: 120                      # seconds; 0 = only at the start
  phases: [INVINCIBLE, BATTLE, DEATHMATCH]
  clear: true                        # empty chests before refilling
items-per-chest: [2, 5]
scan-radius: 150
items:
  - {item: DIAMOND, total: 5}        # 5 diamonds spread over all the map's chests
  - {item: IRON_INGOT, weight: 10, amount: [1, 3]}
  - {item: {type: IRON_SWORD, enchantments: {SHARPNESS: 1}}, weight: 2}
KindMeaning
totalLimited: this many in total across all chests of the map
weightRandom: each chest draws items-per-chest items, heavier ones more often
  • A broken chest is put back at the next refill, facing the same way. Chests placed by players are never filled.
  • The plugin scans the map's chests once (inside the world border, or scan-radius around the spawns) and again after /sg edit save. Chests in unloaded chunks are filled when the chunk loads.

SurvivalGames is a paid plugin. EranoAPI is open source under the MIT license.