Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

Hi,

 

How can I change (or override) the default (nether) teleporter with a new one, which will basically be one block?

How can I basically get rid of the nether portal spawning when the player enters the new custom dimension?

 

Thanks for any support! :P

Why are you reading this?

Create a custom teleporter.  Look up the code that is called from a portal, extend it, and modify it to meet your purposes.  Specifically get rid of the create portal on other side.

 

Create a block, that when collided or interacts calls up your custom teleporter.

Long time Bukkit & Forge Programmer

Happy to try and help

  • Author

Create a custom teleporter.  Look up the code that is called from a portal, extend it, and modify it to meet your purposes.  Specifically get rid of the create portal on other side.

 

Create a block, that when collided or interacts calls up your custom teleporter.

I made a custom teleporter class that extands the Teleporter (vanilla) class and I've overridden the "makePortal" method. I tried to insert "setBlockState" in it, without all the other portal-making code, but I'm not sure at all if this is the way to do it.

The problem though, is that I don't really know how to call the Teleporter. I'm using "travelToDimension" to move the player on a block activate (I gave up currently on the GUI with one button, seems pretty useless). So basically nothing calls the custom Teleporter class.

I think I just totally understand the Telleporter class so I'm doing something wrong.

Thanks for the reply :)

Why are you reading this?

look at the portal block for how it calls a teleporter

Long time Bukkit & Forge Programmer

Happy to try and help

  • Author

look at the portal block for how it calls a teleporter

I'm looking at the BlockPortal.class and I can't find anything related to the Teleporter.class. Am I blind? :\

Why are you reading this?

Can't remember the method, entitycollides or somethign like that.  It will check if serverside, call the players portaltime, and then after certain conditions call the teleporter code.

Long time Bukkit & Forge Programmer

Happy to try and help

  • Author

Can't remember the method, entitycollides or somethign like that.  It will check if serverside, call the players portaltime, and then after certain conditions call the teleporter code.

I'm currently unable to test that. When I'll be able to I'll see how it goes. Thanks anyway for replying.

Why are you reading this?

  • Author

Can't remember the method, entitycollides or somethign like that.  It will check if serverside, call the players portaltime, and then after certain conditions call the teleporter code.

Alright, I figured out how - I had to add the required arguments to transferPlayerToDimension :P

Also I found out that I can override placeInPortal and set a new block state in the entity pos to make my block when the player changes dimemsion.

My only problem now is that when the player come back to the overworld, it makes ANOTHER portal block, so each time it changes dimension the Teleporter class makes another teleport block.

What I can do so the teleporter class will make my teleport block to act like it should?

Thanks :)

Why are you reading this?

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.