#is it possible to create smth like minecraft:conduit?

7 messages · Page 1 of 1 (latest)

dawn osprey
#

and it lets you fly in survival mode

red owlBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

eternal ice
eager drum
#

blockpattern

#

yay

#

oh wait

#
for(int i = -2; i <= 2; ++i) {
    for(int j = -2; j <= 2; ++j) {
        for(int k = -2; k <= 2; ++k) {
            int l = Math.abs(i);
            int m = Math.abs(j);
            int n = Math.abs(k);
            if ((l > 1 || m > 1 || n > 1) && (i == 0 && (m == 2 || n == 2) || j == 0 && (l == 2 || n == 2) || k == 0 && (l == 2 || m == 2))) {
                BlockPos blockPos2 = pos.add(i, j, k);
                BlockState blockState = world.getBlockState(blockPos2);

                for(Block block : ACTIVATING_BLOCKS) {
                    if (blockState.isOf(block)) {
                        activatingBlocks.add(blockPos2);
                    }
                }
            }
        }
    }
}``` this is how the conduit works