Control what blocks/mobs can loot (items, experience, money), right-click to harvest; more to come
5

Block Spawners

The Block Spawners lets you decide which block can spawn what mobs. The configuration file for this feature is called blockspawners.conf.

By default, Block Spawners are disabled (like all this plugin’s features). To enable it, go into the plugin’s configuration directory and open the blockspawners.conf file, then set enabled on true; that’s it!

Now that you have enabled this feature, you can start configuring it.

Defining a custom Block Spawner

Now, make a new category called blocks, inside it you can put any category you want which have for key the full or partial ID of the target block, e.g. "minecraft:iron_ore".

The file looks like this now:

enabled=true
blocks {
  "minecraft:iron_ore" {
  }
}

Then, we can define a custom drop inside the spawns array. Since this is an array, we can put as many objects as we want:

enabled=true
blocks {
  "minecraft:iron_ore" {
    spawns=[
    ]
  }
}

Now we put an object with the properties type (the Minecraft entity ID to spawn) in the array. We can also put a chance, which will define the chance of spawning the entities, but this is optional.

enabled=true
blocks {
  "minecraft:iron_ore" {
    spawns=[
      {
        type="minecraft:spider"
        chance=50
      }
    ]
  }
}

You can also define the quantity of mobs of the same kind to spawn using quantity with a min-max syntax:

enabled=true
blocks {
  "minecraft:iron_ore" {
    spawns=[
      {
        type="minecraft:spider"
        chance=50
        quantity=1-3
      }
    ]
  }
}

Category: Miscellaneous

Published on Jan 19, 2018

views

stars

watchers

total downloads

Licensed under MIT

Promoted Versions

Members