Chunk Collector is a plugin that allows you to automatically collect and sell items using a “collector”. There are two types of collectors, Drop Collectors and Crop Collectors. Each collector can be managed through a GUI system. All data is stored in an automatically generated and managed H2 SQL Database.
This plugin would be most useful for servers with grinding integrated into the gamemode, like Factions, Skyblock, or Survival. For example, you could have a mob grinder setup with a chunk collector that automatically sells the gains gotten from the grinder.
Built-In SQL Database
GUI Menu System
Automatically Picks Up Mob Drops
Automatically Harvests Fully-Grown crops
Sells When Full
Robust Configuration Options
Buy Command for Players
Upgrade System
Hooks into your Economy Plugin with Vault!
Drop Collectors Drop collectors, otherwise known as mob drop collectors, is a collector that you place in a chunk and it will begin to automatically pick up all mob drops in the chunk. It can pick up any items from any mob in the game. Once the collector has reached max storage, it will sell all items.
Crop Collectors Crop collectors automatically harvest fully grown crops in a chunk. It can pick up wheat, potatoes, cacao, sweet berries, beetroots, carrots, netherwart, sugar cane, and cactus. Once the collector has reached max storage, it will sell all items and set the crops back to baby crops.
Upgrades There are upgrade options for each collector:
Storage Capacity: Increases the amount of total items that can be held in a collector before the items are sold
Fortune: Applies a fortune level enchantment(1-3) while harvesting crops to produce more output from the drops.
More upgrades coming soon
/collector
Permissions: All players have access to the core command(/collector), and /collector help.
/collector buy:
Code (Text):
chunkcollector.buy
/collector give:
Code (Text):
chunkcollector.give
/collector reload:
Code (Text):
chunkcollector.reload
chunkcollector.break - Allows you to break any collector, regardless of ownership chunkcollector.open - Open any collector, regardless of ownership
chunkcollector.admin - Grants all the permissions listed above
Code (YAML):
[/COLOR
][/B
] [COLOR=rgb
(255, 0, 0
)]##Worlds that collectors will work in worlds: - 'world'
- 'skyworld'
##Cost of each collector in /collector buy collector-cost:
drop: 10000
#Drop collectors will cost 10,000 crop: 2500
#crop collectors will cost 2,500
##Set whether collectors can be destroyed by explosions or not bomb-proof: true
#if true, explosions will not affect collectors
##Set whether the collector(if a hopper) should be able to pick up and transfer items hopper-transfer: true
##Set the duration between collections. 1200 ticks = 1 minute # http://mapmaking.fr/tick/ # NOTE: Restart required after changing this option collection-duration: 1200
#Collectors will pick up items/harvest crops every 1200 ticks
##Auto-Kill Mobs #Decide whether you want mob collectors to automatically kill mobs rather than picking up the just mob drops #Items will not drop onto the ground, they will directly go into the collector auto-kill: false
#How much time in between automatically killing mobs auto-kill-interval: 1100
#Server will auto kill mobs near a drop collector every 1100 ticks
#If this is true, drop collectors will put them mob drops into the collector #directly after a mob dies, instead of dropping the items on the ground. mob-drop-auto-pickup: false
##Capacity Upgrades (The max storage of a collector before it sells) #You can add as many capacity levels as you want, just make sure it increases by one each level #Also, don't forget to set a price for each capacity storage-upgrades:
1:
items: 1000
price: 0.0
#this price doesn't matter, they start off at this level 2:
items: 2500
price: 10000.0
3:
items: 10000
#level 3 can hold a max of 10000 items price: 500000.0
#this upgrade costs 500,000.0 4:
items: 20000
price: 1000000.0
##There are three fortune levels, you can set the price for each one ##Note: You start off at fortune level zero fortune-prices:
1: 10000.0
#Upgrade from zero to one costs 10,000 2: 100000.0
3: 2000000.0
#Use these material names: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html #Ensure that you choose a placeable block Materials:
drop: 'HOPPER'
crop: 'HOPPER'
############################################
########################################### ##Message Configuration - Edit messages sent to the player Messages:
no-permission: '&4You don
"t have permission to run this command.' got-collector: drop: '&aDrop Collector obtained.' crop: '&aCrop Collector obtained.' given-collector: drop: '&aYou have been given a Drop Collector.' crop: '&aYou have been given a Crop Collector.' reloaded: '&aThe config.yml has been reloaded.' upgrade-complete: storage: '&eCollector Storage Capacity has been upgraded.' fortune: '&eCollector Fortune Level has been upgraded.' max-storage: '&7Your collector is at max storage capacity.' max-fortune: '&7Your collector is at max fortune.' cant-afford-upgrade: '&4You cannot afford this upgrade.' first-page: '&7You are on the first page.' last-page: '&7You are on the last page.' #############################################
############################################ ##Command Configuration - Edit All Commands Commands: Buy: name: 'buy' description: 'Buy a chunk collector' syntax: '/collector buy' Give: name: 'give' description: 'Give yourself or another player a chunk collector' syntax: '/collector give <type> [player]' Help: name: 'help' description: 'See commands and info' syntax: '/collector help' Reload: name: 'reload' description: 'Reload the configuration file' syntax: '/collector reload'[/COLOR] [B][COLOR=rgb(255, 0, 0)]