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.

ElpisII

Members
  • Joined

  • Last visited

Everything posted by ElpisII

  1. Hello, today I am posting this post because I have a problem. Indeed, I would like to make a more or less simple system but on which I have some difficulties. I would like to make sure that when a player clicks on another player with handcuffs (custom item therefore) that the handcuffs go into the breastplate slot where they normally find a piece of armor. The problem is, I can't get the player I clicked on. I would like to go through the "onRightclick" function which we put directly in the class of the item but if that is not possible it does not matter if we go through an event forge. FYI I have already tried both without success. Probably due to my inexperience. Thank you in advance ElpisII And PS: I said above that the item should be put in an armor slot. And I know I created a basic item and not an armor so that will have to be thought about.Class where I create the item: Item class : public class CloseHandcuffs extends Item implements IHasModel { public CloseHandcuffs(String name) { setUnlocalizedName(name); setRegistryName(name); setCreativeTab(CreativeTabs.MATERIALS); ItemInit.ITEMS.add(this); } @Override public void registerModels() { Main.proxy.registerItemRenderer(this, 0, "inventory"); } }

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.