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

[shutting down internal server]. When i teleport to my custom Dimension, Minecraft crashes and gets this error. Why that could happen? If you know, please answer. Its important for me!

  • Author

I changed something and problem dissapeared. But now there is another. I cant stop teleporting from overworld to my dimension. I went inside portal and teleport to my dimension, and just after second teleporting back. And i even cant get out from that. Im trying to break portals, but it teleports me to new one. How to fix that? You dont need code for that actually.

You have to add a cooldown and not teleport the player during that cooldown period.ย  Look at Nether Portals.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.ย  If you think this is the case, JUST REPORT ME.ย  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

ย 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

ย 

DO NOT PM ME WITH PROBLEMS. No help will be given.

  • Author

You have to add a cooldown and not teleport the player during that cooldown period.ย  Look at Nether Portals.

ย 

You mean ChunkProviderHell or something different?

No.... You need to code something that prevents the player from teleporting for 10seconds after he/she used your portal.

i think this is the code you're looking for:

ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  entity.timeUntilPortal = entity.getPortalCooldown();

I'm always happy to help others!

ย 

Java is not my main programming language but I have alot experience in PHP/HTML/JS/CSS3/C#/SQL

  • Author

No.... You need to code something that prevents the player from teleporting for 10seconds after he/she used your portal.

i think this is the code you're looking for:

ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  entity.timeUntilPortal = entity.getPortalCooldown();

ย 

I already have this code. And it still does the same. Also, in overworld it generates the world, but in my dimension it isnt. I think im teleporting back and back again in a try of finding any surface. Check out this part of my code;

ย 

ย 

public void updateTick(World par1World, int par2, int par3, int par4,

Random par5Random) {

super.updateTick(par1World, par2, par3, par4, par5Random);

ย 

if (par1World.provider.isSurfaceWorld()

&& par5Random.nextInt(2000) < par1World.difficultySetting) {

int l;

ย 

for (l = par3; !par1World.doesBlockHaveSolidTopSurface(par2, l,

par4) && l > 0; --l) {

;

}

ย 

if (l > 0 && !par1World.isBlockNormalCube(par2, l + 1, par4)) {

Entity entity = ItemMonsterPlacer.spawnCreature(par1World, 57,

(double) par2 + 0.5D, (double) l + 1.1D,

(double) par4 + 0.5D);

ย 

if (entity != null) {

entity.timeUntilPortal = entity.getPortalCooldown();

{

ย 

}

}

}

}

}

ย 

ย 

I think you need to take a look in your teleporter file maybe you have an error or typo there

I'm always happy to help others!

ย 

Java is not my main programming language but I have alot experience in PHP/HTML/JS/CSS3/C#/SQL

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.