Lucky Items

Lucky Items

By mining lapis, diamond, iron, or emerald ore, you have a chance of receiving a prize. These prizes are now customizable.

This was a request by FlyingPig_ here: https:forums.bukkit.org/threads/superitems-luckyitems.241128/

Commands

/LI Reload - Reloads config file

Config

Example Config:

BroadCastFinds: true
##Sends a message to everyone on the server that a lucky item was found (false by default)

Chances:
  Emerald: 100.0
  Diamond: 100.0
  Iron: 100.0
  Gold: 100.0
Items:
  A LuckySword:'
  ##This line is mostly used to differentiate between the different things that can drop
  ##This line is also what shows up in the broadcast message if that is enabled
    Chance: 10.0
    ##There is a 10% chance for this item to drop
    Amount: 1
    ##It will drop one item
    Material: DIAMOND_SWORD
    ##The item will be a diamond sword.
    ##It will be easier to use item ids in the material section
    Data: 0
    ##It will be set to the normal durability
    Enchantments:
      FIRE_ASPECT: 2
      DAMAGE_ALL: 2
      KNOCKBACK: 1
      ##Like the material (if you're not using item id's), the names of the enchantments need to be exact, they are:
      ##Enchantments: ARROW_DAMAGE, ARROW_FIRE, ARROW_INFINITE, ARROW_KNOCKBACK, DAMAGE_ALL, DAMAGE_ARTHROPODS, DAMAGE_UNDEAD, DIG_SPEED, DURABILITY, FIRE_ASPECT, KNOCKBACK, LOOT_BONUS_BLOCKS, LOOT_BONUS_MOBS, LUCK, OXYGEN, PROTECTION_ENVIRONMENTAL, PROTECTION_EXPLOSIONS, PROTECTION_FALL, PROTECTION_FIRE, PROTECTION_PROJECTILE, SILK_TOUCH, THORNS, WATER_WORKER
    Lore:
    - This sword can be used
    - to kill mobs or people!
    ##This is pretty self explanatory, you can extend it as many lines as you want
    Name: LuckySword
    ##The name of the item
  A LuckyPick:
    Chance: 5.0
    Amount: 1
    Material: DIAMOND_PICKAXE
    Data: 0
    Enchantments:
      DURABILITY: 1
      LOOT_BONUS_BLOCKS: 2
      DIG_SPEED: 1
    Name: LuckyPick
  Some Gapples:
    Chance: 10.0
    Amount: 2
    Material: GOLDEN_APPLE
    Data: 0
    Name: God Apples
  9 Green Wool:
    Chance: 20.0
    Amount: 9
    Material: WOOL
    Data: 0
  Stone:
    Chance: 0.0
    Amount: 1
    Material: 1
    Data: 0

Videos

Enchantments

In the config, the enchantments need to match the names that bukkit gave for them. Here is a list of the enchantment names. Enchantments: ARROW_DAMAGE, ARROW_FIRE, ARROW_INFINITE, ARROW_KNOCKBACK, DAMAGE_ALL, DAMAGE_ARTHROPODS, DAMAGE_UNDEAD, DIG_SPEED, DURABILITY, FIRE_ASPECT, KNOCKBACK, LOOT_BONUS_BLOCKS, LOOT_BONUS_MOBS, LUCK, OXYGEN, PROTECTION_ENVIRONMENTAL, PROTECTION_EXPLOSIONS, PROTECTION_FALL, PROTECTION_FIRE, PROTECTION_PROJECTILE, SILK_TOUCH, THORNS, WATER_WORKER

Help

If you need any help, post a reply, and I'll try to help you as soon as I can. I finally figured out how to use the subscriptions.

Todo

None at the moment, I'm open to suggestions


Comments

  • To post a comment, please or register a new account.
Posts Quoted:
Reply
Clear All Quotes

About This Project

  • Project ID
    81847
  • Created
    Jun 27, 2014
  • Last Released File
    Sep 10, 2014
  • Total Downloads
    4,474
  • License

Categories

Members

Recent Files