Started by
azizjuaneten5858
on
Topic category: Help with Minecraft modding (Java Edition)
I want to make a mod and in the mod I want to find the person's current IP address and write something like "Your IP address is 123" 5-10 blocks away from the player. Is this possible?
The only way would be custom code, I can give you the code that should be able to get and print the IP
It's okay if I put this right at the bottom of my mod's code section, right?
yes, but the imports still need to be at the top, you have to remove
public
beforeclass RealIPAddressOnly
, and replacemain(String[] args)
with something likegetIp()