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.

DoctorC

Members
  • Joined

  • Last visited

Everything posted by DoctorC

  1. I added them under minecraft/runs/args and then re-ran genIntellijRuns but runClient was still unauthenticated.
  2. Okay, how would I do that? They're not under 'VM Options'.
  3. Edit Configurations... then added to Arguments.
  4. It seems to be coming up with an error: Unknown command-line option '--username'. (I'm using IntelliJ)
  5. How would one login with their Minecraft account for the runClient task?
  6. Thanks! I didn't realise that adding to the list would update it in-game without having to set it.
  7. There don't seem to be any functions to change the tooltip.
  8. Yes, but how. As in, I have a FontRenderer and I can render in a string, but it doesn't add lore, rather it adds text rendered underneath the item. I don't have any experience rendering things in Forge, which is why I am asking.
  9. Okay, how do I change the tooltip rendered?
  10. I'm using GuiScreenEvent.KeyboardKeyPressedEvent to get a keybind being pressed, and then change the item under cursor, so I don't think Item#addInformation would work (well I can't get it to at least).
  11. I want to add it on the Itemstack, not the item (I've tried Item.addInformation), but I'll look into RenderTooltipEvent. Thanks!
  12. How would I go about adding lore to an ItemStack? Here is my current code: CompoundNBT nbt = item.getTag(); CompoundNBT display; ListNBT lore; if (nbt.get("display") != null) { display = (CompoundNBT) nbt.get("display"); if (display.get("Lore") != null) { lore = (ListNBT) display.get("Lore"); } else { lore = new ListNBT(); } } else { lore = new ListNBT(); display = new CompoundNBT(); } CompoundNBT tagRawJson = new CompoundNBT(); tagRawJson.putString("tag", "{'text': '[tag]', 'italic': false, 'color': 'white'}".replace("[tag]", tag)); lore.add(tagRawJson.get("tag")); display.put("Lore", lore); nbt.put("display", display); item.setTag(nbt); I would like to add the contents of the String variable named tag to the lore.

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.