CC - MultiCrates

Jun 18, 2016
CC - MultiCrates
  • An example of a multicrate file is at the bottom of this page (MULTICRATE FILES END WITH .multicrate NOT .crate)

    Note: MultiCrates simply take the key out of the player's inventory, they don't have to actually be holding it!

    MultiCrates have some very small but VERY IMPORTANT differences:

    The most important difference is the gui.
    The GUI has 2 sections, ROWS and OBJECTS.
    ROWS is the format of the multi-crate's inventory and is how the inventory will be displayed to the player.
    OBJECTS are what the symbols in the format of the ROWS will be replaced with.
    An example below:
    Code (Text):

    gui:
      rows:
        - '#########'
        - '#1##2##3#'
        - '#########'
      objects:
        '#': AIR;0
        '1': BeginnerCrate
        '2': MiddleCrate
        '3': MasterCrate
     
    In this inventory, it will have 3 rows, the top and bottom row both being full of #s which are simply AIR blocks (as shown in the objects setup).
    Then, in spots 11, 14, and 17 (where the 1, 2, and 3 numbers are), there will be the Beginner, Middle and Master crate displayed.

    Objects can be formatted MATERIAL NAME;DURABILITY OORR you can just type the name of a crate.


    MultiCrates have many similarities to other crates:
    MultiCrates have the same formatted PARTICLES and HOLOGRAMS as all other normal crates:
    Code (Text):

    hologram:
      lines:
        - '&a&lMulti Crate'
        - '&4&l---'
        - '&e&oBeginnerCrate'
        - '&e&oMiddleCrate'
        - '&e&oMasterCrate'

    play:
      particles:
        - 'FLAME, .7, .7, .7, .05, 1'
        - 'ANGRY_VILLAGER, .7, .7, .7, .05, 1'
        - 'PORTAL, .5, .5, .5, 1, 2'
     
    MultiCrates can also have (and must have some of) the same beginning values as normal crates:
    Code (Text):

    enabled: true
    cooldown: 10
    inventory-name: '&b&lMULTI&7Crate'
    permission: multicrates.allcrates
    hologram-offset: .2

    obtain-method: STATIC

    display:
      type: block

    crate:
      material: Ender_chest;0
      name: '&5&lMulti Crate'
      enchantment: DURABILITY;0
      lore:
        - ''
        - '&5&lCrates&e&l:'
        - '&7BeginnerCrate'
        - '&7MediumCrate'
        - '&7MasterCrate'
     

    Example of an entire MultiCrate file and what it will look like

    Code (Text):

    enabled: true
    cooldown: 10
    inventory-name: '&b&lMULTI&7Crate'
    permission: multicrates.allcrates
    hologram-offset: .2

    obtain-method: STATIC

    display:
      type: block

    crate:
      material: Ender_chest;0
      name: '&5&lMulti Crate'
      enchantment: DURABILITY;0
      lore:
        - ''
        - '&5&lCrates&e&l:'
        - '&7BeginnerCrate'
        - '&7MediumCrate'
        - '&7MasterCrate'

    gui:
      rows:
        - '#########'
        - '#1##2##3#'
        - '#########'
      objects:
        '#': AIR;0
        '1': BeginnerCrate
        '2': MiddleCrate
        '3': MasterCrate

    hologram:
      lines:
        - '&a&lMulti Crate'
        - '&4&l---'
        - '&e&oBeginnerCrate'
        - '&e&oMiddleCrate'
        - '&e&oMasterCrate'

    play:
      particles:
        - 'FLAME, .7, .7, .7, .05, 1'
        - 'ANGRY_VILLAGER, .7, .7, .7, .05, 1'
        - 'PORTAL, .5, .5, .5, 1, 2'
    [/I]
     
  • Loading...
  • Loading...