Block Identifiers - xBigEllx/realistic-block-physics-mirror GitHub Wiki

Summary

A block identifier is a custom-made data type/syntax for specifying one or more blocks within Realistic Block Physics' configuration files.

Syntax

Block ID

A unique ID that is assigned to every block within the game, either by Minecraft or other mods. This is the most granular method of specifying blocks within Realistic Block Physics.

Example: Targets the single block minecraft:stone.

minecraft:stone

Block ID + Metadata

An extension of a block ID which contains a numeric metadata value. Minecraft 1.12.2 uses metadata values to declare variations of different blocks, such as the different types of stone for stone slabs.

Example: Targets the smooth stone variant (metadata value 5) of the block minecraft:stone_slab.

minecraft:stone_slab/5

[!IMPORTANT] This syntax only applies to Realistic Block Physics for Minecraft 1.12.2, due to the removal of block metadata values from Minecraft 1.13 onwards.

Tags

Represents a collection/group of blocks that are related in some way, under a single identifier. There are several Vanilla tags that are available to use, such as minecraft:beds, but other mods may also introduce additional tags you can use for their blocks.

Example: Targets all beds within the game (assuming those introduced by any mods have also been assigned this tag).

#minecraft:beds

Namespaces

Used to target all the blocks included within a specific namespace (an identifier which groups all blocks of either a certain mod, or Vanilla Minecraft, together (they are the left-hand side of a resource location, separated by the : character). Namespaces cover the widest scope for specifying a range of blocks under one identifier.

Example: Targets all blocks added by the Dynamic Trees mod.

<dynamictrees>