Replace single block
This feature is exclusive to Java Edition.
This article is a stub.
You can help by expanding it.
Replace single block is a technical feature that replaces a single block using a list of targets and states. It is not used by the game currently.
Data values
ID
| Feature type | Identifier |
|---|---|
| [No displayed name] | replace_single_block |
Config
Main article: Configured feature
- [NBT Compound / JSON Object] config
- [NBT List / JSON Array] targets (Required, but can be empty) A list of targets.
- [NBT Compound / JSON Object] A target.
- [NBT Compound / JSON Object] target A rule test to check the block to replace.
- [NBT Compound / JSON Object] state The block to use.
- Block state see Template:Nbt inherit/block state/template
- [NBT Compound / JSON Object] A target.
- [NBT List / JSON Array] targets (Required, but can be empty) A list of targets.
An example
{
"type": "minecraft:replace_single_block",
"config": {
"targets": [
{
"state": {
"Name": "minecraft:diamond_ore"
},
"target": {
"predicate_type": "minecraft:tag_match",
"tag": "minecraft:stone_ore_replaceables"
}
},
{
"state": {
"Name": "minecraft:deepslate_diamond_ore"
},
"target": {
"predicate_type": "minecraft:tag_match",
"tag": "minecraft:deepslate_ore_replaceables"
}
}
]
}
}
History
This section of the article is empty.
You can help by expanding it.
| |||||||||||||||||||||||||||
| |||||||||||||||||||||||||||