BlackList - Kotori316/QuarryPlus GitHub Wiki

Black List for machines

Mining machines ignore blocks registered in blacklist.

How to modify blacklist

The blacklist is loaded from a json file.

Minecraft Json Location
1.12.2 config/quarryplus/blacklist.json
1.15.2 (namespace)/quarryplus/blacklist/blacklist.json in data pack

See Official Wiki to get more info about data packs. In 1.16.1, you can use the same way as 1.15.2.

The json must be an array of objects or a single object. In each object, there must be a string value, id and other specific data.

This table shows allowed values of id .

id Description Specific data
quarryplus:blacklist_air Air block None
quarryplus:blacklist_name A block name: Registry name of block
quarryplus:blacklist_modid All block added by the mod modID: id of the mod.
quarryplus:blacklist_ores All ores None
quarryplus:blacklist_tag (1.15.2 only) blocks in tag tag: tag name
quarryplus:blacklist_vannila (1.15.2 only) A block or blocks in tag specified in parameter. block_predicate: block name. See below.
quarryplus:blacklist_fluid (1.15.2 only) all fluids None

Example

[
  {
    "id": "quarryplus:blacklist_air"
  },
  {
    "id": "quarryplus:blacklist_name",
    "name": "minecraft:white_wool"
  },
  {
    "id": "quarryplus:blacklist_modid",
    "modID": "ic2"
  },
  {
    "id": "quarryplus:blacklist_ores"
  },
  {
    "id": "quarryplus:blacklist_tag",
    "tag": "forge:stone"
  }
]

quarryplus:blacklist_vannila

Blacklist of name or tag ignores block state. You can respect state with this.

{
  "id": "quarryplus:blacklist_vanilla",
  "block_predicate": "minecraft:grass_block[snowy=false]"
}

This is an entry for green grass block, not for white-snowy grass block. The block_predicate is the same one you can use in "setblock" command. One more example. Run setblock ~ ~ ~ minecraft:acacia_log[axis=z] to check which block this entry pointing.

{
  "id": "quarryplus:blacklist_vanilla",
  "block_predicate": "minecraft:acacia_log[axis=z]"
}
⚠️ **GitHub.com Fallback** ⚠️