Skip to content

Commit

Permalink
feat: make beholder float roughly at head level instead of just above…
Browse files Browse the repository at this point in the history
… ground
  • Loading branch information
klikli-dev committed Jan 14, 2024
1 parent 0557fce commit 21dc235
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ public float getAnimationHeight(float partialTicks) {
if (this.isSitting())
return -0.44f;

return Mth.cos((this.tickCount + this.heightOffset + partialTicks) / 5f) * 0.1f;
return 1 + Mth.cos((this.tickCount + this.heightOffset + partialTicks) / 5f) * 0.1f;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ public class OccultismEntities {
.build(StaticUtil.modLoc("shub_niggurath_familiar").toString()));
public static final NonNullLazy<EntityType<BeholderFamiliarEntity>> BEHOLDER_FAMILIAR_TYPE =
NonNullLazy.of(() -> EntityType.Builder.of(BeholderFamiliarEntity::new, MobCategory.CREATURE)
.sized(0.6F, 1F)
.sized(1.6F, 1F)
.clientTrackingRange(8)
.build(StaticUtil.modLoc("beholder_familiar").toString()));

Expand Down

0 comments on commit 21dc235

Please sign in to comment.