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

I have this code:

player.setVelocity(player.motionX,player.motionY+1D,player.motionZ);
		player.velocityChanged = true;

And it doesn't crash me, but it kicks me because EntityPlayer.setVelocity doesn't exist server side.

How could I fix this?

The proud(ish) developer of Ancients

  • Author

It can't inline it because the class doesn't have a source attachment...

The proud(ish) developer of Ancients

  • Author

I have to install java 7...this sucks

 

EDIT: I installed java 7, it still doesn't work

The proud(ish) developer of Ancients

  • Author

I have a different version installed, so it didn't work. I tried installing java 7 but it still doesn't work.

The proud(ish) developer of Ancients

  • Author

gradlew setupDecompWorkspace eclipse: says "FAILURE: Build failed with an exception"

then it says that I need java 7 and it's fixed with forgegradle 1.2

The proud(ish) developer of Ancients

  • Author

1.I don't know how to update

2.again, I don't know how to update

The proud(ish) developer of Ancients

  • Author

Yeah I tried that, but I couldn't figure out what I was doing wrong. All I know is that I couldn't get the proper files.

Also I changed the line to "player.motionY += 1D;" and it works.

The proud(ish) developer of Ancients

  • Author

The proper forge files, I got the universal and the Installer. I have no idea where to go from there.

(I made my mod a couple months ago)

The proud(ish) developer of Ancients

Instead of calling the setVelocity method (which is client-side only), change the motionX/motionY/motionZ directly. Example:

 

player.motionX += 0d;
player.motionY += 1d;
player.motionZ += 0d;

 

Hope this helps! :)

- Romejanic

Romejanic

 

Creator of Witch Hats, Explosive Chickens and Battlefield!

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.