HomeJavaModsHopeDrop
HopeDrop
HopeDrop
This plugin should works from 1.8.8 to 1.12.1.
Version tested: 1.11.2

Description.png
Well, just by the name you can get what this plugin can do. But what can do more than others drop plugin?
Features:
Configs.png
This plugin is configuration file driver, so no GUI here to help you. Any configuration file is completed with comments so you can get what a specific part does.

The folder does include an ItemCreation.txt file with an explanation of how to create the dropped item.

In the config file you can change message sent by the plugin and some options.

Code (Text):

#A list of type of mob you can use. Some might not exist on your mc version.
#https://hub.spigotmc.org/javadocs/spigot/org/bukkit/entity/EntityType.html
Pig:
  drop: true #Should the mob drop basic items?
  exp: 1-5 #How much xp should the mob drop? (min-max)
  money: 0.1 #How much money the player will receive when the mob is killed? Vault and a Economy Provided needed
  #money: 0.1-0.5 #This will give a random value between 0.1 and 0.5
  CoolThing:
    Item:
      id: diamond
      data: 0
      name: "&cCool Diamond"
      lore:
        - "&7This is a cool diamond"
        - "&7Not sure why"
      amount: 1-3
      amountModifiers:
        - enchant:LOOT_BONUS_BLOCKS;0-1 #This will add min-max to the default value for each level of looting enchant
        - potion:LUCK;0-1 #This will add min-max to the default value for each level of luck potion
    #You can complety remove this part for the item to be always dropped by the mob
    chance: 50.5 #Default value of chance. This is always applied
    chanceModifiers:
      #Chance modifiers. This applies only if the player have killed the mob (Or have mined the block).
      - enchant:DAMAGE_ALL;3.5 #Add a certain % to the base value of chance for each level of sharpness
      - potion:LUCK;2.5 #Add a certain % to the base value of chance for each level of luck potion
      - attribute:LUCK;2.5 #Add a certain % to the base value of chance based on how much higher this attribute is. REQUIRE MINECRAFT 1.9+
                        #You can use this for players: LUCK, MAX_HEALTH, ATTACK_DAMAGE, ATTACK_SPEED, ARMOR
      - level:0.25 #Add a certain % to the base value of chance for each level the player have
    condition:
      #Generic conditions. Involves worlds and location based conditions.
      - generic->world:world #Check the world
      - generic->ylevel:14-28 #Check the Y level of where the event is happen.
      - generic->biome:taiga #Check the biome of where the event is happen.
      #Tool conditions. Involves conditions on the tool has been used.
      - tool->type:DIAMOND_PICKAXE #Check the tool type
      - tool->enchant:DAMAGE_ALL;3-5 #Check which enchantment and which level the tool must have.
      - tool->enchant:DAMAGE_ALL;1 #Can be also used without - to check only for a specific enchantment level
      #Player conditions. Involves conditions on player status
      - player->health:10 #Check if has enough health
      - player->hunger:10 #Check if has enough food bar
      - player->onFire:true #Check if the player is on fire or not (true or false)
      - player->level:5 #Check if it has enough levels
      - player->permission:item.use #Check if has this permission
      - player->gamemode:survival #Check the gamemode

     #Mob Condition. Involves condition on the killed mob status
      - mob->onFire:true #Check if the mob was on fire (true or false)
      - mob->killReason:player #Check if the mob has been killed by something specific (by Player, fire or fall)
      - mob->baby:true #Check if the mob is baby or not (true or false)
      - mob->equipment:head;DIAMOND_HELMET #Check if the mob have the equipment in the selected slot
                                             #head, chest, legs, feet, hand, off_hand
    reward:
      - money:30 #Give money to the player
      - message:&cYou_got_30_money #Send a message to the player. "_" will be replaced with an empty space
      - actionbar:&cYou_got_30_money #Send an actionbar to the player. "_" will be replaced with an empty space
      - playercommand:warp_spawn #Execute the command as the player. "_" will be replaced with an empty space
      - consolecommand:warp_spawn_%player% #Execute the command as the console. %player% will be replaced by the name who got the drop. "_" will be replaced with an empty space
      - firework:blue;gray;green #Spawn a firework where them mob or block was.
          #A list of possible colors https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Color.html
#      - playersound:ENTITY_EXPERIENCE_ORB_PICKUP;1;1 #Play a sound only for the player [SoundName;Volume;Pitch]
#      - worldsound:ENTITY_EXPERIENCE_ORB_PICKUP;1;1 #Play a sound for everyone near the block/mob [SoundName;Volume;Pitch]
          #1.8 sound names http://docs.codelanx.com/Bukkit/1.8/org/bukkit/Sound.html
          #1.9+ sound names https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Sound.html
          #Some of this sounds may not exist in your version (This is the 1.12.1 complete list)
 
