diff --git a/src/main/java/com/minelittlepony/unicopia/entity/mob/FloatingArtefactEntity.java b/src/main/java/com/minelittlepony/unicopia/entity/mob/FloatingArtefactEntity.java index 26fe7e5d..f653d96d 100644 --- a/src/main/java/com/minelittlepony/unicopia/entity/mob/FloatingArtefactEntity.java +++ b/src/main/java/com/minelittlepony/unicopia/entity/mob/FloatingArtefactEntity.java @@ -13,6 +13,7 @@ import net.minecraft.entity.data.TrackedData; import net.minecraft.entity.data.TrackedDataHandlerRegistry; import net.minecraft.item.ItemStack; import net.minecraft.nbt.NbtCompound; +import net.minecraft.text.Text; import net.minecraft.util.ActionResult; import net.minecraft.util.math.MathHelper; import net.minecraft.util.math.Vec3d; @@ -48,6 +49,11 @@ public class FloatingArtefactEntity extends StationaryObjectEntity { positionSeed = (float)(Math.random() * Math.PI * 2); } + @Override + protected Text getDefaultName() { + return getStack().getName(); + } + @Override protected void initDataTracker() { super.initDataTracker(); diff --git a/src/main/resources/assets/unicopia/lang/en_us.json b/src/main/resources/assets/unicopia/lang/en_us.json index 18adf7d8..86c642e4 100644 --- a/src/main/resources/assets/unicopia/lang/en_us.json +++ b/src/main/resources/assets/unicopia/lang/en_us.json @@ -65,7 +65,6 @@ "item.unicopia.butterfly_spawn_egg": "Butterfly Spawn Egg", "item.unicopia.butterfly": "Butterfly", "item.unicopia.loot_bug_spawn_egg": "Loot Bug Spawn Egg", - "item.unicopia.loot_bug": "Loot bug", "item.unicopia.green_apple": "Granny Smith Apple", "item.unicopia.sweet_apple": "Sweet Apple Acres Apple", @@ -376,9 +375,11 @@ "block.unicopia.oats_crown": "Oats", "entity.unicopia.butterfly": "Butterfly", + "entity.unicopia.loot_bug": "Loot bug", "entity.unicopia.twittermite": "Twittermite", "entity.unicopia.specter": "Specter", "entity.unicopia.mimic": "Mimic", + "entity.unicopia.magic_beam": "Magic Beam", "entity.unicopia.cast_spell": "Cast Spell", "entity.unicopia.cast_spell.by": "a spell cast by %s", "entity.unicopia.spellbook": "Spellbook", @@ -389,6 +390,7 @@ "entity.unicopia.crystal_shards": "Crystal Shards", "entity.unicopia.ignominious_vine": "Ignominious Vine", "entity.unicopia.ignominious_bulb": "Ignominious Bulb", + "entity.unicopia.thrown_item": "Thrown Item", "player.reachDistance": "Reach Distance", "player.miningSpeed": "Mining Speed",