Skip to content

join game event #4298

Closed Answered by Cai-kunkun
baihuamen asked this question in Mod Dev Support
Discussion options

You must be logged in to vote

To do this,you should add a onHudDrawer like this.
Draw a "Hello world"text for eg:

HudRenderCallback.EVENT.register(((drawContext, tickCounter) -> {
    // Draw Hello World in full opacity white (255, 255, 255, 255) with no shadow
    drawContext.drawText(MinecraftClient.getInstance().textRenderer, "Hello World!", 2, 2, 0xFFFFFFFF, false);
}));

That will draw a text on the screen when the player was joined the game.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by baihuamen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
2 participants