Replace Single Block
Minecraft Wiki article. Categories: Java_Edition, Minecraft_stubs, Stubs, Articles_with_empty_sections, Generated_features
📌 Mirrored from Minecraft Wiki
This article is reproduced from Replace Single Block on the Minecraft Wiki. Mirrored from revision 3642481. It is licensed CC BY-NC-SA 3.0 by the Minecraft Wiki contributors — not under the Codex’s CC BY-SA 4.0, and it may not be used commercially. Edits belong upstream, not here.
On this page
This feature is exclusive to Java Edition.
This article is a stub.
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
- [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.
Navigation
Sources
- Replace Single Block — Minecraft Wiki, CC BY-NC-SA 3.0, revision 3642481.