Harvester - Manage block respawn and drops

Introduction

This plugin will restrict every block break event (for survival players) and allow only the configured ones to be destroyed. You can also configure their drops.

Configuration

The plugin works with two configuration files : the first one manages the block respawn whereas the second one manages drops.

Block Respawn

When creating a file named harvestables.conf in your config folder, the plugin will load it at startup (or when using the command “/reload-harvester”) and interpret it. The following configuration will make the dirt respawn after a random amount of minutes between 2 and 5, and the andesite between 5 and 10 minutes.

harvestables = [
    {
        type: "minecraft:dirt",
        respawnmin: 2,
        respawnmax: 5
    },
    {
        type: "minecraft:stone",
        state {
            variant { value = "andesite" }
        },
        respawnmin: 5,
        respawnmax: 10
    }
]

Block Drops

The following configuration must be in harvest_drops.conf file. It will make the dirt and the wood drop like they do in vanilla minecraft whereas diorite will drop cobblestone.

default = [
   	"minecraft:dirt",
   	"minecraft:wood"
]
harvest_items = [
   {
       type: "minecraft:stone",
       state {
           variant { value = "diorite" }
       },
       item_name: "minecraft:cobblestone"
   }
]

Configuration tool

Configurating HOCON or JSON can be a little annoying, so we created a web application to generate JSON easily with a user friendly interface : check it out !

Links

If you wish to use the plugin or contribute, please visit our Github repository and its release page.
We are also open to suggestions and improvements.

3 Likes