From 72ca920a0ced2a10bd6ef774855d78e4a70f515a Mon Sep 17 00:00:00 2001 From: Atsuishio <842960157@qq.com> Date: Mon, 14 Jul 2025 13:43:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=9F=B3=E6=95=88=E5=90=8D?= =?UTF-8?q?=E7=A7=B0=E9=94=99=E8=AF=AF=EF=BC=8C=E6=B7=BB=E5=8A=A0=E8=BF=AB?= =?UTF-8?q?=E5=87=BB=E7=82=AE=E5=92=8C=E7=81=AB=E7=AE=AD=E7=82=AE=E5=8F=91?= =?UTF-8?q?=E5=B0=84=E6=97=B6=E7=9A=84=E5=B1=8F=E5=B9=95=E6=8A=96=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../superbwarfare/entity/vehicle/MortarEntity.java | 2 ++ .../superbwarfare/entity/vehicle/Type63Entity.java | 5 ++++- .../type63/{type_63_reload.ogg => ty63_reload.ogg} | Bin 3 files changed, 6 insertions(+), 1 deletion(-) rename src/main/resources/assets/superbwarfare/sounds/type63/{type_63_reload.ogg => ty63_reload.ogg} (100%) diff --git a/src/main/java/com/atsuishio/superbwarfare/entity/vehicle/MortarEntity.java b/src/main/java/com/atsuishio/superbwarfare/entity/vehicle/MortarEntity.java index d893dbdb8..8a96c8b8d 100644 --- a/src/main/java/com/atsuishio/superbwarfare/entity/vehicle/MortarEntity.java +++ b/src/main/java/com/atsuishio/superbwarfare/entity/vehicle/MortarEntity.java @@ -11,6 +11,7 @@ import com.atsuishio.superbwarfare.init.ModTags; import com.atsuishio.superbwarfare.item.ArtilleryIndicator; import com.atsuishio.superbwarfare.item.Monitor; import com.atsuishio.superbwarfare.item.common.ammo.MortarShell; +import com.atsuishio.superbwarfare.network.message.receive.ShakeClientMessage; import com.atsuishio.superbwarfare.tools.VectorTool; import net.minecraft.ChatFormatting; import net.minecraft.commands.arguments.EntityAnchorArgument; @@ -309,6 +310,7 @@ public class MortarEntity extends VehicleEntity implements GeoEntity, RemoteCont this.clearContent(); resetTarget(); + ShakeClientMessage.sendToNearbyPlayers(this, 6, 6, 8, 14); } } diff --git a/src/main/java/com/atsuishio/superbwarfare/entity/vehicle/Type63Entity.java b/src/main/java/com/atsuishio/superbwarfare/entity/vehicle/Type63Entity.java index 3ad769242..95a7d6fd6 100644 --- a/src/main/java/com/atsuishio/superbwarfare/entity/vehicle/Type63Entity.java +++ b/src/main/java/com/atsuishio/superbwarfare/entity/vehicle/Type63Entity.java @@ -12,6 +12,7 @@ import com.atsuishio.superbwarfare.init.ModSounds; import com.atsuishio.superbwarfare.init.ModTags; import com.atsuishio.superbwarfare.item.common.ammo.MediumRocketItem; import com.atsuishio.superbwarfare.item.common.container.ContainerBlockItem; +import com.atsuishio.superbwarfare.network.message.receive.ShakeClientMessage; import com.atsuishio.superbwarfare.tools.CustomExplosion; import com.atsuishio.superbwarfare.tools.OBB; import com.atsuishio.superbwarfare.tools.ParticleTool; @@ -238,7 +239,7 @@ public class Type63Entity extends ContainerMobileVehicleEntity implements GeoEnt MediumRocketEntity entityToSpawn = rocketItem.createProjectile(level(), shootPos); entityToSpawn.setOwner(player); - entityToSpawn.shoot(getShootVector(1).x, getShootVector(1).y, getShootVector(1).z, 10, (float) 0.5); + entityToSpawn.shoot(getShootVector(1).x, getShootVector(1).y, getShootVector(1).z, 10, (float) 0.75); level().addFreshEntity(entityToSpawn); level().playSound(null, shootPos.x, shootPos.y, shootPos.z, ModSounds.MEDIUM_ROCKET_FIRE.get(), SoundSource.PLAYERS, 4f, random.nextFloat() * 0.1f + 0.95f); @@ -266,6 +267,8 @@ public class Type63Entity extends ContainerMobileVehicleEntity implements GeoEnt serverLevel.sendParticles(ParticleTypes.FLAME, pPos2.x, pPos2.y, pPos2.z, 2, 0.05, 0.05, 0.05, 0.007); } } + + ShakeClientMessage.sendToNearbyPlayers(this, 8, 8, 10, 20); } @Override diff --git a/src/main/resources/assets/superbwarfare/sounds/type63/type_63_reload.ogg b/src/main/resources/assets/superbwarfare/sounds/type63/ty63_reload.ogg similarity index 100% rename from src/main/resources/assets/superbwarfare/sounds/type63/type_63_reload.ogg rename to src/main/resources/assets/superbwarfare/sounds/type63/ty63_reload.ogg