Fahrenheit451 Posted December 23, 2021 Share Posted December 23, 2021 Hi. I have a small mod in the works which just needs to capture the world name, dimension name, and x, y, z position of all online players. This is data that is used by an external map web page, so the mod will dump this data out periodically. How do I do this in 1.17? I can't seem to find this information in the forge documentation on how to iterate over online players and get this data? Thanks! Quote Link to comment Share on other sites More sharing options...
Fahrenheit451 Posted December 23, 2021 Author Share Posted December 23, 2021 Thanks. Unfortunately I can't upgrade the server right now. How do I get the world and dimension the player is in? Quote Link to comment Share on other sites More sharing options...
Fahrenheit451 Posted December 23, 2021 Author Share Posted December 23, 2021 Thanks again. I was looking at an old 1.12 mod source that retrieved the world (eg overworld) and dimension (eg DIM7). If they are one and the same then I will have this mod just output the dimension and see if the map js works with it. Thanks again for the replies! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.