Jump to content

speedspencer

Members
  • Posts

    15
  • Joined

  • Last visited

Everything posted by speedspencer

  1. This is a server mod, but it is also used client side (ex: new blocks for only 1 player, not all players in the world). Can you please help?
  2. Bump. The original post has been edited to better suit what I am looking for.
  3. No... this is a client. I just want to know how to find the USER coordinates, along with the yaw and pitch (which I do not know how to do) along with how to find the NEAREST player to the USER's coordinates (which I have not even the slightest clue how to do). @diesieben07
  4. Here is just a bit of java info. Java never "constantly" runs. Never. You can't program that (well you probably could but it's not how it works). What happens is you set the Boolean pressed to true, so it runs a class or etc. and then you check the Boolean throughout the code to make sure it is true, if it isn't, program the code to disregard the events that took place and to start over at Boolean pressed true when the keybind is pressed again. NOTE: When I say disregard, I don't mean erase what happened due to the result of pressing the keybind, I mean to literally pretend it didn't happen (even though it did happen) and start over. All of this is a bit hard to explain, but the point stand (if you can understand my mumbo-jumbo).
  5. That is exactly what I do not know how to do. I am relatively new (as in brand new) to player API with Forge. I don't know how to call Entity player or what the proper imports (or really anything are). I just need to know what imports I need (and where I can find them within the forge documentation) along with the format of finding the cords for the player. What would I use for the nearest player that isn't the user?
  6. The reason some letters and files were changed is because they were corrupted or you are using an encrypted file. Often, minecraft can corrupt files because they need their .jar mods to be coded in an extremely delicate and tedious way, so they decide they should try to change some things in the .jar file to try and "fix" the file even though nothing is wrong. Check you formatted your classes and etc. to up to date minecraft modding standards and if that doesn't work, read below... When you say you use the gradlew command, are you talking about your forge client or the MDK you use to code with in Eclipse? If you try to use gradlew with the .jar forge, it is not gonna have any good results (if any). What you need to do is generate a forge file on your desktop (the MDK version you can download) and build your projects within the eclipse file inside of the forge file (should already be there). Once you are done, export it using whatever you didn't use this time (aka use the other forge than what you got the error with).
  7. This is the only class I have, if that is what you are asking. I made this class from scratch so yes it is custom. @Cerandior Bump!
  8. Hello! My name is speedspencer and I am developing my first ever mod, but I am having some trouble trying to figure one part out. My mod is a bow aim assist of sorts-- it uses vectors by getting pitch, yaw, x, y, and z to calculate a shot from one player to another (or that is the goal, at least). EDIT: Can someone please just tell me the method (blank.blank.getPos.Player.etc) for the coordinates of the nearest player in minecraft (that isn't you) and for the user player? It needs to include pitch and yaw PLEASE.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.