Random Stone Brick Replacement with Worldedit in Minecraft
How does one randomly pattern mossy and cracked stone brick among regular smooth stone brick using worldedit? Is there a script for it or does the "vanilla" worldedit have the capabilities of doing that?
I'm trying to create some stronghold-esque ruins and regular smooth stone doesn't have the right atmosphere, but I don't have the time to insert cracked and mossy one by one.
Solution 1:
You can do this using block probability patterns.
Most places you'd normally enter a single block type in WorldEdit, you can instead enter one of these which will give you a random distribution of blocks instead of just one kind. You can specify which blocks and how often they should show up.
As an example, if you were to select a zone and enter the following command you'd end up with something like the following screenshot:
//replace grass,dirt 50%cloth:red,50%cloth:white
Note that you cannot specify a probability pattern for the blocks you are going to replace - only for what you will replace them with.
So to get dungeony walls...
Assuming you already have the stone brick walls laid out, you just want a brush that replaces some of the stone bricks with mossy or cracked stone bricks. The below commands will give you a brush with a radius of 5 that exclusively targets stone brick (all kinds, including mossy and cracked) and replaces it with 70% regular stone brick (stonebrick:0
), 10% mossy stone brick (stonebrick:1
) and 20% cracked stone brick (stonebrick:2
).
/brush sphere 70%stonebrick:0,10%stonebrick:1,20%stonebrick:2 5
/mask stonebrick
Just tweak the probabilities until you get an effect you like. You might want to make certain areas more mossy, or certain areas less mossy and more cracked, so play with it a bit.
Further documentation on commands used here:
-
Utility commands describes
//replace
-
Brush commands describes
/brush
-
Tool commands describes
/mask