[img] tag

NOTE: please make sure you have WorldGuard with block-break : allow 

This plugin allows a player to throw an item as a bomb to mine blocks.  (the future release will also give damage to nearby living entities.)

The item, size of the explosion, cooldown, type of explosion can be configured in the config.yml.  The shape of the explosion can be one of five shapes similar to TokenEnchant's explosive enchant:
  • Explosive
  • Excavation
  • Sphered
  • Disk
  • Tile

For a player to throw a bomb, s/he needs to have a permission node for the particular bomb.  For instance, in order to throw an Eye_of_Ender as a Grenade_Large, you need to give minebomb.use.grenade_large permission node to a player.

You can also configure the appearance of the bomb (name and lore).

The official support is provided at vk2gpz.freshdesk.com.





It works with various region managers:
 
  • ASkyBlock
  • Factions
  • FactionsUUID
  • Feudal
  • GriefPrevention
  • Kingdoms
  • LegacyFactions
  • NovaGuilds
  • PlotMe
  • PlotSquared
  • Plotz
  • PreciousStone
  • RedProtect
  • Residence
  • Towny
  • uSkyBlock
  • WorldGuard (v6/7)

Installation:
Just install MineBomb.jar in the plugin folder. Then you can either "restart the server" or "reload the plugin. Make sure that whatever region management plugins you're using (listed above) will allow the player to break a block.

Configuration:

# This is a template config file
# define your parameter and its value like:
Messages:
  ErrorMsg : "&c[MineBomb] : Some error occured."
  Cooldown: "&a[MineBomb] You have to wait for &b%remaining% &aseconds."
  CannotThrow: "&c[MineBomb] You do not have a permission to throw %material%!. Ask an admin to give you a permission (%perm%)!"
  NoPlayer: "&c[MineBomb] Player &e%player% &c is not online!"
  NoSuchBomb: "&c[MineBomb] No such Bomb (&e%type% &c) is available!"
  BombGiven: "&a[MineBomb] %player% received %amount% bombs of type %type%!"
  CannotUse: "&c[MineBomb] You cannot use it here!"

HelpMessages:
  banner:
    msg: "=== &e[&aMineBomb Commands List (%version%)&e] &r==="
  help:
    msg: "&a/minebomb help : displays this help menu."
  reload:
    msg: "&a/minebomb reload : reloads config file."
    permission: "minebomb.reload"
  debug:
    msg: "&a/minebomb debug <true|false> : turn on / off the debug mode."
    permission: "minebomb.debug"
  give:
    msg: "&a/minebomb give <player> <type> <num> : gives <num> of bombs (of <type>) to <player."
    permission: "minebomb.admin"
  list:
    msg: "&a/minebomb list : lists available bomb types."

# wether grenade
# this is not implemented yet.
damage_entity: false

# WorldGaurd option
# UseBlockBreak will check block-break region flag
# UseCanBuild will check build region flag
UseBlockBreak: true
UseCanBuild: true

# parameters for explosive effect
visual: true
sound: true
pickup: true
smelt: true
stone_to_stone: true
natural_drop: false

#if this option is true, the new TEExplodeEvent will be used
# TEExplosiveEvent is more efficient thatn producing
# many BlockBreakEvent.
UseTEExplodeEvent: true
PickupTEExplodedBlocks: true

###Throwing method
# To use right click to throw SneakToThrow:false, RightClickToThrow: true
# (defualt) To use shift-right click to throw SneakToThrow:true, RightClickToThrow: true
# To use 'q' to throw SneakToThrow:false, RightClickToThrow: false
# if you're using projectile object like enderpearl, snowball as a bomb
# make sure to enable the above "SneakToThrow" option
SneakToThrow: true
RightClickToThrow: true

# Explosion exempted blocks:
ExemptedBlocks:
- ENDER_CHEST

# if this option is set to "false", the bomb item will not have an enchantment glow effect.
Glow: true

InvalidWorlds:
#  - pvpworld

InvalidRegions:
#  - spawn

# in order to use each grenade, a player needs to have a use permission:
# minebomb.use.grenade_small, minebomb.use.grenade_middle,
Bombs:
  Grenade_Small:
    item: EGG
    type: Sphered
    level: 1
    cooldown: 0
    damage: 10
    name: "&aSmall Grenade"
    lore:
      - "&bType: %type%"
      - "&bLevel: %level%"
      - "&e'q' to throw!"
  Grenade_Middle:
    item: ENDER_PEARL
    type: Sphered
    level: 3
    cooldown: 0
    damage: 10
  Grenade_Large:
    item: EYE_OF_ENDER
    type: Sphered
    level: 5
    cooldown: 0
    damage: 10