Posted August 27, 201510 yr 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! Why are you reading this?
August 27, 201510 yr 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
August 27, 201510 yr 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?
August 27, 201510 yr look at the portal block for how it calls a teleporter Long time Bukkit & Forge Programmer Happy to try and help
August 27, 201510 yr 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?
August 27, 201510 yr 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
August 27, 201510 yr 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?
August 28, 201510 yr 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 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.