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 a multi purpose tool in my mod (i.e. it does different things depending on whether you click in the air with it, or on a block, what kind of block, etc.) I'm wondering if there is any simple, reasonable way to prevent my code in Item#onItemRightClick from firing if Item#onItemUse already has.  I know from testing that onItemUse fires first, and doesn't fire if the user is clicking on air as opposed to a block (which nixes my brilliant plan of putting all the functionality in onItemUse.) I'm mostly just trying to prevent chat spam for the user because onItemRightClick sends a chat message to the client with information about the surroundings, and I think this will become irritating if the user is trying to use the tool to do something like adjust settings on one of my blocks which may involve a lot of clicking.

Edited by Codasylph

  • Author

Thank you! I actually was returning SUCCESS every time the item "did something", but apparently only on the server side. -_-;

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.