Configuration
Configuration files are located in config/autopickup/configs
. The file config/autopickup/map.conf
associates the configurations with the worlds. This way, different worlds can share the same configuration. You can specify a default configuration per dimension and globally.
By default, AutoPickup automatically generates a single configuration for all dimensions. Here’s what the configuration looks like:
Config {
Enabled=true
Block {
AutoPickup-Experience=true
AutoPickup-Item=true
Blacklist-Blocks=[]
Blacklist-Items=[]
FullInventory-Message="(action_bar)&4Your inventory is full."
}
Entity {
AutoPickup-Experience=true
AutoPickup-Item=true
Blacklist-Entities=[]
Blacklist-Items=[]
NoDrop-Experience=false
NoDrop-Item=false
FullInventory-Message="(action_bar)&4Your inventory is full."
}
}
Version=1
This example shows you the general structure of a configuration file.
Structure
As you can see a configuration file is currently divided in two parts.
Version
This field is used to hold a number that will indicate to AutoPickup whether the configuration is outdated or not. You should never modify this number. If the configuration is outdated, AutoPickup will make a backup of the file and try to update the structure to a newer version. If it’s not possible a new one will be generated.
Config
This part always has the same structure. Here are the different fields:
Enabled
determines whether AutoPickup is enabled in this world. If disabled, all other fields inConfig
will be ignored.Block.AutoPickup-Experience
determines whether automatic pickup for experience orbs is enabled when a block is broken by a player.Block.AutoPickup-Item
determines whether automatic pickup for items is enabled when a block is broken by a player.Block.Blacklist-Blocks
lists blocks for which automatic pickup is disabled.Entity.AutoPickup-Experience
determines whether automatic pickup for experience orbs is enabled when an entity is killed by a player.Entity.AutoPickup-Item
determines whether automatic pickup for items is enabled when an entity is killed by a player.Entity.NoDrop-Experience
determines whether experience orbs are removed when an entity die for any reason unrelated to a player.Entity.NoDrop-Item
determines whether items are removed when an entity die for any reason unrelated to a player.Entity.Blacklist-Entities
lists entities for which automatic pickup is disabled.Block|Entity.Blacklist-Items
lists items for which automatic pickup is disabled.Block|Entity.FullInventory-Message
defines the message sent to the player when an item can’t be picked up because of a full inventory
Messages
The messages are using the MiniMessage format. By default they are sent to the chat but you can specify to use another system. Here are some examples:
<dark_red>Your inventory is full.
will send “Your inventory is full.” colored in red to the chat.(action_bar)<dark_red>Your inventory is full.
will send “Your inventory is full.” colored in red to the action bar.(title20)Your inventory is full.
will display “Your inventory is full.” as a title during 20 ticks on the screen.(subtitle30)Your inventory is full.
will display “Your inventory is full.” as a subtitle during 30 ticks on the screen.(chat)(action_bar)Your inventory is full.
will send “(action_bar)Your inventory is full.” to the chat.