@@ -22,8 +22,6 @@ import baritone.api.pathing.goals.GoalInverted
2222import com.lambda.context.Automated
2323import com.lambda.graphics.renderer.esp.ShapeBuilder
2424import com.lambda.interaction.construction.context.PlaceContext
25- import com.lambda.interaction.construction.verify.TargetState
26- import com.lambda.task.Task
2725import com.lambda.interaction.construction.result.BuildResult
2826import com.lambda.interaction.construction.result.ComparableResult
2927import com.lambda.interaction.construction.result.Contextual
@@ -33,7 +31,6 @@ import com.lambda.interaction.construction.result.Navigable
3331import com.lambda.interaction.construction.result.Rank
3432import com.lambda.interaction.construction.result.Resolvable
3533import com.lambda.task.tasks.BuildTask.Companion.breakBlock
36- import com.lambda.task.tasks.BuildTask.Companion.build
3734import net.minecraft.block.BlockState
3835import net.minecraft.entity.Entity
3936import net.minecraft.item.ItemPlacementContext
@@ -97,6 +94,23 @@ sealed class PlaceResult : BuildResult() {
9794 }
9895 }
9996
97+ /* *
98+ * Represents a scenario where block placement is obstructed by the player itself.
99+ *
100+ * @property pos The position of the block that was attempted to be placed.
101+ */
102+ data class BlockedBySelf (
103+ override val pos : BlockPos
104+ ) : Drawable, Navigable, PlaceResult() {
105+ override val rank = Rank .PlaceBlockedByPlayer
106+ private val color = Color (252 , 3 , 3 , 100 )
107+ override val goal = GoalInverted (GoalBlock (pos))
108+
109+ override fun ShapeBuilder.buildRenderer () {
110+ box(pos, color, color)
111+ }
112+ }
113+
100114 /* *
101115 * Represents a scenario where block placement is obstructed by an entity.
102116 *
0 commit comments