Sueta

CustomDrop

1.0

Configure items drop from broken block

·Plugin

Description

This is a very simple plugin. With CustomDrop you can configure item drop from anything blocks. Also you can configure chance, item stack count (random or static), and permission for this drop.

# This is a list of block that drop you want to change
blocks:
  # You can add any quantity block in config, just add new config block like grass or dirt. Block name may be anything
  grass:
    id: 'GRASS_BLOCK' # Material id's you can find here: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html
    drop:
      # You can add any quantity drop for every block. Just add new item
      diamond:
        id: 'DIAMOND'
        chance: 100 # Chance in percents. If chance less that 100, sometimes block will we drop default drop
        count_min: 1 # Min stack count
        count_max: 3 # Max stack count. If min amd max equals, stack count will be static
        # You can add permission to every drop. If player has this permission, drop will be dropped with defined chance
        permission: 'customdrop.grass.diamond'
      sponge:
        id: 'SPONGE'
        chance: 50
        count_min: 2
        count_max: 5
  dirt:
    id: 'DIRT'
    drop:
      stone:
        id: 'STONE'
        chance: 30
        count_min: 1
        count_max: 2

Commands

/csd reload - reload plugin

So, it's all. A new functions may will not be added, because exists many powerful alternatives. This plugin for people which do not want many functions and just want to change block item drop.

Similar projects

Plugin →