Code (Text):
#A list of all block material. Some of them might not exist in your server version.
#https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html
Diamond_Ore:
  drop: true #Should the block drop basic items? WORKS ONLY IN MC1.12+
  exp: 1-5 #How much xp should the mob drop? (min-max)
  money: 0.1 #How much money the player will receive when the block is mined? Vault and a Economy Provided needed
  #money: 0.1-0.5 #This will give a random value between 0.1 and 0.5
  CoolThing:
    Item:
      id: stone
      data: 0
      name: "&cCool Diamond"
      amount: 1-3
      amountModifiers:
        - enchant:LOOT_BONUS_BLOCKS;0-1 #This will add min-max to the default value for each level of looting enchant
        - potion:LUCK;0-1 #This will add min-max to the default value for each level of luck potion
    #You can complety remove this part for the item to be always dropped by the mob
    chance: 50.5 #Default value of chance. This is always applied
    chanceModifiers:
      #Chance modifiers. This applies only if the player have killed the mob (Or have mined the block).
      - enchant:DAMAGE_ALL;3.5 #Add a certain % to the base value of chance for each level of sharpness
      - potion:LUCK;2.5 #Add a certain % to the base value of chance for each level of luck potion
      - attribute:LUCK;2.5 #Add a certain % to the base value of chance based on how much higher this attribute is. REQUIRE MINECRAFT 1.9+
                        #You can use this for players: LUCK, MAX_HEALTH, ATTACK_DAMAGE, ATTACK_SPEED, ARMOR
      - level:0.25 #Add a certain % to the base value of chance for each level the player have
    condition:
      #Generic conditions. Involves worlds and location based conditions.
      - generic->world:world #Check the world
      - generic->ylevel:14-28 #Check the Y level of where the event is happen.
      - generic->biome:taiga #Check the biome of where the event is happen.
      #Tool conditions. Involves conditions on the tool has been used.
      - tool->type:DIAMOND_PICKAXE #Check the tool type
      - tool->type:!GOLD_PICKAXE #Check which tool should not be used. If they use the gold_pick, they won't receive the drop
      - tool->enchant:DAMAGE_ALL;3-5 #Check which enchantment and which level the tool must have.
      - tool->enchant:DAMAGE_ALL;1 #Can be also used without - to check only for a specific enchantment level
      #Player conditions. Involves conditions on player status
      - player->health:10 #Check if has enough health
      - player->hunger:10 #Check if has enough food bar
      - player->onFire:true #Check if the player is on fire or not (true or false)
      - player->level:5 #Check if it has enough levels
      - player->permission:item.use #Check if has this permission
      - player->gamemode:survival #Check the gamemode
      #Block conditions. Invovles conditions on the block broken
      - block->data:0 #Check if the block should have a specific data (Like Granite or Diorite for stone)
    reward:
      - money:30 #Give money to the player
      - message:&cYou_got_30_money #Send a message to the player. "_" will be replaced with an empty space
      - actionbar:&cYou_got_30_money #Send an actionbar to the player. "_" will be replaced with an empty space
      - playercommand:warp_spawn #Execute the command as the player. "_" will be replaced with an empty space
      - consolecommand:warp_spawn_%player% #Execute the command as the console. %player% will be replaced by the name who got the drop. "_" will be replaced with an empty space
      - firework:blue;gray;green #Spawn a firework where them mob or block was.
          #A list of possible colors https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Color.html
#      - playersound:ENTITY_EXPERIENCE_ORB_PICKUP;1;1 #Play a sound only for the player [SoundName;Volume;Pitch]
#      - worldsound:ENTITY_EXPERIENCE_ORB_PICKUP;1;1 #Play a sound for everyone near the block/mob [SoundName;Volume;Pitch]
          #1.8 sound names http://docs.codelanx.com/Bukkit/1.8/org/bukkit/Sound.html
          #1.9+ sound names https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Sound.html
          #Some of this sounds may not exist in your version (This is the 1.12.1 complete list)
 
Code (Text):
actionbarMoney: true #Should the onMoneyReceive message be displayed on the actionbar?

Message:
  Command:
    reload: "&7/drop reload - &2Reload the configs"
    onReload: "&2Plugin succesfully reloaded"
    reloadFailed: "&4Something went wrong on plugin reload"
  Normal:
    onMoneyReceive: "&2&l+%money%"

Commands.png

/drop reload - Reload the configuration files of the plugins


Permissions.png

hopedrop.admin - Allows using the reload command


Install.png

  1. Be sure to have Java8 installed. It won't work without it.
  2. Download the plugin (Do it, it's free :D)
  3. OPTIONAL -> If you want to use money features, be sure to have installed Vault and an Economy plugin
  4. Move it to the plugin folder of your server
  5. Restart your server
  6. Edit the plugin files
  7. Reload the plugin
  8. Done!
Extra.png

To - Do:
  • Add a condition for checking block durability - Done!

If you need any help regarding the plugin, you can send me a PM here on spigot, i'll respond to you as soon as i can.

If you want, you can support me and this plugin by donating something. Click here
donate.jpg


This plugin is open source and it's under the
GNU General Public License v3.0, you can find the source code above.

Commands

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

HopeDrop is a free Minecraft Java mod. Compatible with Minecraft 1.11. Downloaded 658 times (via Spigot). Download it and open it directly in the game.

Explore more