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.

hfsdagvbadjh

Members
  • Joined

  • Last visited

  1. I recently started working on a new dimension with forge for my mod. I registered my dimension and my WorldProvider with DimensionManager and I wonder how i can get to this dimension now. I tried this: //////////////////////////////////////////////// public void onEntityCollidedWithBlock(World par1World, int par2, int par3, int par4, Entity par5Entity) { EntityPlayerMP entityplayer=(EntityPlayerMP)par5Entity; MinecraftServer.getServer().getConfigurationManager().transferPlayerToDimension(entityplayer, 11); // 11=id of my dimension } /////////////////////////////////////// But you obviously cant cast EntityClientPlayerMP to EntityPlayerMP , and I cant figure out how I can get the player to the dimension on a differrent way . (Note: my mod isnt smp yet). It would be great if someone can tell me how I can solve the problem , because Im not a very good coder and (as said before)I dont now any other way to get to my dimension.( I am using forge 4.2.5.303) Thank you in advance PS: Do I really have to unregister the Dimensions 0,-1 and 1 to get the DimensionManager to work? I solved it by doing this: public void onEntityCollidedWithBlock(World par1World, int par2, int par3, int par4, Entity par5Entity) { if (par5Entity instanceof EntityPlayerMP) { EntityPlayerMP playerMP = (EntityPlayerMP)par5Entity; playerMP.mcServer.getConfigurationManager().transferPlayerToDimension(playerMP, 11); } }

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.