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.
-
View User Profile
-
Send Message
Posted Feb 13, 2015Still waiting for the next versions, please for 1.7.2 or 1.7.4 ! thanks !! Please continue work ! ! its already 2 years ago last version came out..
-
View User Profile
-
Send Message
Posted Aug 8, 2014@kogan007
I have taken a closer look, and the only way to do this is by metadata. Sadly the plugin doesn't support this in any way right now :(
-
View User Profile
-
Send Message
Posted Aug 8, 2014@Torm_
This is my first time using these mods, but I installed Not Enough Items mod and am unable to find the durability of the item, however when I look over the item it just shows the id, 299, regular leather armor
-
View User Profile
-
Send Message
Posted Aug 8, 2014@kogan007
I actually don't know about any plugins, but I know that the Too many items / Not enough items mods allow you to see durability
-
View User Profile
-
Send Message
Posted Aug 8, 2014@Torm_
Do you know what I can use to do that? I have tried using the essentials /itemdb command, but that only shows the id of regular leather armor.
Thanks
-
View User Profile
-
Send Message
Posted Aug 8, 2014@kogan007
Good to hear that it works well :)
This is kind of tricky because I think the coloured leather armour uses more metadata values than ordinary items. I would suggest trying to spawn a leather armour piece with a colour, and then use a tool to view its durability/datavalue and put that in the config.
The next update should make this easier.
-
View User Profile
-
Send Message
Posted Aug 8, 2014Hi, this plugin is working really well for me, but I have one question,
lets say I made a custom armor in the loot.txt, and it would be leather armor, id 299. I want this to be colored when it spawns, if I used a command, it would be /i 299 1 color:100,100,150 for the color I want.
How would I do this in the loot.txt, because when I tried putting color:100,100,150 in the durability and data value section, it does not work.
If this is not able to be done in the config, can you implement a command, because then it would certainly be possible to do.
Thanks, kogan007
-
View User Profile
-
Send Message
Posted Jun 14, 2014@Aterruit
If you want to assign it to a wand, there are already many plugins for that.
I might add a command like that :)
-
View User Profile
-
Send Message
Posted May 29, 2014I would like to add a suggestion I think would benefit this plugin.
Could you assign it to a wand?
Also. is it possible to add a command that finds all the chests in a map, and randomly adds the loottables?
-
View User Profile
-
Send Message
Posted Feb 28, 2014i hope i it comes out in the month thats coming..
-
View User Profile
-
Send Message
Posted Feb 27, 2014@stavros148
I know there has not been an update in a while, but I am working on it right now. I am not sure when it will be out, but it's progressing.
-
View User Profile
-
Send Message
Posted Feb 27, 2014When is the updated going to be released?
-
View User Profile
-
Send Message
Posted Jan 7, 2014Good news, ok.
-
View User Profile
-
Send Message
Posted Jan 5, 2014The chest simply becomes full, and no more items can be added to it.
There is no way to reset a chest now, but in the next update there will be.
-
View User Profile
-
Send Message
Posted Jan 3, 2014What happened if the chest add more and more items generate (is nobody take the content) ?
No way to remove the content before the next appearance ?
-
View User Profile
-
Send Message
Posted Nov 7, 2013@HammerHedd
There is no way to set a range currently, only a MaxAmount.
This can be solved if I add a MinAmount to each LootItem, which I think is a good idea. I believe the best thing you can do currently is to make two similar items with different maxAmounts.
-
View User Profile
-
Send Message
Posted Nov 7, 2013Is there currently any way to change the item quantity range on a per chest basis? For example, in one chest I only want to generate one or two gold ingots, but in another I'd like to have 10 to 15 generate at a time. As it is now, I set the spawn quantities per item, and both of those chests would receive the same range of ingots at refresh.
-
View User Profile
-
Send Message
Posted Oct 6, 2013@combustible_lemons
It simply spawns chests into the world when the world generates, with loot in them. It does not modify any other chests generated by Minecraft itself or any other plugins. The chance that a LootChests is spawned is specified in the config.
Currently it registers the generated chests as LootChests in lootchests.txt, but I am planning to make that optional.
I'll see what I can do with WorldFeatures, but i can't promise anything. It will probably take some time though.
-
View User Profile
-
Send Message
Posted Oct 6, 2013"Randomly generate LootChests into the world when the world generates, already filled with items."
How does this work? Will all chests generated by other WorldGen plugins be populated?
Oh, and if you get a chance, Interfectore, please update the WorldFeatures plugin...it's the perfect companion mod. https://forums.bukkit.org/threads/update-request-worldfeatures.86950/
-
View User Profile
-
Send Message
Posted Oct 1, 2013I can maybe do that.