TreasureChest
TreasureChest
chest / doublechest / furnace / dispenser / brewingstand / etc
can be looted by every player
Set the forget-time, so players can loot it again later.
There's more!
See the Features list, for a full list of features.
How-To's | Commands | Permissions | Source Code | Issues
Video
Check out this video (old version), to get an idea of what this plugin can do:
Features
- Normal Treasure: You see the items when you open it for the first time
- Unlimited Treasure: You see the items when you open it every time
(dispensers/droppers can dispense/drop unlimitedly)
- Random Treasure: You see a random selection of the items. Can also be unlimited!
- Shared Treasure: Instead of having a personal inventory for every player, all players share the same treasure inventory.
- Forget-Time: You can access a treasure again... after the forget-time has passed.
- Custom messages: (found first time, found again, is unlimited)
- Some treasures are for some ranks.
- Create Treasure Groups to perform operations on a bunch of treasures at once!
- Add special rewards:
- Money using Vault
- Experience, Health, Hunger, Air
- Potion effects!
- Fly for some time
- Spawn mobs in a region! Or exp bottles or whatever
- Teleport to a region
- Create explosion at some location
- Place redstone torch at some location
- Restore a region using WorldEdit's snapshots
- Execute a command... normally, or let console execute it, or make player OP for a sec.
- Broadcast a list of messages
- Bankrobber, cannot be looted, until looter is killed
- TODO: Permission reward
- TODO: Lightning reward
- TODO: Fireworks reward
- Score reward
Notes
Protection
- You can't access Treasure Chests that are protected by other plugins.
Unless you use theignore-protection
command. - You can't break, burn or blow up Treasure Chests.
Unless you use thedelete
command.
Fake Inventories
- Players always see a personal "fake inventory" to prevent others from stealing.
This "fake inventory" is temporary. So don't expect something like a private chest. - Players also see a "fake inventory" with shared treasures. But it's not personal. First come, first serve!
- Use the
peek
command to open the real inventory.
Ranks
- Use lower-case letters, in the configuration and permissions. Also see the How-To page.
TODO
- Fix issues if there are any.
- Add features when issues are fixed.
Thanks for this incredibly practical plugin. Now that the latest version works really well - I use it for a bit of everything, including free starting kit for new players and hidden treasures around the map. It will be a great addition in the new adventures we are currently planning. Great work!
@NoahIvaldi
I kindof misunderstood/misread what you said about the /loot command.
Anyway... I'm not really going to work together with Codisimus. So it's up to Codisimus, to think of a way. To make it simpler... He knows about how I do the item stuff. But I bet it's not easy to change his plugin like that.
@NoahIvaldi
Nice that you're staying involved. I talked a little bit to Codisimus.
We kindof decided not to start a new plugin. And just learn from eachother to make our plugins better.
Working together on a new plugin... I don't know.
You will lose PL and you will lose TC. And you will end up with a plugin that is probably much like PL anyway. And gone is the simplicity!
Maybe we can think this over, when I have my code up on github.com.
I'm slowly figuring out how that works. With github, anybody can work together with me on this plugin. Using pull requests and stuff.
You talked about the /loot command and randomizing.
I don't like the loot-system. It's too complicated in my opinion. To get a little randomness, I will use my own randomize-idea. Sorry to let you down.
Edit: You made some good points on the furnaces. I have to think about how to implement that. I will probably start with TreasureDispensers first anyway.
Yeah, I know that your Treasure Chests only give items when opened; that's why I said, ""much like TC."
That's a good idea. Maybe Codisimus and you could come up with a simple /loot ['add' or 'remove'] (Name) command and a /loot end command to readily toggle which loot (treasure chest, whatever) you are working with. Of course, Macro Keyboard is kinda' the answer to life, the universe, and everything, but interaction toggle commands would be really handy.
The chances are customizable, though. In PL, you could just put all the chances at 100 for a basic treasure chest, or you can configure chances for items/nothing, items/other items, multiple items per collection, and all sorts of configuration. There's really no limits, with the chances.
For the record, I never suggested changing your plugin to be like PL (though you may want to take pointers from Codisimus when you're trying to add a feature that he already has). I suggest working with Codisimus for a joint effort, much like how HawkEye, LogBlock, and some others are working together to make Guardian. The fact is that PL has everything that TC has and much more; TC is probably just more lightweight because it's simpler. There comes a point where a developer has to be modest, be mature, stop trying to compete for no real reason, and work with others for a grand plugin. You could help Codisimus to make the operations simpler, and he could help you to make them more versatile. Everyone wins, not just those whom have so much server space that they can just download both plugins and run them individually. 'Sides, with two people working on a combined plugin, rather than two plugins that are striving for the same goals, we have half as much downloading and updating to do.
The furnace idea is kinda' nice. It'd be a little better than the usual routes, too; usually, plugins are made to give furnaces infinite fuel, and everyone says, "So, why don't I just use this other plugin to make ores drop as ingots? What's the point in having furnaces at all? This just takes out a key element of the game." Usually, they're right, but a different version with just the periodic case of free fuel in a furnace, infinite fuel for donors, and, like the guy on the forum said, maybe a free item stowed away in a furnace for the observant treasure hunters, along with whatever else you may have planned all sounds like a good idea.
I have just created a forum.
http://dev.bukkit.org/server-mods/treasurechest/forum/
Post your Requests and Bugs there
@aufdemrand
Haha that sucks. Ok I will keep it in mind. But I'm not sure when I will be working on this again.
Probably in a couple of weeks.
I won't... conciously... mimic PhatLoots. I will only add features that I like.. that I think fit in this plugin :)
That small todo-list I made (a couple of comments down)... will be added.
Although I'm not sure yet, about NoahlValdi's last request. It's probably a lot of work. Which I'm not motivated enough for.
I was also thinking of adding Unlimited Dispensers and Furnaces(fuel).
Especially the Unlimited dispensers are cool. (probably already exists but..)
I think it's cool to have it within this plugin.. It can help you make cool dungeons and boobytraps... leading to treasure chests. And it fits within this plugin. I will call it a Treasure Dispenser haha.
Eventhough we all now they're gonna dispense arrows and mob-eggs.
@Mtihc
Don't change your plugin to mimic PhatLoots. Truth is, I use both plugins... they do things similarly, but different. I find both awesome for different situations. Plus, I think that your plugin is easier to use.. I like putting the loot in and setting it with only one command.
I do have a feature request though.. when loading up the chests I was arranging items with air in between into little designs. For example, some apples and a golden apple, instead up just throwing them into the chest in slot 1 and slot 2, I arranged them to be more aesthetically pleasing. It wasn't until like 30 or so chests in that I realize once reloaded, TreasureChest doesn't care about how I arranged them, haha.
Anyway, my question is ... is there any way to maintain the structure of the items placed in the chest?
@NoahIvaldi
Yeah my plugin lacks some info and list commands.
My plugin also adds items when the player opens it.
Im just saying.. when "setting up" the chest... isn't it easy to "tell the plugin"... "hey! I'm talking about the items in the chest im looking at!".
Then, the plugin knows what items to take..
This instead of: /loot add, /loot add, /loot add, /loot add, /loot add, /loot add
PhatLoot uses percentage of chance... that does make it a bit harder...
I was planning on implementing randomness too, a little differently then PL though
@Mtihc
Ah, I see. Well, PL actually doesn't fill the chests with anything until they are opened, much like TC. However, some sort of- Oh, nope. He's already done it. /loot info (Name) lists all contents of a given PhatLoot. Omitting the (Name) of whatever PL you want to check out allows you to review the setup of the PL for whatever chest you are looking at.
@NoahIvaldi
Lol @ orgasmic.
Well, I mean, /tchest set... it just looks which items are in the chest.
I haven't really tried out PhatLoots... (shame on me)
PhatLoot uses a bunch of commands, to define the items right?
I think "looking in a chest" would help PhatLoot alot.
@Mtihc
Sweet. I hope that you two can work together. Your plugin is great, but his is just too awesome. Working together to make an even better version (Check out the PhatLoots comments to see some suggestions that I made.) would be simply orgasmic (slight exaggeration).
A list of items with one command? Do tell!
@NoahIvaldi
I sent him a PM. I'm not sure if working together is really necessary or practical.
I'd like the experience. But I'm sceptical if it will happen.
I did tell him about this plugin. And the way I get a list of items... using only 1 command.
It is up to him if he wants to do anything with the tip, and my offer.
@Mtihc
Yes. As it turns out, Codisimus has a plugin by the name of PhatLoots that can already do this and quite a lot more. In fact, the only capability that TC has of PL is that TC allows one to potentially loot many items from a single chest, while PL only allows up to five collections plus coins- Ohp, I lied. I just thought of a way to allow as many items as we want to be collected from a single chest with PL. It just wouldn't be as handy as TC in that regard, so we'd probably just set two or three PL chests down in an area if we really want to hand that many items out at one place. Ahem. Anyway, I strongly suggest that you get together with Codisimus and see if you can use what you've made to help him with his plugin, much like how HawkEye, LogBlock, and all the others are coming together to make Guardian. It really helps everyone when developers work together for a super-plugin, rather than making us decide between several copies that have the same goals.
@kman9_8
Thanks fur the nice wurds :D
@NoahIvaldi @gabizou
I still have not done anything yet :)
To Do:
Noahlvaldi's request.... i'm not sure if I understand..
Do you mean: Set different items, for certain players... on the same chest?
(just like /tchest set, but for a certain player)
Hope that makes sense. I bet that's what you meant.
Same chest.. different player -> different items.
Absolutely love this plugin especially for dungeons and spawn kits for new players that you can only use once! Great idea and almost a million different reasons I love this plugin. If there was a like button I would double click it :)
I definitely like the idea of a config option allow_two_player_opening: true/false
Been considering switching over since spout isn't required here, something I'm working to stop using.
@NoahIvaldi
Those are good suggestions.
Something like
/tchest setforget [player] <d> <h> <m> <s>
would be good indeed.Configurable default messages is a good idea too.
I'm not sure about the periodic resources for certain players. It sounds complicated haha. I have to read your text once more. And think about it :)
I have a few suggestions:
Could you make a /tchest setforget [player] <d> <h> <m> <s> code? The idea is that it would wait X time to delete just that player from its "Who's opened me?" list. I realize that it would conflict with the standard setforget command, but maybe you could disallow them from being applied to the same chest either by overwriting or by a message that tells the user that they can't use that command because the chest already has the other kind of forgetfullness. Alternatively, you could even go for a real challenge and tell people to refrain from being stupid. xD The reason for all this is that some may want a treasure chest to be looted regularly for most players, but provide periodic resources for a certain person (e.g. two iron for everyone, two iron per hour for the town blacksmith) without giving that person a private, unlimited chest or manually making the chest forget by teleporting to it and inputting a command every time.
The second suggestion only applies if you implement the first: Could a treasure chest register multiple players this way, either by setting separate /tchest setforget [player] times for such users (both of the town blacksmiths) or allowing multiple [player] entries, separated by commas, to be put into that command?
Finally, I was wondering if we could change the default messages. I'm a n00b, so please excuse me if this is already accessible via a simple configuration edit that every admin can perform, but if it's not, could you make a command to do so?
I realize that I'm asking a lot, but they're just some thoughts that you may want to implement in future updates. Great job on the plugin, keep up the good work, and thanks for your time.
Maybe you wanna download it from Google Docs:
@Mtihc
Can't wait for the approval. Thanks so much for being so responsive.