Skip to content

Commit

Permalink
feat: refactored Hippocampus and related code
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBv committed Dec 27, 2023
1 parent f1ca470 commit c160a8e
Show file tree
Hide file tree
Showing 11 changed files with 185 additions and 683 deletions.
4 changes: 4 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,10 @@ dependencies {
//compileOnly fg.deobf("mezz.jei:jei-1.20.1-forge-api:15.2.0.25")
//runtimeOnly fg.deobf("mezz.jei:jei-1.20.1-forge-15.2.0.25")
implementation fg.deobf("curse.maven:citadel-331936:4744075")

implementation(jarJar("io.github.llamalad7:mixinextras-neoforge:0.3.2")) {
jarJar.ranged(it, "[0.3.2,)")
}
}

// Example for how to get properties into the manifest for reading by the runtime..
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
import net.minecraft.world.entity.ai.attributes.AttributeSupplier;
import net.minecraft.world.entity.ai.attributes.Attributes;
import net.minecraft.world.entity.ai.goal.SitWhenOrderedToGoal;
import net.minecraft.world.entity.ai.goal.TemptGoal;
import net.minecraft.world.entity.ai.goal.target.HurtByTargetGoal;
import net.minecraft.world.entity.ai.goal.target.OwnerHurtByTargetGoal;
import net.minecraft.world.entity.ai.goal.target.OwnerHurtTargetGoal;
Expand All @@ -70,6 +71,7 @@
import net.minecraft.world.item.Item;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.item.Items;
import net.minecraft.world.item.crafting.Ingredient;
import net.minecraft.world.level.*;
import net.minecraft.world.level.block.state.BlockState;
import net.minecraft.world.level.pathfinder.Path;
Expand Down Expand Up @@ -301,7 +303,7 @@ protected void registerGoals() {
this.goalSelector.addGoal(3, new DragonAIReturnToRoost(this, 1.0D));
this.goalSelector.addGoal(4, new DragonAIEscort(this, 1.0D));
this.goalSelector.addGoal(5, new DragonAIAttackMelee(this, 1.5D, false));
this.goalSelector.addGoal(6, new AquaticAITempt(this, 1.0D, false, IafItemTags.TEMPT_DRAGON));
this.goalSelector.addGoal(6, new TemptGoal(this, 1.0D, Ingredient.of(IafItemTags.TEMPT_DRAGON), false));
this.goalSelector.addGoal(7, new DragonAIWander(this, 1.0D));
this.goalSelector.addGoal(8, new DragonAIWatchClosest(this, LivingEntity.class, 6.0F));
this.goalSelector.addGoal(8, new DragonAILookIdle(this));
Expand Down

0 comments on commit c160a8e

Please sign in to comment.