Skip to content
Michael edited this page Oct 8, 2016 · 15 revisions

Read about the permissions and commands here and about the types here. On this page you will learn how to create your own backpacks.

I recommend that you use the bpcreate command to create new backpacks. It's much easier because every step is explained ingame. Start creating a backpack with /bpcreate.

There are comments in the config but I want to explain it a bit more. You can find a sample configuration here. Lines that start with # are my explanation. Make sure you make as many spaces as I. This is important for .yml files.

BackPacks:

  # This is a list of all enabled backpacks. You don't have to enable all backpacks you create.
  # In this case we enable the backpack test
  enabled:
    1: "test"

Now we define what the backpack test should be:

  test:
    # the name of the item
    name: "&bTest &3BackPack"

    # the type of the backpack
    # you can find all types here: https://github.com/michael1011/BackPacks/wiki/Types
    type: "normal"

    # this is REALLY IMPORTANT
    # the the description must be unique because the backpacks are identified with it
    description:
      1: "&fThis is the &bTest &3BackPack&f."
      2: "&8Right click to open it."

    # only required if the backpack has the type normal
    # and must be divisible by 9 
    slots: 9

    # get a list of all materials: http://bit.ly/21vbetj
    # the material of the backpack
    material: "COMPASS"

    # how to craft it
    # must be unique 
    crafting:
      1: "I+L+I"
      2: "L+C+L"
      3: "I+L+I"

      materials:
        # the letters from above and the materials from 'material'
        I: "IRON_INGOT"
        L: "LEATHER"
        C: "COMPASS"

Save the config and reload the server or use /bpreload. Your new backpack should work!

Additional options

There are some additional options you can set but these are optional:

  • You can disable the crafting of a backpack:
    crafting:

      # if you want to disable the crafting you have to set only this value
      disabled: true
  • Set the title of the inventory the backpack (only normal and furnace backpacks) opens:
    type: "normal"

    inventoryTitle: "&8Custom inventory title"

    description:
  • The plugin can play a sound when a backpack opens and closes (find all available sounds here):
    type: "normal"
  
    sounds:
      open: "ENTITY_ENDERMEN_TELEPORT"
      close: "ITEM_BOTTLE_FILL"

    description:
Clone this wiki locally