Intellij doesn't know LiteralText?
Hello, I'm writing a Fabric 1.20.1 mod that displays the number of totems of other players on a server as a hologram above their heads. I also wanted to add a function that tells the player that they have so many totems. I used this code for that:
player.sendMessage(new LiteralText("You have " + count + "Totems"), false);
However, in this "LiteralText" is underlined in RED – and it doesn't find the import either – (I imported it but it doesn't exist), what can I use instead?
You can of – Use method.