Road Script (With slabbing)

Wazgamer

Lord Paramount of The Riverlands
Pronouns
they/them
As you probably know, the new update brought with it loads of new WorldEdit functionality, such as masks. I have been able to create a script for roads which will add a more natural looking rough edge to the road as well as automatically placing the slabs on inclines, something I'm aware had to be done by hand for some time. It'd probably be worth checking over by hand afterwards, but it should make the whole process of roads a lot easier.

To use: paint the road with a placeholder block (I'd suggest radius 2 for smaller roads and 3 for larger ones), and select the region of the road, possibly with //sel poly, and run the script.

The //tips commands at the start and finish are just there to remove spam if you have tips enabled, remove them if you don't.

- MDMeaux

Code:
//tips
//gmask ~[$$[placeholder]][1][6]
//replace grass,dirt,gravel 50%grass,25%dirt,25%wool:6
$${WAIT(1)}$$
//gmask ~[wool:6][2][4]
//replace air,31 2047:0,2047:1
$${WAIT(1)}$$
//gmask ~[2047][2][4]
//replace air,31 2047:0,2047:1
$${WAIT(1)}$$
//gmask >wool:6
//replace 31 air
$${WAIT(1)}$$
//gmask
//replace wool:6 dirt,gravel
//replace 41 2047:0,2047:1
//tips
 
Last edited by a moderator: