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,

i have a mod creating a custom dimension. My Portal Block shall be activated (teleport) the player when it is right-clicked. Therefore I´m using the OnBlockActivated method. But here lies my problem.

 

When i open my mod in the client on my eclipse development environment then the mod loads and works fine. But when i build it and try to run it on the normal client it crashes before loading the "Mojang" logo.

 

Here is my portal block class:

http://pastebin.com/H0G9YUHV

 

And my main class:

http://pastebin.com/DVLu69h4

 

The client crashes with the following error:

http://pastebin.com/0K2NT2qH

(I can´t figure any sense from the log this time and Forge log does not even say anything about it.)

 

I cant figure out why it is crashing on the normal client but not in the dev client. Both client and eclipse have Forge (1.7.2) #1040 installed. Can you tell me why plz?

Run minecraft with more ram there's a stack over flow cause by running out of memory so your mods classes are not all loaded.

  • Author

@Chillbill It has 2GB. I´m sure that´s not the case

 

@diesieben07

The failure seems to be somewhere in the onBlockActivated method in BlockPortalMinefields above.

May you have a look at the class and tell me what could be wrong? I can´t see any problem of the ones you listed.

Also it works fine when i comment this method out. It´s working too if i declare the method @SideOnly(Side.Server) but then crashes with a server tick loop error when loading a world.

  • Author

Found my failure in my custom teleporter class. I will use the vanilla one while i look for the specific line in the code causing it. It was just a quick copy of the Teleporter.java anyway.

 

Thank you.

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.