From e4daf2d2c524baa534ab46ce78e26c0355d8f27f Mon Sep 17 00:00:00 2001 From: blocksimus <336769374+blocksimus@users.noreply.github.com> Date: Thu, 22 Oct 2026 13:10:14 +1100 Subject: [PATCH 1/2] fix: check the right spot for a shulker box lid The lid check added the box's position twice and looked inside the box instead of above the lid, so it never found anything in the way and boxes got placed where they couldn't open. Uses vanilla's check now. --- src/main/kotlin/com/lambda/task/tasks/PlaceContainerTask.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/kotlin/com/lambda/task/tasks/PlaceContainerTask.kt b/src/main/kotlin/com/lambda/task/tasks/PlaceContainerTask.kt index 58a1f0c88..a7278e56e 100644 --- a/src/main/kotlin/com/lambda/task/tasks/PlaceContainerTask.kt +++ b/src/main/kotlin/com/lambda/task/tasks/PlaceContainerTask.kt @@ -101,8 +101,7 @@ class PlaceContainerTask @Ta5kBuilder internal constructor( } in SHULKER_BOXES -> { val box = ShulkerEntity - .calculateBoundingBox(0.5f, direction, 0.0f, blockPos.toBottomCenterPos()) - .offset(blockPos) + .calculateBoundingBox(1.0f, direction, 0.0f, 0.5f, blockPos.toBottomCenterPos()) .contract(1.0E-6) world.isSpaceEmpty(box) From ae3736e057142b646aab53e564b0748f8d095cfc Mon Sep 17 00:00:00 2001 From: blocksimus <336769374+blocksimus@users.noreply.github.com> Date: Thu, 22 Oct 2026 13:28:14 +1100 Subject: [PATCH 2/2] fix: only place containers above a floor Containers could get placed out over water or lava, so breaking them again dropped them where they'd float off or burn. Spots now need something under them that a falling block would land on. --- src/main/kotlin/com/lambda/task/tasks/PlaceContainerTask.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/kotlin/com/lambda/task/tasks/PlaceContainerTask.kt b/src/main/kotlin/com/lambda/task/tasks/PlaceContainerTask.kt index a7278e56e..f1346841d 100644 --- a/src/main/kotlin/com/lambda/task/tasks/PlaceContainerTask.kt +++ b/src/main/kotlin/com/lambda/task/tasks/PlaceContainerTask.kt @@ -30,9 +30,11 @@ import com.lambda.task.Task import com.lambda.task.Task.Ta5kBuilder import com.lambda.threading.runSafeAutomated import com.lambda.util.BlockUtils.blockPos +import com.lambda.util.BlockUtils.blockState import com.lambda.util.item.ItemUtils.SHULKER_BOXES import com.lambda.util.math.distSq import net.minecraft.block.ChestBlock +import net.minecraft.block.FallingBlock import net.minecraft.entity.mob.ShulkerEntity import net.minecraft.item.ItemStack import net.minecraft.item.Items @@ -65,6 +67,7 @@ class PlaceContainerTask @Ta5kBuilder internal constructor( .map { it.blockPos } .asSequence() .filter { !ManagerUtils.isPosBlocked(it) } + .filter { !FallingBlock.canFallThrough(blockState(it.down())) } .flatMap { it.toStructure(TargetState.Stack(slot.stack)) .sim()