Fix the reconstructor death messages

This commit is contained in:
Mrbysco 2024-03-12 18:31:30 +01:00
parent f5e3736299
commit c995908d51
2 changed files with 6 additions and 6 deletions

View file

@ -28,7 +28,7 @@ public class MultiMessageDamageSource extends DamageSource {
@Override @Override
public Component getLocalizedDeathMessage(LivingEntity entity) { public Component getLocalizedDeathMessage(LivingEntity entity) {
String locTag = "death." + ActuallyAdditions.MODID + "." + this.getMsgId() + "." + (entity.level().random.nextInt(this.messageCount) + 1); String locTag = "death." + this.getMsgId() + "." + (entity.level().random.nextInt(this.messageCount) + 1);
return Component.translatable(locTag, entity.getName()); return Component.translatable(locTag, entity.getName());
} }
} }

View file

@ -93,11 +93,11 @@
"item.banner.actuallyadditionsDrill.orange": "Orange Drill Pattern", "item.banner.actuallyadditionsDrill.orange": "Orange Drill Pattern",
"item.banner.actuallyadditionsDrill.white": "White Drill Pattern", "item.banner.actuallyadditionsDrill.white": "White Drill Pattern",
"_comment": "Damage Sources", "_comment": "Damage Sources",
"death.actuallyadditions.atomicreconstructor.1": "%s got atomically reconstructed.", "death.actuallyadditions.atomic_reconstructor.1": "%s got atomically reconstructed.",
"death.actuallyadditions.atomicreconstructor.2": "The Atomic Reconstructor caught %s in its sight.", "death.actuallyadditions.atomic_reconstructor.2": "The Atomic Reconstructor caught %s in its sight.",
"death.actuallyadditions.atomicreconstructor.3": "Atomically reconstructing people like %s doesn't appear to work.", "death.actuallyadditions.atomic_reconstructor.3": "Atomically reconstructing people like %s doesn't appear to work.",
"death.actuallyadditions.atomicreconstructor.4": "%s shouldn't have ate that Reconstructor!", "death.actuallyadditions.atomic_reconstructor.4": "%s shouldn't have ate that Reconstructor!",
"death.actuallyadditions.atomicreconstructor.5": "%s should have used some re-construction foam.", "death.actuallyadditions.atomic_reconstructor.5": "%s should have used some re-construction foam.",
"_comment": "Blocks", "_comment": "Blocks",
"block.actuallyadditions.black_quartz_ore": "Black Quartz Ore", "block.actuallyadditions.black_quartz_ore": "Black Quartz Ore",
"block.actuallyadditions.black_quartz_block": "Block of Black Quartz", "block.actuallyadditions.black_quartz_block": "Block of Black Quartz",