From 71610b9f1119e0098d21cd6961b48da6329c9fe4 Mon Sep 17 00:00:00 2001 From: SugarMGP <2350745751@qq.com> Date: Sat, 20 Aug 2022 18:48:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E8=B0=83=E7=B2=92=E5=AD=90=E6=95=88?= =?UTF-8?q?=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/github/sugarmgp/eoc/entity/EntityNPCBase.java | 8 ++++---- .../java/io/github/sugarmgp/eoc/util/EnumNPCLevel.java | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/io/github/sugarmgp/eoc/entity/EntityNPCBase.java b/src/main/java/io/github/sugarmgp/eoc/entity/EntityNPCBase.java index 7a7c414..c011dba 100644 --- a/src/main/java/io/github/sugarmgp/eoc/entity/EntityNPCBase.java +++ b/src/main/java/io/github/sugarmgp/eoc/entity/EntityNPCBase.java @@ -85,7 +85,7 @@ public ActionResultType func_230254_b_(PlayerEntity player, Hand hand) { } int heal = item.getFood().getHealing(); this.heal(heal); - this.playEffect(ParticleTypes.HEART, this.getPosX(), this.getPosY() + 0.035, this.getPosZ(), 4); + this.playEffect(ParticleTypes.HEART, this.getPosX(), this.getPosY() + 0.425, this.getPosZ(), 4); } } else { if (!player.isCreative()) { @@ -96,7 +96,7 @@ public ActionResultType func_230254_b_(PlayerEntity player, Hand hand) { this.setTamedBy(player); this.setAttackTarget(null); } else { - this.playEffect(ParticleTypes.HAPPY_VILLAGER, this.getPosX(), this.getPosY() + 0.035, this.getPosZ(), 8); + this.playEffect(ParticleTypes.HAPPY_VILLAGER, this.getPosX(), this.getPosY() + 0.425, this.getPosZ(), 8); } } } @@ -111,7 +111,7 @@ protected void playEffect(BasicParticleType particleTypes, Double posX, Double p double d2 = this.rand.nextGaussian() * 0.015; this.world.addParticle(particleTypes, posX + this.rand.nextDouble() * this.getWidth() * 1.5 - this.getWidth(), - posY + 0.4 + this.rand.nextDouble() * this.getHeight(), + posY + this.rand.nextDouble() * this.getHeight() * 0.8, posZ + this.rand.nextDouble() * this.getWidth() * 1.5 - this.getWidth(), d0, d1, d2 ); @@ -139,7 +139,7 @@ public void livingTick() { BasicParticleType particleType = this.getEnumNPCLevel().getParticleType(); if (this.getMotion().x != 0.0D || this.getMotion().z != 0.0D) { - this.playEffect(particleType, this.getPosX(), this.getPosY() - 1.1, this.getPosZ(), 1); + this.playEffect(particleType, this.getPosX(), this.getPosY() - 0.45, this.getPosZ(), 1); } int regenerationLevel = this.getEnumNPCLevel().getRegenerationLevel(); diff --git a/src/main/java/io/github/sugarmgp/eoc/util/EnumNPCLevel.java b/src/main/java/io/github/sugarmgp/eoc/util/EnumNPCLevel.java index 9076b50..79f6440 100644 --- a/src/main/java/io/github/sugarmgp/eoc/util/EnumNPCLevel.java +++ b/src/main/java/io/github/sugarmgp/eoc/util/EnumNPCLevel.java @@ -7,7 +7,7 @@ public enum EnumNPCLevel { A("eoc.npc_level.a", 25, 28.0D, 2.0D, 0.8D, ParticleTypes.FLAME, 2), B("eoc.npc_level.b", 20, 24.0D, 1.5D, 0.75D, ParticleTypes.INSTANT_EFFECT, 1), - C("eoc.npc_level.c", 15, 20.0D, 1.0D, 0.7D, ParticleTypes.CLOUD, 0); + C("eoc.npc_level.c", 15, 20.0D, 1.0D, 0.7D, ParticleTypes.SMOKE, 0); private final String descriptionTranslationKey; private final int experienceValue;