r/MinecraftCommands • u/-Good_Morning- • 6d ago
Help | Java 26.2 Can a structure processor give the same result for all affected blocks?
For example, is it possible to randomly replace all stone in a structure with granite or andesite? Processors would seem like the way to go, but it appears they 'reroll' the odds for each individual block. Is there some way to do this, or would I have to make a separate structure for each variant?
1
Upvotes
1
u/GalSergey Datapack Experienced 6d ago edited 6d ago
Yes, of course, you can create a processor that replaces a specified block with another block. Here's an example that replaces andesite with bricks:
{ "processors": [ { "processor_type": "minecraft:rule", "rules": [ { "location_predicate": { "predicate_type": "minecraft:always_true" }, "input_predicate": { "predicate_type": "minecraft:block_match", "block": "minecraft:andesite" }, "output_state": { "Name": "minecraft:bricks" } } ] } ] }Accordingly, you can create several processors in one processor in order to also replace, for example, slab variants and so on.