Topic category: Help with Minecraft modding (Java Edition)
I only found one other forum topic with this idea and they got zero replies, so here's hoping I have more luck.
I'm trying to create a procedure wherein when an animal is right clicked, the animal is tamed and a GUI opens with a text box and a confirm button. Upon typing in a name and pressing confirm, the GUI closes and that name is applies to the animal's CustomName NBT.
However, from my attempts to get this to work, I've deduced that it would only be possible if I could pass the animal's entity data through the GUI and into the Confirm procedure, or if I could save the animal's entity data to a global variable. And I have no idea if either of those are possible. If anyone has any ideas, either using the regular procedure blocks or custom code if necessary, I'd be very much appreciative.