Ore Dictionaries - Redheris/PreventBuild GitHub Wiki

Ore dictionary provides an easiest way to combine several identifiers into one common identifier (with # character at the beginning) of dictionary for using in configs.

For example, you can create and use value #earth like block:#earth instead of writing block:dirt,stone,grass_block,diorite,granite,andesite,gravel,sand. etc.

Ore dictionaries are writing in the configs/preventbuild/ore_dictionaries.json. There are no pre-created ore dictionaries, so this functionality is intended for the user himself.

Dictionaries have the simplest structure of the form "dictionary name: list of values". Here the example:

{
	"earth": [
		"block.minecraft.sand",
		"block.minecraft.gravel",
		"block.minecraft.andesite",
		"block.minecraft.granite",
		"block.minecraft.diorite",
		"block.minecraft.grass_block",
		"block.minecraft.stone",
		"block.minecraft.dirt"
	],
	"test": [
		"block.minecraft.stone",
		"block.minecraft.grass_block",
		"block.minecraft.oak_wood"
	],
	"testEntities": [
		"entity.minecraft.cow",
		"entity.minecraft.horse",
		"entity.minecraft.item_frame",
		"entity.minecraft.villager"
	]
}

Important note

Identifier values inside of dictionaries must be full names. There is no automatically appending of the prefixes like "block.minecraft.", "entity.minecraft.", etc.