Everything posted by DoctorC
-
Authentication for runClient
I added them under minecraft/runs/args and then re-ran genIntellijRuns but runClient was still unauthenticated.
-
Authentication for runClient
Okay, how would I do that? They're not under 'VM Options'.
-
Authentication for runClient
Edit Configurations... then added to Arguments.
-
Authentication for runClient
It seems to be coming up with an error: Unknown command-line option '--username'. (I'm using IntelliJ)
-
Authentication for runClient
How would one login with their Minecraft account for the runClient task?
-
[1.16.4] How to add lore to ItemStack
Thanks! I didn't realise that adding to the list would update it in-game without having to set it.
-
[1.16.4] How to add lore to ItemStack
There don't seem to be any functions to change the tooltip.
-
[1.16.4] How to add lore to ItemStack
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.
-
[1.16.4] How to add lore to ItemStack
Okay, how do I change the tooltip rendered?
-
[1.16.4] How to add lore to ItemStack
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).
-
[1.16.4] How to add lore to ItemStack
I want to add it on the Itemstack, not the item (I've tried Item.addInformation), but I'll look into RenderTooltipEvent. Thanks!
-
[1.16.4] How to add lore to ItemStack
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.