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.

Mizore

Members
  • Joined

  • Last visited

  1. The reason you are getting two messages is because it's sending the chat to both the server side and the client side. You need to make sure it only sends it to one side (server side in most cases...). Anywhere where it sends a chat to the player, surround the statement (or multiple statements) with this statement: if(!world.isRemote){}
  2. The motionX variable is a double. You are adding an integer to a double (which works, but gives the double the precision of an integer. You don't want that, you want the precision of a double. That's the entire reason the variable is a double . You need to specify the type in which you are adding to the double. I am willing to bet if you change: motionX += 1 to: motionX += 1.0D then it will be smoother. (Very very important in programming if you ever need anything to be precise that you specify the type.)
  3. When setting a PlayerInteractEvent to cancelled, the player is able to continue breaking the block. Once the block is destroyed, the block disappears (allowing the player to momentarily walk into the block), and then re-appears again moments later. If the event is on Player Interaction, then it should stop the event as the player is still breaking the block correct? It may not be a bug, perhaps that is as the Forge creators intended it to be. I don't really know, that's why I am reporting this.

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.