#I need help with a cage ability

1 messages · Page 1 of 1 (latest)

reef hawk
#

I would do it with 2 cuboids maybe

#

set {_blocks::*} to the red, then remove the green from the list.
then set the list to iron bars

#

so just bring the corners in a bit

zenith stratus
# reef hawk

the blocks arent connecting, is there any way toi fix that?

reef hawk
#

Huh

#

Weird

proper pine
#
zenith stratus
#
function ironBars(p: player):
    set {_corners::*} to shapes_square({_p}'s location, 5)
    add blocks within {_corners::1} and {_corners::2} to {_blocks::*}
    add blocks within {_corners::1} and {_corners::3} to {_blocks::*}
    add blocks within {_corners::2} and {_corners::4} to {_blocks::*}
    add blocks within {_corners::3} and {_corners::4} to {_blocks::*}
    
    loop {_blocks::*}:
        set {_b} to location of loop-value
        set block at {_b} to iron bars
        force update blockstate of block at {_b}
        set block above {_b} to iron bars
        force update blockstate of block above {_b}
        set block 2 meters above {_b} to iron bars
        force update blockstate of block 2 meters above {_b}
        set block 3 meters above {_b} to iron bars
        force update blockstate of block 3 meters above {_b}

    
    loop blocks within {_corners::1} and {_corners::4}:
        set block 4 meters above loop-block to obsidian
proper pine
#

hm