Posted January 3, 201411 yr I've been making a block with a GUI that has a number of buttons on it, each of which will teleport the player to a different dimension. The problem, however, is that I can't seem to find a way to do this. I looked at how a standard portal does it, but that requires a worldserver as a parameter, which I don't know how to access from there. The function the button's code runs in is as follows: public void actionPerformed(GuiButton button){ switch(button.id){ case 0: /**Button code is here**/ case 1: case 2: } } Anyone know how I would go about doing this? Creator of Metroid Cubed! Power Suits, Beams, Hypermode and more! http://i.imgur.com/ghgWmA3.jpg[/img]
January 3, 201411 yr Author I suspected something like that, thanks! Creator of Metroid Cubed! Power Suits, Beams, Hypermode and more! http://i.imgur.com/ghgWmA3.jpg[/img]
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.