MagicBookshelf by Tim Clancy - 1.2.5 Compatible
Magical Bookshelves!
Release of Source Code:
As of 2.11.14, Tim has released all code free for use here: https://github.com/TimTinkers/MagicBookshelf. The code you will find there is the plugin in its most current state. Enjoy, and feel free to reproduce in any manner you'd like, just so long as credit is always given for any code used. It would also be very kind of you to link to this page as well.
Goal:
This plugin seeks to improve upon the vanilla Minecraft enchanting system.
The Minecraft system takes a very long time to get to higher levels of experience, and resets you to a much lower level upon dying. This encourages many players to make mob grinders to try and earn experience, which is not fun for anyone. The way MagicBookshelf tries to fix this is by allowing players to quickly and simply store their experience points inside of bookshelves, to be withdrawn later. By allowing users to slowly build up their levels over time, it is possible to get to that 30th level without sitting at a mob grinder all day.
Features:
Right-click a bookshelf to store your experience inside it.
Left-click a bookshelf to take the experience out of it.
Add a sign with [XP_Private] on the first line, followed by up to three usernames, to lock a bookshelf for certain users. Only these users will be able to break, withdraw from, or deposit to that bookshelf.
Permissions supported:
- magicbookshelf.lock gives users the ability to lock their shelves.
- magicbookshelf.break gives users the ability to break ANY shelves.
- magicbookshelf.store gives users the ability to store xp in shelves.
- magicbookshelf.withdraw gives users the ability to withdraw xp from shelves.
It's that easy! Video of use:
If you are Polish, adeknijak made this neat video:
If you are Czech, LPmareonCZ made this neat video:
Configuration:
There isn't any way to configure settings right now. Just be certain that the MagicBookshelf folder (and its included shelves.txt file within) make it into the plugin folder. There are both Java 7 and Java 6 versions, choose Java 6 if you aren't sure.
To do
- Add configurable settings.
- Add permissions support.
- Add an effect to bookshelves that have experience in them.
@TfT_02
Yep, permissions are planned.
@Forecaster71
My apologies, I finally figured out how to stop this bug. It was a problem with the amount of xp not being updated when an enchanting table is used. If you grab file v0.5 this bug is fixed.
@insers
@fromgate
Permissions are on the way, I plan to start working on them within the week. :)
I'm having massive problems with large scale xp duplication.
I cannot let players use this if they get massive amounts of xp from it for free.
I need permissions for this, only 2 .permissions to store xp and permissions to take xp :) can it be done for me? please!
Great idea!
Is any bookshelf is possible to use as XP-container?
Can realize this idea with help of your plugin: Only players with required permissions can magic bookshelves. Player (anyone) can put and get xp from magic bookshelf, but cannot create new magic bookshelves.
I'm going to create an XP-deposit on our server. Player renting room where booshelf located for some days. He can store XP in magic bookshelf located int room. He can use magic bookshelf until he paying for room. If he forget to paym, other player can rent the room and (surprise!!!) he can get all experience in the magic bookshelf.
@MedlarGW
The same goes for you. Are you sure you were using the most recent build? Have you been able to replicate the bug at all? I don't really see any reason why this should happen...
@KradG
I've been trying to replicate your bug using build #2063 (1.2.3-R0.3), and cannot. Are you sure this is still an issue with the more recent builds?
No rush, thanks for the reply.
@Robertf11
Unfortunately no.
I'm busy with school and such, but there's going to be a break soon so I'll have plenty of time to sort things out.
Any update on if this is fixed or not?
@KradG
Clearly there's a bug in how I'm handling withdrawing experience. I'm still trying to figure out whether or not this is only with the new build though. Can you tell me what build you're using?
By trying to deposit and withdraw xp a couple of time I get lvl 13 xp even when not having any xp.
@MedlarGW
Thanks for the heads up, I'll do some testing on this tonight.
Just installed this plugin on the recommended 1.2.3 beta fo CB. I stored 54 levels-worth of exp into a bookshelf and only got 13 levels-worth back out. :( Is this a bug or have I done something wrong?
@DoubleZ
Currently, yes. Protection has been added to the to do.
If you use Lockette, surrounding a shelf with protected doors is a good workaround in the meantime.
hi, I have a question, if A store exp in a bookshelf, can B steal A's stored exp?
There's a Java 6 version up for those of you who need it. This plugin is also 1.2 compatible.
@kahlilnc
This seems to be the case. I know my server host uses Java 7.
@Derthmonuter
Most server host, host with Java 7, if I am correct.