调整绑定文本
This commit is contained in:
parent
c1794973c0
commit
168178e96d
5 changed files with 16 additions and 6 deletions
|
@ -165,13 +165,15 @@ public class Mk42Entity extends VehicleEntity implements GeoEntity, CannonEntity
|
|||
if (player instanceof ServerPlayer serverPlayer) {
|
||||
serverPlayer.level().playSound(null, serverPlayer.getOnPos(), SoundEvents.ARROW_HIT_PLAYER, SoundSource.PLAYERS, 0.5F, 1);
|
||||
}
|
||||
player.displayClientMessage(Component.literal("added"), true);
|
||||
player.displayClientMessage(Component.translatable("des.superbwarfare.artillery_indicator.add", this.getDisplayName())
|
||||
.withStyle(ChatFormatting.GREEN), true);
|
||||
return InteractionResult.SUCCESS;
|
||||
} else if (indicator.removeCannon(stack, getStringUUID())) {
|
||||
if (player instanceof ServerPlayer serverPlayer) {
|
||||
serverPlayer.level().playSound(null, serverPlayer.getOnPos(), SoundEvents.ARROW_HIT_PLAYER, SoundSource.PLAYERS, 0.5F, 1);
|
||||
}
|
||||
player.displayClientMessage(Component.literal("removed"), true);
|
||||
player.displayClientMessage(Component.translatable("des.superbwarfare.artillery_indicator.remove", this.getDisplayName())
|
||||
.withStyle(ChatFormatting.RED), true);
|
||||
return InteractionResult.SUCCESS;
|
||||
} else {
|
||||
return InteractionResult.FAIL;
|
||||
|
|
|
@ -171,13 +171,15 @@ public class Mle1934Entity extends VehicleEntity implements GeoEntity, CannonEnt
|
|||
if (player instanceof ServerPlayer serverPlayer) {
|
||||
serverPlayer.level().playSound(null, serverPlayer.getOnPos(), SoundEvents.ARROW_HIT_PLAYER, SoundSource.PLAYERS, 0.5F, 1);
|
||||
}
|
||||
player.displayClientMessage(Component.literal("added"), true);
|
||||
player.displayClientMessage(Component.translatable("des.superbwarfare.artillery_indicator.add", this.getDisplayName())
|
||||
.withStyle(ChatFormatting.GREEN), true);
|
||||
return InteractionResult.SUCCESS;
|
||||
} else if (indicator.removeCannon(stack, getStringUUID())) {
|
||||
if (player instanceof ServerPlayer serverPlayer) {
|
||||
serverPlayer.level().playSound(null, serverPlayer.getOnPos(), SoundEvents.ARROW_HIT_PLAYER, SoundSource.PLAYERS, 0.5F, 1);
|
||||
}
|
||||
player.displayClientMessage(Component.literal("removed"), true);
|
||||
player.displayClientMessage(Component.translatable("des.superbwarfare.artillery_indicator.remove", this.getDisplayName())
|
||||
.withStyle(ChatFormatting.RED), true);
|
||||
return InteractionResult.SUCCESS;
|
||||
} else {
|
||||
return InteractionResult.FAIL;
|
||||
|
|
|
@ -160,13 +160,15 @@ public class MortarEntity extends VehicleEntity implements GeoEntity, Container,
|
|||
if (player instanceof ServerPlayer serverPlayer) {
|
||||
serverPlayer.level().playSound(null, serverPlayer.getOnPos(), SoundEvents.ARROW_HIT_PLAYER, SoundSource.PLAYERS, 0.5F, 1);
|
||||
}
|
||||
player.displayClientMessage(Component.literal("added"), true);
|
||||
player.displayClientMessage(Component.translatable("des.superbwarfare.artillery_indicator.add", this.getDisplayName())
|
||||
.withStyle(ChatFormatting.GREEN), true);
|
||||
return InteractionResult.SUCCESS;
|
||||
} else if (indicator.removeCannon(mainHandItem, getStringUUID())) {
|
||||
if (player instanceof ServerPlayer serverPlayer) {
|
||||
serverPlayer.level().playSound(null, serverPlayer.getOnPos(), SoundEvents.ARROW_HIT_PLAYER, SoundSource.PLAYERS, 0.5F, 1);
|
||||
}
|
||||
player.displayClientMessage(Component.literal("removed"), true);
|
||||
player.displayClientMessage(Component.translatable("des.superbwarfare.artillery_indicator.remove", this.getDisplayName())
|
||||
.withStyle(ChatFormatting.RED), true);
|
||||
return InteractionResult.SUCCESS;
|
||||
} else {
|
||||
return InteractionResult.FAIL;
|
||||
|
|
|
@ -260,6 +260,8 @@
|
|||
"des.superbwarfare.artillery_indicator_3": "Right-click to zoom, scroll wheel to adjust zoom ratio, middle mouse button to mark target location",
|
||||
"des.superbwarfare.artillery_indicator_4": "Hold left mouse button to send fire command",
|
||||
"des.superbwarfare.artillery_indicator_5": "When in off-hand: use drone to mark locations (same controls as above)",
|
||||
"des.superbwarfare.artillery_indicator.add": "%1$s has been added to the artillery array",
|
||||
"des.superbwarfare.artillery_indicator.remove": "%1$s has been removed from the artillery array",
|
||||
|
||||
"attribute.superbwarfare.bullet_resistance": "Bullet Resistance",
|
||||
|
||||
|
|
|
@ -260,6 +260,8 @@
|
|||
"des.superbwarfare.artillery_indicator_3": "鼠标右键缩放,滚轮调节缩放倍率,鼠标中键标记目标位置",
|
||||
"des.superbwarfare.artillery_indicator_4": "长按鼠标左键发送射击指令",
|
||||
"des.superbwarfare.artillery_indicator_5": "放置在副手时可使用无人机标记位置,操作方式同上",
|
||||
"des.superbwarfare.artillery_indicator.add": "已将%1$s添加至火炮阵列",
|
||||
"des.superbwarfare.artillery_indicator.remove": "已将%1$s从火炮阵列中移除",
|
||||
|
||||
"attribute.superbwarfare.bullet_resistance": "子弹防护",
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue