Configuration

Notes:

  1. Different backpacks MUST have different names from the other backpacks. That includes the config name and the name in-game.
  2. The dropContents option will also destroy the contents after dropping them.

Data:
  #Enter mysql to use the MySQL database for data
  FileSystem: flatfile
  MySQL:
    database: minecraft
    username: root
    password: pass
    ip: localhost
    port: 3306

Config:
  #Enabled/disable permissions. Warning: Disabling permissions will allow everything to be used
  usePermissions: true

  #What to do when multiple backpacks are found in an inventory. 
  #This handles the values of movement speed and hunger rates.
  MultipleBackpacksInInventory:
    #Get the average of the backpacks values.
    average: false
    #Adds the backpacks values together
    add: true

#Backpacks you create go under here, you can create as many as you want.
#Each backpack you create must contain the same options as the example.
Backpacks:
  #The backpack name
  exampleBackpack:
    #The size in slots of the backpack, must be a multiple of 9, up to 54
    Size: 18
    #Adds a glow to the backpack
    addGlow: true
    #Options 'left_click' and 'right_click' are supported.
    OpenWith: right_click
    #If this backpack can be bought via command.
    Purchasable: true
    #The price of the backpack via command.
    Price: 2000
    #If the backpack can be crafted
    UseRecipe: true
    #Will override the following items recipe and craft a backpack instead. Set to '0' to disable
    Override: '54'
    #The recipe that the backpack will use to be crafted
    Recipe:
      #0 represents an empty space
      #Each number represents a slot in the crafting table.
      #You can use item data.
      - '334,334,334'
      - '334,35:12,334'
      - '334,334,334'

    BackpackItem:
      #The item id the backpack will represent. You may use item data.
      id: '54'
      #The name of the backpack that will be shown in-game.
      name: '&aBackpack'
      #The lore of the backpack, can be empty.
      lore:
        - '&cA container for carrying items.'
        - '&cTheres a lot of space inside.'

    #Just like the Blacklist, but only allows the items listed to be put in the backpack
    UseWhitelist: false
    ItemWhitelist:
      - ''

    #Disable certain items/backpacks from being placed in this backpack
    #Supports backpack names and item id's.
    #Add 'enchant', 'lore', or 'all' to specify which type of the item to use
    #Ex: '276' would only block a diamond sword
    #Ex: '276:enchant' would only block a diamond sword that is enchanted
    #Ex: '276:lore' would only block a diamond sword with lore
    #Ex: '276:all' would block all diamond swords
    ItemBlacklist:
      - 'exampleBackpack'
      - '276:all'

    #Handles what happens when a backpack is found on death.
    onDeath:
      #Will drop the contents of the backpack.
      dropContents: true
      #Will remove all contents of the backpack.
      destroyContents: true
      #Will drop the backpack where the player died.
      dropBackpack: false
      #Will keep the backpack when respawned.
      keepBackpack: false

    #Slowing of movement speed is handled by this feature.
    WalkSpeedFeature:
      enabled: true
      #0.2 is the normal walk speed.
      walkingSpeed: 0.19

    IncreasedHungerFeature:
      enabled: true
      #A hunger bar is half of a chicken, or whatever you call them
      #This option will deplete extra hunger bars when naturally starving
      extraHungerBarsToDeplete: 1
      #This option will subtract hunger bars that should be given when eating food.
      hungerBarsToSubtractWhenEating: 0

Comments

Posts Quoted:
Reply
Clear All Quotes