Generator Lenses
What is this plugin about?
This plugin allows you and your players to customize the drops of cobblestone generators based on lenses allowing your server to have an infinite amount of cobblestone generator configurations! You can even give each lens a custom recipe!
What do the lenses do?
When you place a lens above the place where cobblestone would be generated, the cobblestone formed will turn into an assortment of blocks you define randomly selected. You can change the chance something has to spawn as well!
How do I set this up?
How to set up lenses:
You can also edit straight through the lenstype.yml file, here is an example:
Keep in mind "chance" means that in a roll of 1-1000 if the roll is 700, but one block has a chance of 800, another of 750, and another of 100, the block of chance 750 will be selected.
Code (YAML):
lenses:
earth:
material
: DIRT
item-name
: '&6earth'
lore
:
- '&6this part is optional'
outputs:
DIRT:
chance
: 500
SAND:
chance
: 900
GRAVEL:
chance
: 10
CLAY:
chance
: 200
How to set up lens recipes:
Commands
/reloadconfig this one is pretty straightforward, reloads any config files you manually changed.
/givelens [lens-name] [player-name (optional)] Give player specified lens.
/lens [lens-name] Opens menu for player to edit specified lens
/createlens [lens-name] [item-name] [item-material] [lore] Creates lens and lens item. Adding lore is optional. An example of this command being run is:
/createlens example example GRAY_STAINED_GLASS example_lore,lore
For the lore, use _ to mark spaces and , to mark new lines.
/deletelens [lens-name] Deletes all information based on specified lens
Permissions
"generatorlenses.commands" Allows the user to use all commands in plugin
"generatorlenses.commands.give" Allows the user to use /givelens
"generatorlenses.commands.reload" Allows the user to use /reloadconfig
"generatorlenses.commands.editlens" Allows user to use /lens & /createlens
"generatorlenses.commands.delete" Allows user to use /deletelens
"generatorlenses.edit" Allows the user to edit every aspect of the lenses in menus
"generatorlenses.edit.lens" Allows user to edit every non-recipe aspect in menus
"generatorlenses.edit.recipes" Allows user to edit lens recipe in menus
If you find bugs, need help, or simply have a suggestion please contact me on discord at meep8496