mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-30 16:28:00 +01:00
Add missing entity translations and set floating artefact to use the name of its item
This commit is contained in:
parent
2fdd5b2730
commit
fffbee84e3
2 changed files with 9 additions and 1 deletions
|
@ -13,6 +13,7 @@ import net.minecraft.entity.data.TrackedData;
|
||||||
import net.minecraft.entity.data.TrackedDataHandlerRegistry;
|
import net.minecraft.entity.data.TrackedDataHandlerRegistry;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.nbt.NbtCompound;
|
import net.minecraft.nbt.NbtCompound;
|
||||||
|
import net.minecraft.text.Text;
|
||||||
import net.minecraft.util.ActionResult;
|
import net.minecraft.util.ActionResult;
|
||||||
import net.minecraft.util.math.MathHelper;
|
import net.minecraft.util.math.MathHelper;
|
||||||
import net.minecraft.util.math.Vec3d;
|
import net.minecraft.util.math.Vec3d;
|
||||||
|
@ -48,6 +49,11 @@ public class FloatingArtefactEntity extends StationaryObjectEntity {
|
||||||
positionSeed = (float)(Math.random() * Math.PI * 2);
|
positionSeed = (float)(Math.random() * Math.PI * 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected Text getDefaultName() {
|
||||||
|
return getStack().getName();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void initDataTracker() {
|
protected void initDataTracker() {
|
||||||
super.initDataTracker();
|
super.initDataTracker();
|
||||||
|
|
|
@ -65,7 +65,6 @@
|
||||||
"item.unicopia.butterfly_spawn_egg": "Butterfly Spawn Egg",
|
"item.unicopia.butterfly_spawn_egg": "Butterfly Spawn Egg",
|
||||||
"item.unicopia.butterfly": "Butterfly",
|
"item.unicopia.butterfly": "Butterfly",
|
||||||
"item.unicopia.loot_bug_spawn_egg": "Loot Bug Spawn Egg",
|
"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.green_apple": "Granny Smith Apple",
|
||||||
"item.unicopia.sweet_apple": "Sweet Apple Acres Apple",
|
"item.unicopia.sweet_apple": "Sweet Apple Acres Apple",
|
||||||
|
@ -376,9 +375,11 @@
|
||||||
"block.unicopia.oats_crown": "Oats",
|
"block.unicopia.oats_crown": "Oats",
|
||||||
|
|
||||||
"entity.unicopia.butterfly": "Butterfly",
|
"entity.unicopia.butterfly": "Butterfly",
|
||||||
|
"entity.unicopia.loot_bug": "Loot bug",
|
||||||
"entity.unicopia.twittermite": "Twittermite",
|
"entity.unicopia.twittermite": "Twittermite",
|
||||||
"entity.unicopia.specter": "Specter",
|
"entity.unicopia.specter": "Specter",
|
||||||
"entity.unicopia.mimic": "Mimic",
|
"entity.unicopia.mimic": "Mimic",
|
||||||
|
"entity.unicopia.magic_beam": "Magic Beam",
|
||||||
"entity.unicopia.cast_spell": "Cast Spell",
|
"entity.unicopia.cast_spell": "Cast Spell",
|
||||||
"entity.unicopia.cast_spell.by": "a spell cast by %s",
|
"entity.unicopia.cast_spell.by": "a spell cast by %s",
|
||||||
"entity.unicopia.spellbook": "Spellbook",
|
"entity.unicopia.spellbook": "Spellbook",
|
||||||
|
@ -389,6 +390,7 @@
|
||||||
"entity.unicopia.crystal_shards": "Crystal Shards",
|
"entity.unicopia.crystal_shards": "Crystal Shards",
|
||||||
"entity.unicopia.ignominious_vine": "Ignominious Vine",
|
"entity.unicopia.ignominious_vine": "Ignominious Vine",
|
||||||
"entity.unicopia.ignominious_bulb": "Ignominious Bulb",
|
"entity.unicopia.ignominious_bulb": "Ignominious Bulb",
|
||||||
|
"entity.unicopia.thrown_item": "Thrown Item",
|
||||||
|
|
||||||
"player.reachDistance": "Reach Distance",
|
"player.reachDistance": "Reach Distance",
|
||||||
"player.miningSpeed": "Mining Speed",
|
"player.miningSpeed": "Mining Speed",
|
||||||
|
|
Loading…
Reference in a new issue