Skip to content

J_BlackList

Kotori316 edited this page Jun 20, 2020 · 3 revisions

Black List for machines

QuarryPlusなどの採掘機械はブラックリストに登録されたものを無視します。

How to modify blacklist

ブラックリストはJsonファイルから読み込まれます。Jsonの場所は次の表の通りです。

Minecraft Json Location
1.12.2 config/quarryplus/blacklist.json
1.15.2 (データパックのid)/quarryplus/blacklist/blacklist.json in data pack

Jsonファイルはオブジェクトの配列であるか、1つのオブジェクトである必要があります。(一番下の例を参照) 各オブジェクトはidメンバーが必要で、id固有の設定値があります。

idは下の表にあるものが使用できます。

id 説明 固有の設定値
quarryplus:blacklist_air 空気 なし
quarryplus:blacklist_name ブロック name: ブロックのRegistry name
quarryplus:blacklist_modid modで追加されるすべてのブロック modID: そのModのid
quarryplus:blacklist_ores すべての鉱石 なし
quarryplus:blacklist_tag (1.15.2のみ) タグに含まれるブロック tag: タグの名前
quarryplus:blacklist_vannila (1.15.2 only) パラメータが指し示すブロック block_predicate: 下記参照
quarryplus:blacklist_fluid (1.15.2 only) すべての液体 なし

[
  {
    "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

名前やタグで指定したブラックリストはブロックの状態(向きなど)を無視します。quarryplus:blacklist_vannilaでは状態も含めて指定できます。

{
  "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]"
}
Clone this wiki locally