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 Oct 1, 2013yes
and Can you make we can modify the Max Items in chest by command or config?
It will be useful if modifying unique chest using lootchests.txt is possible.
For example
Loot #1
location : world 81 83 87(X , Y, Z)
loottables : food
Maxitems : 2
update time(tick) : 400
invisible : true
-
View User Profile
-
Send Message
Posted Sep 30, 2013@legendblock
What? Make it so that chests are invisible when they do not contain items?
-
View User Profile
-
Send Message
Posted Sep 30, 2013Can you make chests disappear when it has any items in and appear when items refill the chests?
-
View User Profile
-
Send Message
Posted Aug 24, 2013You have to put in the level too.
Like "19:2" - Gives you enchantment 19 level 2. "19:2-20:5" gives you 19 level 2 and 20 level 5.
-
View User Profile
-
Send Message
Posted Aug 24, 2013-
View User Profile
-
Send Message
Posted Aug 24, 2013@wesleyd0g
As you can see on the bottom, the file "loot.txt" has not been written properly.
[Server] WARNING Syntax error in "loot.txt". Item has an invalid enchantment! Missing ":". 24.08 12:45:22 [Server] WARNING Syntax error in "loot.txt". Item has more or less than 9 arguments. 24.08 12:45:22 [Server] WARNING Syntax error in "loot.txt". Item has a maxAmount which is not an integer.". Item has an invalid enchantment! Missing ":"
- You have configured loot.txt wrong. If you have added a comment, make sure it is preceded by a #. Try using the default loot.txt if you don't, and add new items to the end of that.
-
View User Profile
-
Send Message
Posted Aug 24, 2013-
View User Profile
-
Send Message
Posted Aug 23, 2013@wesleyd0g
Thanks for the suggestion. I might add something similar soon, after the next version is out, but we'll see. I'm trying to keep it as simple as possible.
-
View User Profile
-
Send Message
Posted Aug 23, 2013Can you make respawn timer for each unique chest?
-
View User Profile
-
Send Message
Posted Aug 18, 2013@SDDJ
Thanks for the suggestion. I'll see what I can do.
-
View User Profile
-
Send Message
Posted Aug 17, 2013Having the ability to reset the loot of chests ONLY inside of a specific worldguard region via a command (possibly "/lootchest reset r:<regionname>") would make this plugin that much more awesome!
-
View User Profile
-
Send Message
Posted Aug 16, 2013I might add something similar in the future, however it will likely work in a slightly different way which fits this plugin better.
-
View User Profile
-
Send Message
Posted Aug 15, 2013@Interfectore Can you add more feature in creating craft same as RPGITEM?.example:effect,power,cooldown,change,etc.
-
View User Profile
-
Send Message
Posted Aug 11, 2013I will try to add that in the next version. Thanks for the suggestion!
-
View User Profile
-
Send Message
Posted Aug 11, 2013First - thanks for writing this. So far this is the easiest plugin for loot tables that I've used.
One suggestion: Your upcoming features lists being able to edit the loot tables in game. While that is being coded, could you add a simple command like "/hyploot reload" that could reload the .txt tables without having to restart?
-
View User Profile
-
Send Message
Posted Aug 10, 2013@Torm_
you are right, but apparently the mac version of java7 causes other problems. I'll try your plugin agin after they get that all figured out.
Thanks for your time!
-
View User Profile
-
Send Message
Posted Aug 10, 2013That is probably because you are running an older version of Java. You should try to update to the newest version. (Java 7). Hope it helps!
Java
-
View User Profile
-
Send Message
Posted Aug 9, 2013@Torm_ EDITED!!! Yes
at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582) Caused by: java.lang.UnsupportedClassVersionError: no/hyp/hyploot/HypLoot : Unsupported major.minor version 51.0
Thanks for the reply
-
View User Profile
-
Send Message
Posted Aug 9, 2013Do you see any error messages in the console window?
-
View User Profile
-
Send Message
Posted Aug 9, 2013This Plugin is not loading for me. Any suggestions? I am using craftbukkit-1.6.2-R0.1.jar and only one other plugin installed "YMLbook"
I definitely would like to have it working.
Thank You