I want to edit the display player name in multiplayer in game (not in the chat). I want to show after the player name, his total death (looklike "PlayerX (xxx death)").
I have successful add fake death in original source but I don't know how to do it in a mod.
---- Minecraft Crash Report ----
// My bad.
Time: 20/10/13 16:07
Description: Unexpected error
java.lang.ClassCastException: micdoodle8.mods.galacticraft.core.client.GCCorePlayerSP cannot be cast to net.aetherteam.playercore_api.cores.IPlayerCoreCommon
at net.aetherteam.aether.entities.mounts.MountSystem.processDirections(MountSystem.java:36)
at net.aetherteam.aether.client.ClientTickHandler.tickEnd(ClientTickHandler.java:52)
at cpw.mods.fml.common.SingleIntervalHandler.tickEnd(SingleIntervalHandler.java:34)
at cpw.mods.fml.common.FMLCommonHandler.tickEnd(FMLCommonHandler.java:141)
at cpw.mods.fml.common.FMLCommonHandler.onPostClientTick(FMLCommonHandler.java:367)
at net.minecraft.client.Minecraft.func_71407_l(Minecraft.java:1968)
at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:908)
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:836)
at net.minecraft.client.main.Main.main(SourceFile:101)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:57)
at net.minecraft.launchwrapper.Launch.main(Launch.java:18)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- Head --
Stacktrace:
at net.aetherteam.aether.entities.mounts.MountSystem.processDirections(MountSystem.java:36)
at net.aetherteam.aether.client.ClientTickHandler.tickEnd(ClientTickHandler.java:52)
at cpw.mods.fml.common.SingleIntervalHandler.tickEnd(SingleIntervalHandler.java:34)
at cpw.mods.fml.common.FMLCommonHandler.tickEnd(FMLCommonHandler.java:141)
at cpw.mods.fml.common.FMLCommonHandler.onPostClientTick(FMLCommonHandler.java:367)
0
0
in ichun's deathcounter source. You can find his mod here: http://ichun.us/mods/death-counter/ (sources are in the mod)
0
In console:
In game:
I have just add the displayName function in the ichun's deathcounter.mod
0
With LivingDeathEvent I can't edit the player name (I don't know an other way to do it).
0
And I want to know why my code for the mod don't work.
0
I see in the console, PlayerName (X deaths) but in the game PlayerName (0 deaths). What's the problem ?
0
0
I want to edit the display player name in multiplayer in game (not in the chat). I want to show after the player name, his total death (looklike "PlayerX (xxx death)").
I have successful add fake death in original source but I don't know how to do it in a mod.
0
0
0