Hm, i try use it, but it doesn't work.
if(commandContext.getSource().getLevel().isClientSide) {
Minecraft.getInstance().setScreen(new TextGUI(new StringTextComponent("name"), new StringTextComponent("...test text...")));
}
It's should activate in my command function ( /screen )
Hello! I start create temp screen, but I can't use Minecraft.getInstance().displayGuiScreen(...) in my mod. I use official snapshot. Where is displayGuiScreen(...)?