big king and queen dev

This commit is contained in:
craisinlord committed 2026-09-07 21:56:21 -05:00
1 parent d34830a99b
commit 68eba61022
169 files changed
+4897 -1060

No files matched your search

@@ -1368,6 +1368,8 @@ public final class AntarchySettings {
public static void setKrakensGraspAttackSpeed(double value) { krakensGraspAttackSpeed = value; }
public static void setKrakensGraspThrownDamage(double value) { krakensGraspThrownDamage = value; }
public static void setKrakensGraspLightningDamage(double value) { krakensGraspLightningDamage = value; }
public static double krakensGraspLightningDamage() { return krakensGraspLightningDamage; }
public static void setKrakensGraspInnateLoyalty(boolean value) { krakensGraspInnateLoyalty = value; }
public static void setKrakensGraspInnateLoyaltyLevel(int value) { krakensGraspInnateLoyaltyLevel = value; }
public static void setKrakensGraspTentacleDurationTicks(int value) { krakensGraspTentacleDurationTicks = value; }
@@ -73,6 +73,7 @@ import software.bernie.geckolib.core.animation.RawAnimation;
import software.bernie.geckolib.util.GeckoLibUtil;
public class ReverieEntity extends PathfinderMob implements FlyingAnimal, GeoEntity {
private static final int DAMAGE_REACTION_DURATION_TICKS = 40;
private static final EntityDataAccessor<Integer> MOOD =
SynchedEntityData.defineId(ReverieEntity.class, EntityDataSerializers.INT);
private static final EntityDataAccessor<Integer> ANIMATION_STATE =
@@ -309,7 +310,7 @@ public class ReverieEntity extends PathfinderMob implements FlyingAnimal, GeoEnt
this.releaseFocus();
this.clearNoticePlayer();
this.ambientTarget = null;
this.damageReactionTicks = 0;
this.damageReactionTicks = DAMAGE_REACTION_DURATION_TICKS;
this.inversionReactionTicks = 0;
this.transitionToMood(Mood.WHITE);
}
@@ -15,6 +15,8 @@ import net.minecraft.world.entity.MobSpawnType;
import net.minecraft.world.entity.ai.attributes.AttributeSupplier;
import net.minecraft.world.entity.ai.attributes.Attributes;
import net.minecraft.world.entity.ai.goal.FloatGoal;
import net.minecraft.world.entity.ai.goal.BreedGoal;
import net.minecraft.world.entity.ai.goal.TemptGoal;
import net.minecraft.world.entity.ai.goal.LookAtPlayerGoal;
import net.minecraft.world.entity.ai.goal.PanicGoal;
import net.minecraft.world.entity.ai.goal.RandomLookAroundGoal;
@@ -23,6 +25,8 @@ import net.minecraft.world.entity.animal.Animal;
import net.minecraft.world.entity.player.Player;
import net.minecraft.sounds.SoundEvent;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.item.Items;
import net.minecraft.world.item.crafting.Ingredient;
import net.minecraft.world.level.Level;
import net.minecraft.world.level.ServerLevelAccessor;
import org.jetbrains.annotations.Nullable;
@@ -76,9 +80,11 @@ public class StinkBugEntity extends Animal implements GeoEntity {
protected void registerGoals() {
this.goalSelector.addGoal(0, new FloatGoal(this));
this.goalSelector.addGoal(1, new PanicGoal(this, 1.4D));
this.goalSelector.addGoal(2, new WaterAvoidingRandomStrollGoal(this, 0.9D));
this.goalSelector.addGoal(3, new LookAtPlayerGoal(this, Player.class, 6.0F));
this.goalSelector.addGoal(4, new RandomLookAroundGoal(this));
this.goalSelector.addGoal(2, new TemptGoal(this, 1.0D, Ingredient.of(Items.ROTTEN_FLESH), false));
this.goalSelector.addGoal(3, new BreedGoal(this, 0.9D));
this.goalSelector.addGoal(4, new WaterAvoidingRandomStrollGoal(this, 0.9D));
this.goalSelector.addGoal(5, new LookAtPlayerGoal(this, Player.class, 6.0F));
this.goalSelector.addGoal(6, new RandomLookAroundGoal(this));
}
@Override
@@ -108,7 +114,7 @@ public class StinkBugEntity extends Animal implements GeoEntity {
@Override
public boolean isFood(ItemStack stack) {
return false;
return stack.is(Items.ROTTEN_FLESH);
}
@Override
@@ -1026,7 +1026,8 @@ public class KrakenEntity extends Monster implements GeoEntity, MultipartEntityO
for (int i = 0; i < strikeBolts; i++) {
this.spawnVisualLightning(serverLevel, this.getTargetStormStrikePos(target));
}
target.hurt(AntarchyDamageSources.krakenLightning(serverLevel, this), this.isPhaseTwo() ? 12.0F : 8.0F);
target.hurt(AntarchyDamageSources.krakenLightning(serverLevel, this),
this.isPhaseTwo() ? 12.0F : AntarchySettings.krakenLightningDamagePhaseOne());
}
} else {
this.lightningStrikeCooldown = this.isPhaseTwo() ? 30 : 60;
@@ -91,12 +91,14 @@ public class KrakensGraspItem extends TridentItem {
public static void strikeLightning(LivingEntity target, ServerLevel level) {
strikeLightningAt(level, target.getX(), target.getY(), target.getZ());
target.hurt(level.damageSources().lightningBolt(), (float) AntarchySettings.krakensGraspLightningDamage());
level.sendParticles(ParticleTypes.ELECTRIC_SPARK, target.getX(), target.getY(0.7D), target.getZ(), 10, 0.25D, 0.25D, 0.25D, 0.02D);
}
public static void strikeLightningAt(ServerLevel level, double x, double y, double z) {
LightningBolt lightningBolt = new LightningBolt(net.minecraft.world.entity.EntityType.LIGHTNING_BOLT, level);
lightningBolt.moveTo(x, y, z);
lightningBolt.setVisualOnly(true);
level.addFreshEntity(lightningBolt);
level.sendParticles(ParticleTypes.ELECTRIC_SPARK, x, y + 0.2D, z, 10, 0.25D, 0.25D, 0.25D, 0.02D);
}
@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "minecraft:block/air"
}
}
}
@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "minecraft:block/air"
}
}
}
@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "minecraft:block/air"
}
}
}
@@ -1,5 +1,5 @@
{
"format_version": "1.21.110",
"format_version": "1.12.0",
"minecraft:geometry": [
{
"description": {
@@ -80,4 +80,4 @@
]
}
]
}
}
@@ -1,5 +1,5 @@
{
"format_version": "1.21.110",
"format_version": "1.12.0",
"minecraft:geometry": [
{
"description": {
@@ -199,4 +199,4 @@
]
}
]
}
}
@@ -1,5 +1,5 @@
{
"format_version": "1.21.110",
"format_version": "1.12.0",
"minecraft:geometry": [
{
"description": {
@@ -284,4 +284,4 @@
]
}
]
}
}
@@ -1,5 +1,5 @@
{
"format_version": "1.21.110",
"format_version": "1.12.0",
"minecraft:geometry": [
{
"description": {
@@ -92,4 +92,4 @@
]
}
]
}
}
@@ -1,5 +1,5 @@
{
"textures": {
"particle": "antarchy:block/nadir/nadir_hanging"
"particle": "antarchy:block/nadir/nadir_planks"
}
}
@@ -1,5 +1,5 @@
{
"textures": {
"particle": "antarchy:block/nadir/nadir_hanging"
"particle": "antarchy:block/nadir/nadir_planks"
}
}