andrepl / EnhancedFishing

1 stars 1 forks source link

Troubles with the treasure.yml #3

Open hollowbit opened 11 years ago

hollowbit commented 11 years ago

I don't know if im just confused but the treasure.yml file just isn't working for me. It's fairly complicated. Can you please make a youtube tutorial on it please?

andrepl commented 11 years ago

What sort of problems are you having? I don't think a youtube video is a very good way of documenting a config file, but I'll be glad to write up a better documented example. in the mean time here's a basic idea of each possible field and what they do:

# This name can be anything you want, but it must be unique 
lilypad:
     # The weight is the chance of getting this item and has no upper bound, it's weighted against all other
     # treasures in the same world
    weight: 100   
     # 'worlds' is a list of the worlds where this treasure can be found, if it's left out, the treasure
     # will be in all worlds.
    worlds:
        - my_fishing_world
        - my_other_world
     # the 'item' is a standard serialized Bukkit ItemStack.
    item:
        # This identifies it as an ItemStack, don't change this
        ==: org.bukkit.inventory.ItemStack
        # the type is a Material name from http://jd.bukkit.org/rb/apidocs/org/bukkit/Material.html
        type: WATER_LILY
        # The 'amount' is how many to catch :)
        amount: 1
        # 'damage' is the damage or data value. its different for every item that requires it.
        # but most things don't use it.
        damage: 0
        # 'meta' is special item data like custom names
        # enchants etc etc.
        meta:
            # like above, this is necessary
            ==: ItemMeta
            # meta-type is almost always UNSPECIFIC except for fireworks, books, and a few other things.
            meta-type: UNSPECIFIC
            # a custom display name as set on the Anvil
            display-name: Pickaxe of Doom
            # The anvil cost to repair this item
            repair-cost: 2
            # Enchantments in the format <NAME>: <LEVEL>
            # full list of names available here: http://jd.bukkit.org/rb/apidocs/org/bukkit/enchantments/Enchantment.html
            enchants:
                DURABILITY: 1