Jump to content

DoctorC

Members
  • Posts

    39
  • 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.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.