Block Format - CreativeMD/AmbientSounds GitHub Wiki

There are different ways to define a block statement.

Name

You can select by block name. Make sure to include the entire name, also the namespace. For example if you want to state a grass block, you do minecraft:grass_block.

Tag

Select by tag is also an option. Simply add t-> in front of the name. Example: t->logs will include all blocks which are part of the logs blocktag.

Property

Furthermore properties can be defined. Example persistent=false. This will only include blocks which have the given property and the exact defined value. So the example will only include blocks which have the property persistent and the value false for it. All other blocks will be left out.

And

You can also combine multiple statements using an &. All defined conditions must be meet in order for the block to be included. An example is t->leaves&p->persistent=false which only includes leaves which are not placed by the player.

Retrieve information about a block

Using F3 ingame is a good way to get all the needed information of a block:

image

color purpose
yellow exact block name
red properties
blue tags