This plugin lets players save their experience points in books. It’s usefull functionality to save experience, store it, or trade with it. Players can even use this books to mend their items.
Plugin commands: /expbook
/eb
These commands let you check which lines in the book are accepted for storing experience, and it will also show whether any percentage of the experience will be lost.
How to use it? It’s simple:
Craft a Book and Quill with a feather, ink sack, and a book.
In the book, write one of the accepted lines to store experience, e.g., “Save 100 experience”
Sign the book. The title isn’t important, as long as the line inside is valid.
Congratulations! You’ve created an Enchanted Book with your experience; now you can read it
Config:
Code (YAML):
# Name and lore are self-explanatory. # {*} in the name and lore represents the experience saved in the book. # It's not necessary, but you may want to display how much experience is saved. expbook:
name: "{*} experience" lore: -
"Book with {*}" -
"experience points" -
"written upon its pages" # NeededLines are the lines used to save experience in the book. # Each line must include {*} and be in all uppercase; however, in the game, you don't have to write them in uppercase. neededLines: -
"SAVE EXPERIENCE {*}" -
"EXPERIENCE {*}" -
"SAVE {*} EXPERIENCE" -
"SAVE {*} EXP"
# This is percentage of the experience that be lost when saving in experience book takepercentage: 0
Create an option in the configuration to pay with a vault or a percentage of experience for saving experience.
I decided to not use Vault because it didn't fit with the way the book was being written.
Change the validation for necessary lines so that you don’t need them in uppercase in the configuration.
If you encounter any bugs or something isn't working as intended, please let me know.
Check out my other work:
Additionally if you'd like, you can
I would greatly appreciate it!