Jump to content

Recommended Posts

Posted

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!

width=174 height=100http://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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.