Skip to content

Commit

Permalink
Removed look at player goal
Browse files Browse the repository at this point in the history
  • Loading branch information
WenXin20 committed Jan 2, 2025
1 parent c00bba5 commit da90375
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,13 @@
import com.wenxin2.marioverse.init.SoundRegistry;
import com.wenxin2.marioverse.init.TagRegistry;
import net.minecraft.sounds.SoundEvent;
import net.minecraft.sounds.SoundEvents;
import net.minecraft.sounds.SoundSource;
import net.minecraft.world.effect.MobEffectInstance;
import net.minecraft.world.effect.MobEffects;
import net.minecraft.world.entity.Entity;
import net.minecraft.world.entity.EntityType;
import net.minecraft.world.entity.LivingEntity;
import net.minecraft.world.entity.ai.attributes.Attributes;
import net.minecraft.world.entity.ai.goal.FloatGoal;
import net.minecraft.world.entity.ai.goal.LookAtPlayerGoal;
import net.minecraft.world.entity.player.Player;
import net.minecraft.world.level.Level;
import net.neoforged.neoforge.fluids.FluidType;
Expand All @@ -40,8 +37,7 @@ public SuperStarEntity(EntityType<? extends SuperStarEntity> entityType, Level w

@Override
protected void registerGoals() {
this.goalSelector.addGoal(1, new LookAtPlayerGoal(this, Player.class, 8.0F));
this.goalSelector.addGoal(2, new ContinuousJumpGoal(this));
this.goalSelector.addGoal(1, new ContinuousJumpGoal(this));
}

@Override
Expand Down

0 comments on commit da90375

Please sign in to comment.