Itemsconfig.yml / Chest Filling Randomly #119


  • New
  • Other
Open
Assigned to kitskub
  • _ForgeUser7676464 created this issue Aug 13, 2013

    Having so many issues figuring out the Items.config.

    Here's my Itemsconfig.yml file:

    # Example game
    # To use one of these, when creating a game do
    # /hga add itemset <name-of-game> <name-of-itemset>  NOTE make sure there are no space in the list of itemsets
    global:
      use-match-material: true
      chest-loot:
    -  ==: Item
        values:
          chance: .2
        stack:
          ==: org.bukkit.inventory.ItemStack
          type: IRON_SWORD
          damage: 1
          amount: 1
          meta:
            ==: ItemMeta
            meta-type: UNSPECIFIC
            enchants:
              SHARPNESS: 1
    -  ==: Item
        values:
          chance: .45
        stack:
          ==: org.bukkit.inventory.ItemStack
          type: IRON_SWORD
          damage: 1
          amount: 1
          meta:
            ==: ItemMeta
            meta-type: UNSPECIFIC
            enchants:
    -  ==: Item
        values:
          chance: .5
        stack:
          ==: org.bukkit.inventory.ItemStack
          type: STONE_SWORD
          damage: 1
          amount: 1
          meta:
            ==: ItemMeta
            meta-type: UNSPECIFIC
            enchants:
    -  ==: Item
        values:
          chance: .1
        stack:
          ==: org.bukkit.inventory.ItemStack
          type: IRON_CHESTPLATE
          damage: 1
          amount: 1
          meta:
            ==: ItemMeta
            meta-type: UNSPECIFIC
            enchants:
    -  ==: Item
        values:
          chance: .5
        stack:
          ==: org.bukkit.inventory.ItemStack
          type: LEATHER_TUNIC
          damage: 1
          amount: 1
          meta:
            ==: ItemMeta
            meta-type: UNSPECIFIC
            enchants:
    -  ==: Item
        values:
          chance: .1
        stack:
          ==: org.bukkit.inventory.ItemStack
          type: IRON_HELMET
          damage: 1
          amount: 1
          meta:
            ==: ItemMeta
            meta-type: UNSPECIFIC
            enchants:
    -  ==: Item
        values:
          chance: .1
        stack:
          ==: org.bukkit.inventory.ItemStack
          type: IRON_LEGGINGS
          damage: 1
          amount: 1
          meta:
            ==: ItemMeta
            meta-type: UNSPECIFIC
            enchants:
    -  ==: Item
        values:
          chance: .5
        stack:
          ==: org.bukkit.inventory.ItemStack
          type: LEATHER_CAP
          damage: 1
          amount: 1
          meta:
            ==: ItemMeta
            meta-type: UNSPECIFIC
            enchants:
    -  ==: Item
        values:
          chance: .35
        stack:
          ==: org.bukkit.inventory.ItemStack
          type: IRON_BOOTS
          damage: 1
          amount: 1
          meta:
            ==: ItemMeta
            meta-type: UNSPECIFIC
            enchants:
    -  ==: Item
        values:
          chance: .35
        stack:
          ==: org.bukkit.inventory.ItemStack
          type: LEATHER_PANTS
          damage: 1
          amount: 1
          meta:
            ==: ItemMeta
            meta-type: UNSPECIFIC
            enchants:
    -  ==: Item
        values:
          chance: .05
        stack:
          ==: org.bukkit.inventory.ItemStack
          type: DIAMOND_BOOTS
          damage: 1
          amount: 1
          meta:
            ==: ItemMeta
            meta-type: UNSPECIFIC
            enchants:
    -  ==: Item
        values:
          chance: .05
        stack:
          ==: org.bukkit.inventory.ItemStack
          type: DIAMOND_CHESTPLATE
          damage: 1
          amount: 1
          meta:
            ==: ItemMeta
            meta-type: UNSPECIFIC
            enchants:
    -  ==: Item
        values:
          chance: .05
        stack:
          ==: org.bukkit.inventory.ItemStack
          type: DIAMOND_LEGGINGS
          damage: 1
          amount: 1
          meta:
            ==: ItemMeta
            meta-type: UNSPECIFIC
            enchants:
    -  ==: Item
        values:
          chance: .05
        stack:
          ==: org.bukkit.inventory.ItemStack
          type: DIAMOND_HELMET
          damage: 1
          amount: 1
          meta:
            ==: ItemMeta
            meta-type: UNSPECIFIC
            enchants:
    -  ==: Item
        values:
          chance: .5
        stack:
          ==: org.bukkit.inventory.ItemStack
          type: LEATHER_BOOTS
          damage: 1
          amount: 1
          meta:
            ==: ItemMeta
            meta-type: UNSPECIFIC
            enchants:
    -  ==: Item
        values:
          chance: .18
        stack:
          ==: org.bukkit.inventory.ItemStack
          type: CHAIN_LEGGINGS
          damage: 1
          amount: 1
          meta:
            ==: ItemMeta
            meta-type: UNSPECIFIC
            enchants:
    -  ==: Item
        values:
          chance: .18
        stack:
          ==: org.bukkit.inventory.ItemStack
          type: CHAIN_BOOTS
          damage: 1
          amount: 1
          meta:
            ==: ItemMeta
            meta-type: UNSPECIFIC
            enchants:
    -  ==: Item
        values:
          chance: .18
        stack:
          ==: org.bukkit.inventory.ItemStack
          type: CHAIN_CHESTPLATE
          damage: 1
          amount: 1
          meta:
            ==: ItemMeta
            meta-type: UNSPECIFIC
            enchants:
    -  ==: Item
        values:
          chance: .18
        stack:
          ==: org.bukkit.inventory.ItemStack
          type: CHAIN_HELMET
          damage: 1
          amount: 1
          meta:
            ==: ItemMeta
            meta-type: UNSPECIFIC
            enchants:
    -  ==: Item
        values:
          chance: .30
        stack:
          ==: org.bukkit.inventory.ItemStack
          type: BOW
          damage: 1
          amount: 1
          meta:
            ==: ItemMeta
            meta-type: UNSPECIFIC
            enchants:
    -  ==: Item
        values:
          chance: .30
        stack:
          ==: org.bukkit.inventory.ItemStack
          type: ARROW
          damage: 1
          amount: 4
          meta:
            ==: ItemMeta
            meta-type: UNSPECIFIC
            enchants:
    -  ==: Item
        values:
          chance: .20
        stack:
          ==: org.bukkit.inventory.ItemStack
          type: ARROW
          damage: 1
          amount: 7
          meta:
            ==: ItemMeta
            meta-type: UNSPECIFIC
            enchants:
    -  ==: Item
        values:
          chance: .25
        stack:
          ==: org.bukkit.inventory.ItemStack
          type: EXP_BOTTLE
          damage: 1
          amount: 1
          meta:
            ==: ItemMeta
            meta-type: UNSPECIFIC
            enchants:
    -  ==: Item
        values:
          chance: .45
        stack:
          ==: org.bukkit.inventory.ItemStack
          type: COOKED_PORKCHOP
          damage: 1
          amount: 4
          meta:
            ==: ItemMeta
            meta-type: UNSPECIFIC
            enchants:
    -  ==: Item
        values:
          chance: .35
        stack:
          ==: org.bukkit.inventory.ItemStack
          type: MELON
          damage: 1
          amount: 3
          meta:
            ==: ItemMeta
            meta-type: UNSPECIFIC
            enchants:
    -  ==: Item
        values:
          chance: .35
        stack:
          ==: org.bukkit.inventory.ItemStack
          type: MELON
          damage: 1
          amount: 2
          meta:
            ==: ItemMeta
            meta-type: UNSPECIFIC
            enchants:
    -  ==: Item
        values:
          chance: .65
        stack:
          ==: org.bukkit.inventory.ItemStack
          type: APPLE
          damage: 1
          amount: 5
          meta:
            ==: ItemMeta
            meta-type: UNSPECIFIC
            enchants:
    -  ==: Item
        values:
          chance: .70
        stack:
          ==: org.bukkit.inventory.ItemStack
          type: WOODEN_SWORD
          damage: 1
          amount: 1
          meta:
            ==: ItemMeta
            meta-type: UNSPECIFIC
            enchants:
    -  ==: Item
        values:
          chance: .15
        stack:
          ==: org.bukkit.inventory.ItemStack
          type: ARROW
          damage: 1
          amount: 10
          meta:
            ==: ItemMeta
            meta-type: UNSPECIFIC
            enchants:

    I don't know whats wrong with it, and have spent so many hours trying to fix it. Chests wont refill/ fill at all and I planned on opening my server tonight but I can't without this portion of Hunger Games working.

    Thanks for your help!

    Daniel

  • _ForgeUser7676464 added the tags New Other Aug 13, 2013
  • _ForgeUser10366425 posted a comment Jan 18, 2014

    Is this full itemconfig.yml?


To post a comment, please login or register a new account.