#auto pattern maker

1 messages · Page 1 of 1 (latest)

frail dragon
#

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?
#

here is an example of what the code does

lusty wren
#

Functions

vapid bear
#

Ohh no

#

See how each condition has the same result? Why not use an if any

#

Or honestly, loop blocks in a radius of 1