i am making a skript that makes it so uyou place plocks in a pattern here is moer code for stone and andesite
if block below the event-block is stone:
set block to andesite
else if block above the event-block is stone:
set block to andesite
else if block north the event-block is stone:
set block to andesite
else if block east the event-block is stone:
set block to andesite
else if block south the event-block is stone:
set block to andesite
else if block west the event-block is stone:
set block to andesite
on place of andesite:
if block below the event-block is andesite:
set block to stone
else if block above the event-block is andesite:
set block to stone
else if block north the event-block is andesite:
set block to stone
else if block east the event-block is andesite:
set block to stone
else if block south the event-block is andesite:
set block to stone
else if block west the event-block is andesite:
set block to stone```
i need this for concrete and concrete powder for example red concrete replaces block next to it with red concrete powder
i need this for all the concrete varients is there any way i can make it in less code?