TE-LuckyMiningEnchant 4.0.2

Custom Lucky Mining Enchantment for TokenEnchant

  1. vk2gpz
    NOTE: This a custom enchant module require TokenEnchant plugin.

    This plugin contains a custom enchantment effect to give lucky prize when a player mines a block. Server owners can specify a pool of commands for each lucky level, and one of those commands are randomly selected if the player is lucky while mining with the lucky mining enchantment.

    Installation:
    Just install TE-LuckyMiningEnchant.jar in TokenEnchant/enchants folder. Then you can either "restart the server" or "reload the plugin (not /te reload)". LuckyMiningEnchantment will automatically be loaded into TokenEnchant framework.

    Configuration:
    You need to add new entry for "LuckyMining" enchant in your config.yml under "Potions:" section.

    Code (Text):

        LuckyMining:
          price: 10
          max: 2    #this number should be same as the highest level in levels: section
          occurrence: always
          effect: MOBSPAWNER_FLAMES
          sound: ENTITY_LIGHTNING_THUNDER  # for pre 1.9 ...AMBIENCE_THUNDER
          levels:
            1:
              chance: 0.10  # 10% chance!
              # '!' -> console, '>' -> op, '@' -> player
              commands:
                - "!tokenenchant add %player% 3;tm msg %player% &aLucky Block! <nl>&\
    aYou received 3 tokens!"
                - "!tokenenchant add %player% 1;tm msg %player% &aLucky Block! <nl>&\
    aYou received one token!"
                - "!tokenenchant add %player% 5;tm msg %player% &aLucky Block! <nl>&\
    aYou received 5 token!"
            2:
              chance: 0.02  # 2% chance!
              commands:
                - "tokenenchant add %player% 10;tm msg %player% &aLucky Block! <nl>\
    &aYou received 5 token!"
                - "tokenenchant add %player% 50;tm msg %player% &aLucky Block! <nl>\
    &aYou received 5 token!"
          exemptions:  # needs to be Bukkit's Material type in CAPs.
            - GRASS
            - SAND
          # use this option to resolve any conflict with other plugin(s) such as AutoSell
          event_map:
            BlockBreakEvent: "HIGH"
            TEBlockExplodeEvent: "HIGHEST"
     
    Donation:
    It would be greatly appreciated for your donation to continue providing support for this plugin.
    [​IMG]
    DeadMaster likes this.

Recent Reviews

  1. Harun2015
    Harun2015
    4/5,
    Version: 3.8.0
    I dont know how to to use this please help me, please i want to use it for my prison server
    1. vk2gpz
      Author's Response
      You first need to purchase TokenEnchant plugin.
  2. chrissquid123
    chrissquid123
    5/5,
    Version: 3.5.0
    Great Plugin that does everything it says it does. Also i know this isnt the to usually put suggestions but i dont know where else to put it. Could you make it so that lets say with lucky mining 3 there are the 3 different prizes/commands you can get. It would be cool if you were able to make the different commands have different chances.
    1. vk2gpz
      Author's Response
      thx for the review. if you need to report a bug, or request a new feature, you can use vk2gpz.freshdesk.com. Any bug report would have the highest priority to be attended and but feature request... if it's good one, I will attend to it when I have time.
  3. Celebrimbor
    Celebrimbor
    5/5,
    Version: 1.1.0
    Great resource add-on, but is there a way to add a block blacklist so players cannot break certain items to fire the event?

    My issue is people can mine tall grass, crops, and all plants with a pickaxe and it fires the event. This does not cause durability damage to the pick and if combo'd with a bonemeal grinder, the player can get infinite Lucky Mining for days.

    I'm sure this will likely effect all your Mining related resources. I found the explosion block exemptions and world exemptions, but there is not block exemption or blacklist to my knowledge.

    Thank you!
  4. ItsFireball1122
    ItsFireball1122
    5/5,
    Version: 1.0.0
    Excellent plugin but, can you add a permission based idea if this can be used for donators only and an amount two examples:

    "/manuaddp default TokenEnchant.luckyenchant.5"
    But for donators a node could possibly be like this:
    "/manuaddp VIP TokenEnchant.luckyenchant.15"
    "/manuaddp VIP+ TokenEnchant.luckyenchant.25"

    Stuff like this can make a huge impact on donations and other helpful topics.. Once again awesome plugin! If you add this or something similar (at least) you will make my day! :)
  5. SuperSniper
    SuperSniper
    5/5,
    Version: 1.0.0
    Great Add-on To TokenEnchantAPI!
    These addons make a server that's really generic and like all other servers, have a really custom and customize-able feel to it :)