-
Posts
4 -
Joined
-
Last visited
Posts posted by ConorTheDev
-
-
Hi,
I want to make some text rainbow / chroma in my mod. This is the text line:
Minecraft.getMinecraft().fontRendererObj.drawString(EnumChatFormatting.GREEN + "Coins: " + EnumChatFormatting.WHITE + totalCoins, 5, 5, 0);
I was thinking of changing the EnumChatFormatting thing or something but.
-
1 hour ago, jeffryfisher said:
You can't have that on the server. I think you need to hide your method implementation in your client proxy.
I figured it out, I was building from inside my IDE, I should've run: "gradlew build" instead.
Thanks for the help though!
-
My mod is made for Hypixel, when you type /tip all or when you get a kill, usually there's a booster on and it fills your chat with a long message, this mod gets all the coins collected and compacts it to one small message. The error when I try to go to Hypixel or a World is:
The game crashed whilst unexpected error Error: java.lang.NoSuchMethodError: net.minecraft.client.Minecraft.getMinecraft()Lnet/minecraft/client/Minecraft;
The lines probably causing this is:
@SubscribeEvent public void render(RenderGameOverlayEvent event) { if (event.isCancelable() || event.type != ElementType.EXPERIENCE) { return; } FontRenderer fRender = Minecraft.getMinecraft().fontRendererObj; fRender.drawString(EnumChatFormatting.GREEN + "Coins: " + EnumChatFormatting.WHITE + totalCoins, 5, 5, 0); }
Please help!
[1.8.9] Render Rainbow Text with Minecraft Font Renderer
in Modder Support
Posted
I'll send a video of another mod with the chroma effect on the text.