Skip to content

Commit

Permalink
updated shriek worm's sleeping hitbox (closes #283)
Browse files Browse the repository at this point in the history
  • Loading branch information
NewJumper committed Mar 27, 2024
1 parent 545a85b commit 7e59aa5
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -17,6 +17,7 @@
import net.minecraft.world.entity.player.Player;
import net.minecraft.world.level.Level;
import net.minecraft.world.level.ServerLevelAccessor;
import net.minecraft.world.phys.AABB;
import net.minecraft.world.phys.Vec3;
import net.minecraftforge.fluids.FluidType;
import org.jetbrains.annotations.Nullable;
Expand Down Expand Up @@ -119,6 +120,9 @@ public void tick() {
}
}

if(asleep) setBoundingBox(new AABB(this.position().x - 0.5, this.position().y, this.position().z - 0.5, this.position().x + 0.5, this.position().y + 1.6, this.position().z + 0.5));
else setBoundingBox(new AABB(this.position().x - 0.5, this.position().y, this.position().z - 0.5, this.position().x + 0.5, this.position().y + 5.7, this.position().z + 0.5));

/*if(this.descendState.isStarted()) {
this.entityData.set(IDLE_TIMER, this.entityData.get(IDLE_TIMER) - 1);
if(this.entityData.get(IDLE_TIMER) <= -90) {
Expand Down

0 comments on commit 7e59aa5

Please sign in to comment.