TE-LuckyMiningEnchant 5.1.1

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.

    This custom enchantment supports polymorphic, and if you use TokenEnchant v18.10.x or above, you can define polymorph of this enchant as shown below.

    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.


    Code (Text):

          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
              chance: 0.10  # 10% chance!
              # '!' -> console, '>' -> op, '@' -> player
                - "!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!"
              chance: 0.02  # 2% chance!
                - "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
            BlockBreakEvent: "HIGH"
            TEBlockExplodeEvent: "HIGHEST"
    It would be greatly appreciated for your donation to continue providing support for this plugin.
    DeadMaster likes this.

Recent Updates

  1. using TEAPI 15.2.1
  2. updated the default config.
  3. using TE v15.

Recent Reviews

  1. Harun2015
    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
    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
    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
    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
    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 :)