BetterComposter was designed to make the composter more useful. Each composter can drop different items determined by the items you compost.
Features:
- Customize what items should drop for what composted items. (Read the concept under How-To)
- Use the composter as a kind of auto-crafter
- Customize nearly all messages sent to a player.
- Hopper Support.
- Mess-Up protection for all configurations.
- Precise console messages.
- Per world files for composters for easy data management.
- Configure nearly everything with inGame commands.
- Reload commands.
Important Information:
- If you add a category old composters have to be updated at least once to recognize them (by replacing or harvesting).
- Please have a look at the presets in How-To to prevent any unwanted surprises. All presets can be disabled of course.
Installation:
Just put the jar file into your server's plugins folder and start your server. The configuration files will be created shortly after.
Commands:
All commands support tab-completion and also will tell you exactly what did go wrong, so you might as well just try it out a little bit.
- Aliases: /bc [subcommand]
- /bettercomposter: credits
- /bettercomposter help: Shows all for that player available commands.
- /bettercomposter category list: Shows a list of all categories.
- /bettercomposter category info : Shows some info about a specific category.
- /bettercomposter category add [] []: Adds a new category. If no priority is specified, 1 is used instead. All added materials/harvestables will have chance 1.
- /bettercomposter category remove : Removes an existing category.
- /bettercomposter category modify : Modifies an existing category. Available options: set (to set the priority), add, remove (to add/remove harvestables).
- /bettercomposter category reload []: Reloads all categories. If save is not specified, true is used instead. If save is set to false it will only load the files again and will NOT save made changes.
- /bettercomposter compostable list: Shows a list of all compostables.
- /bettercomposter compostable info: Shows some info about a specific compostable.
- /bettercomposter compostable add [] []: Adds a new compostable. If no chance is specified, 1 is used instead.
- /bettercomposter compostable remove : Removes an existing compostable.
- /bettercomposter compostable modify : Modifies an existing compostable. Available options: set (to set the chance), add, remove (to add/remove categories)
- /bettercomposter compostable reload []: Reloads all compostables. If save is not specified, true is used instead. If save is set to false it will only load the files again and will NOT save made changes.
- /bettercomposter composter info [ ]: Shows some info about a composter. Coordinates must be formatted like "X,Y,Z". If no world & coordinates are specified, the target you are looking at is used instead.
- /bettercomposter composter removeInvalid []: Removes all invalid composters from a specific world. If no world is specified, it will do it for all loaded worlds. This command should be used if you regenerate (parts of) a world.
- /bettercomposter composter reload []: Reloads all composters. If save is not specified, true is used instead. If save is set to false it will only load the files again and will NOT save made changes.
Permissions:
All orange permissions are not granted by op. This is mainly for the unsave reloading.
- bettercomposter.*: Gives access to all commands.
- bettercomposter.cmd.category.*: Gives access to all category commands.
- bettercomposter.cmd.compostable: Gives access to the category command.
- bettercomposter.cmd.category.list: Gives access to the category list command.
- bettercomposter.cmd.category.info: Gives access to the category info command.
- bettercomposter.cmd.category.add: Gives access to the category add command.
- bettercomposter.cmd.category.remove: Gives access to the category remove command.
- bettercomposter.cmd.category.modify.*: Gives access to all category modify commands.
- bettercomposter.cmd.category.modify.add: Gives access to the category modify add command.
- bettercomposter.cmd.category.modify.remove: Gives access to the category modify remove command.
- bettercomposter.cmd.category.modify.set: Gives access to the category modify set command.
- bettercomposter.cmd.category.reload: Gives access to the category reload command.
- bettercomposter.cmd.category.reload.unsave: Gives access to the category reload command for not saving.
- bettercomposter.cmd.compostable.*: Gives access to all compostable commands.
- bettercomposter.cmd.compostable: Gives access to the compostable command.
- bettercomposter.cmd.compostable.list: Gives access to the compostable list command.
- bettercomposter.cmd.compostable.info: Gives access to the compostable info command.
- bettercomposter.cmd.compostable.add: Gives access to the compostable add command.
- bettercomposter.cmd.compostable.remove: Gives access to the compostable remove command.
- bettercomposter.cmd.compostable.modify.*: Gives access to all compostable modify commands.
- bettercomposter.cmd.compostable.modify.add: Gives access to the compostable modify add command.
- bettercomposter.cmd.compostable.modify.remove: Gives access to the compostable modify remove command.
- bettercomposter.cmd.compostable.modify.set: Gives access to the compostable modify set command.
- bettercomposter.cmd.compostable.reload: Gives access to the compostable reload command.
- bettercomposter.cmd.compostable.reload.unsave: Gives access to the compostable reload command for not saving.
- bettercomposter.cmd.composter.*: Gives access to all composter commands.
- bettercomposter.cmd.composter: Gives access to the composter command.
- bettercomposter.cmd.composter.info: Gives access to the composter info command.
- bettercomposter.cmd.composter.removeInvalid: Gives access to the composter removeInvalid command.
- bettercomposter.cmd.composter.reload: Gives access to the composter reload command.
- bettercomposter.cmd.composter.reload.unsave: Gives access to the composter reload command for not saving.
Code (YAML):
# BetterComposter by Ultimate_Hand # This plugin provides some more use to the composter. messages:
credits: "Use /bettercomposter help for all available commands." noPerm: "&4You do not have permission." noSubCmd: "&CNo such (sub-)command. Use /bettercomposter help for all available commands." usagePrefix: "&CUsage:" help:
header: "List of all available commands:" composter: "Modify composters" category: "Modify categories and harvestables" compostable: "Modify compostables" category:
cmd:
listHeader: "List of all loaded categories:" info:
notFoundError: "&Cthere is no category with the given name." prefixes:
name: "Name" priority: "Priority" harvestables: "Harvestables" add:
duplicateCategoryError: "&Ccategory already exists with this name." invalidMatError: "&Cmaterial could not be found." invalidIntError: "&Cpriority was not valid." success: "&2category was successfully added." remove:
notFoundError: "&Cthere is no category with the given name." noDefRemoveFail: "&Cthe default category cannot be removed." success: "&2category was successfully removed." reload:
success: "&2reloaded categories successfully." modify:
notFoundError: "&Cthere is no category with the given name." invalidMatError: "&Cmaterial could not be found." add:
duplicateMatError: "&Cmaterial is already set for category." invalidIntError: "&Cchance was not valid." success: "&2material was successfully added." remove:
success: "&2material was successfully removed." set:
invalidIntError: "&Cpriority was not valid." success: "&2priority of category was successfully changed." compostable:
cmd:
listHeader: "List of all loaded compostables:" info:
notFoundError: "&Cthere is no compostable with the given name." prefixes:
name: "Material" chance: "Chance" categories: "Categories" add:
noMatFail: "&Cfirst argument was no valid material (case sensitive!)" invalidDoubleError: "&Cchance must be a double between 0 and 1 (both inclusive)" success: "&2compostable was added successfully." remove:
notFoundError: "&Cthere is no compostable with the given name." success: "&2compostable was removed successfully." reload:
success: "&2reloaded compostables successfully." modify:
notFoundError: "&Cthere is no compostable with the given name." catNotFoundError: "&Ccategory was not found." add:
duplicateCatError: "&Ccategory is already set for this compostable." success: "&2category was successfully added to compostable." remove:
success: "&2category was successfully removed from compostable." set:
invalidDoubleError: "&Cchance must be a double between 0 and 1 (both inclusive)" success: "&2chance of compostable was successfully changed." composter:
cmd:
info:
notFoundError: "&Cthere is no composter at the given location." prefixes:
world: "World" coords: "Coordinates" categories: "Categories" removeInvalid:
worldNotFoundError: "&Cthere is no world with the given name loaded." success: "&2removed all invalid composters." reload:
success: "&2reloaded composters."