RandomLootChests

Abandoned
Plugin to spawn random loot chests around the world

RandomLootChests is a highly configurable plugin that spawns a chest at random places around the world with random items that players can loot. A message is broadcasted whenever a player finds and loots a chest, as well as when a new chest spawns.

You can choose a rectangular area in which chests can spawn. Chests are automatically placed above the highest block so there is no need to worry about Y-coordinates. You can also configure every aspect of the random loot table, as well as the messages broadcasted.

The loot table works by populating the chest with a random number of stacks of items. A weighted random type is selected for each stack, and each type of item has a unique random range for the quantity. For example, you can have between 2 and 4 stacks, each stack has 75% chance of being stone and 25% chance of being iron ingots, and stone can come in groups of 10 to 20, while iron ingots spawn between 1 and 5 per stack.

The plugin can also utilize the boss bar if BarAPI is installed. It will display a customizable message displaying the location of the chest to all players on the server.

Commands

/lootchests reload - Reloads the config.yml

Permissions

lootchests.reload - Allows use of the /lootchests reload command

Configuration

The configuration file provided by the plugin is commented and provides a detailed description of each configurable value. If you accidentally corrupt the configuration file or otherwise break it, delete it and the plugin will automatically create a new one when the server reloads.

You can configure:

  • Message prefix
  • Chest spawn and loot messages
  • Boss bar messages (optional)
  • World to spawn the chests in
  • Minimum and maximum coordinates
  • Loot table
    • Minimum and maximum number of stacks
    • Weighted chances for item types
    • Minimum and maximum quantities for each item type

By default, the plugin spawns the chest between (-1000, -1000) and (1000, 1000) in the main overworld, and each chest spwans 1 block of dirt.

The RandomLootChests Team

profile avatar
  • 2
    Projects
  • 3.1K
    Downloads

More from _ForgeUser10788209