Posted February 14, 20232 yr I have no experience with modding at all and limited with Java but all I need to do is get the coordinates of my player and export them to a text file. I can't find a guide online and I can't find anything in Forge documentation. I've tried this: PlayerEntity player = Minecraft.getInstance().player; player.getX(); player.getY(); using this import net.minecraft.client.player; but I've edited both the import and the actual 'code' by using different commands like getPosition() and also importing net.minecraft.entity.player.PlayerEntity and EntityPlayer and also net.minecraft.world.entity.player but everything gives a 'cannot find symbol class' error, 'symbol variable' for Minecraft.getInstance() or it says the package doesn't exist for the import Thanks in advance hopefully
February 15, 20232 yr 21 hours ago, lordurel said: I have no experience with modding at all and limited with Java but all I need to do is get the coordinates of my player and export them to a text file. What are you attempting to do with this? 21 hours ago, lordurel said: using this import net.minecraft.client.player; but I've edited both the import and the actual 'code' by using different commands like getPosition() and also importing net.minecraft.entity.player.PlayerEntity and EntityPlayer and also net.minecraft.world.entity.player but everything gives a 'cannot find symbol class' error, 'symbol variable' for Minecraft.getInstance() or it says the package doesn't exist for the import What guide are you trying to use for this?
February 15, 20232 yr Author I'm not using a guide because I can't find one since every video just says "click f3" and I just found snippets of code from the forge documentation https://docs.minecraftforge.net/en/1.19.x/
February 15, 20232 yr Minecraft code is obfuscated. It sounds like you are either trying to run non-obfuscated code, or trying to run client-only code on the server. Please provide the full crash log, and ideally your source code in a git repository
February 15, 20232 yr Author https://github.com/superderpyderp/d just below line 64 is the only thing i've edited https://www.dropbox.com/s/rnyh1uc3cq6rncz/idea.log?dl=0 is the crash log
February 16, 20232 yr It appears that your IDE or the jvm itself does not have the ability to access files on your computer. You can probably search on the internet how to fix that.
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.