From 7bf309173ffacb5c614c788e882573534108775e Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Tue, 5 Nov 2024 22:25:31 +0700 Subject: [PATCH] Allow only gravitation stabilizer between injectors and blackhole, require empty space between collector and blackhole --- .../BlackHoleGeneratorBlockEntity.kt | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/blackhole/BlackHoleGeneratorBlockEntity.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/blackhole/BlackHoleGeneratorBlockEntity.kt index e909a8497..84f0520a6 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/blackhole/BlackHoleGeneratorBlockEntity.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/blackhole/BlackHoleGeneratorBlockEntity.kt @@ -217,6 +217,26 @@ class BlackHoleGeneratorBlockEntity(blockPos: BlockPos, blockState: BlockState) tag(BLACK_HOLE) } + for (p in i until i * 2) { + relative(BlockPos(0, 0, p)) { + air() + } + } + + for (p in 0 until i) { + relative(BlockPos(p, 0, i)) { + air() + block(MBlocks.GRAVITATION_STABILIZER) + block(MBlocks.GRAVITATION_STABILIZER_LENS) + } + + relative(BlockPos(-p, 0, i)) { + air() + block(MBlocks.GRAVITATION_STABILIZER) + block(MBlocks.GRAVITATION_STABILIZER_LENS) + } + } + val ring = ring(i) for (pos in ring) {