HypLoot

Features

  • Define different items, each with different properties and spawn rates.
  • Assign storage blocks on the server for spawning of items.
  • Spawn loot at a random interval.

How It Works

First, you must configure all the items you want to spawn on your server, in the "loot.txt" file. You can create a new "loot.txt" file, or you can use the already configured file that is included in the download. If you use the downloaded "loot.txt", you can of course still add your own items at the end of the file.

When you have configured the Loot, you must create some LootTables. These are what you assign to the chests in your world, so that they can spawn random Loot. Open up "loottables.txt", and create some new LootTables, and add appropriate Loot to all of them.

After you have finished configuring the files, you can go ingame. Now use the "/lc set [LootTable]" command while looking at a chest, where "LootTable" is replaced with the name of one of the LootTables you created in "loottables.txt". Now this chest should begin spawning random items!

The chests will update the items automatically, making sure that the chests never needs to be refilled manually. To confirm that everything is configured correctly and is working, use the command "/lc update" to update the chests once.

How It Works 2

There are four different components you need to know about to control loot spawning. LootItem: A LootItem contains an id, a HypItem, a spawn percentage and a minimum and maximum bound. LootTable: The LootTable is a container for different LootItems. It is there to group LootItems together. LootSupply: This is a block somewhere, which has an inventory. This is a place where LootItems can spawn. LootClass: Collection of LootTables and LootSupplies, and also holds an interval. This is what you use to control the spawning process.

Configuration

After the server has been started once with the plugin, it should create 4 files in the plugins folder. The files are config.yml, loot.txt, loottables.txt and lootchests.txt. The config.yml is pretty self-explanatory. Just open it and set the values you want.

To configure loot.txt, take a look at the following example:
loot.txt
Each line takes 9 arguments.

To configure loottables.txt, simply write a custom name for the LootTable at the beginning of the line, and then add in all the Loot names from loot.txt which you want this LootTable to contain. And yeah, remember that names are currently case sensitive.
loottables.txt

Do not touch lootchests.txt, this file is used to store LootChest locations by the plugin and will be written to automatically.

Commands

Installation

If you downloaded a .jar file, simply put the file into your "/Server/plugins/" folder.

If you downloaded a .zip file, open it with WinRar or a similar program, and drag the HypLoot.jar into your "/Server/plugins/" folder. The other files are optional pre-configured files you can use if you wish, else you can configure your own.


Comments

  • To post a comment, please or register a new account.
Posts Quoted:
Reply
Clear All Quotes

About This Project

Categories

Members

Recent Files

Bukkit