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.

GMqwerty

Members
  • Joined

  • Last visited

  1. yea ik, i just want to check what items players near me hold, i am making a mod that shows you if someone is going to attack you, so if someone is holding a sword and is in a 10 block radius it shows you a message
  2. I want to run some code when a player holds a sword, so I guess I would have to check constantly? i dont know tho
  3. I want to check all players on a server if they are holding a specific item. I think I understand how to get the item they are holding, but I dont know from which event to check?
  4. Oh alright thanks! EDIT: just tried it and it worked!
  5. oh so how can i draw text on top of the furnace GUI?
  6. @SubscribeEvent public void RenderGameOverlay(RenderGameOverlayEvent event) { Minecraft mc = Minecraft.getInstance(); PlayerEntity player = mc.player; FontRenderer fontRenderer = mc.font; if ( mc.screen instanceof FurnaceScreen) { if(event.getType() == RenderGameOverlayEvent.ElementType.TEXT) { fontRenderer.draw(event.getMatrixStack(), "lol", 175, 125, 0); } } } I want to draw text on the furnace gui and I have tested it and it works, but it draws behind the gui. How can I solve this issue?

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.