Posted July 21, 201510 yr I want to Open a Gui Screen when the Player spawns in the world. But when i use the EntityJoinWorldEvent, it just pops up before the worlgeneration and immidiatly closes again. Even if i use onEntityConstructing it does the same. Any suggestions?
July 21, 201510 yr Author How can i get when a few ticks have past? Just make an int and let it go up every tick and see when it is at five or so?
July 21, 201510 yr Author So how can i do that? I just did like that: @SubscribeEvent public void showTheGui(PlayerTickEvent event) { tickrun++; if(tickrun==5) if(event.side.isClient()){ countticks=true; Minecraft.getMinecraft().displayGuiScreen(new GuiModInit()); } }
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.