Jump to content

DavidM

Members
  • Posts

    1830
  • Joined

  • Last visited

  • Days Won

    12

Everything posted by DavidM

  1. That code is only using the target entity as the target position. You can just use your own target position.
  2. It sounds like you are creating a jar mod by manually modifying the game files. This is discouraged, as it would cause severe incompatibilities with other mods. In fact, jar modding is not supported on this forum. In your case, you are trying to replace game files. This will fundamentally break Forge (and any other modifications to the game), resulting in not working with any other mods (even other jar mods).
  3. The collision and bounding box of a block can only be 16*16*16 pixels. To create a double wide block, you will need two blocks. Take a look at how vanilla bed/door handles it.
  4. I think OP is asking how to store player data when the player logs off, and fetch the data when the player logs back on. @MuffinColor In server plugins this is commonly done via a database, but in Forge it is better to store the data in player capabilities.
  5. Forge mods can act like data packs..
  6. Please post the client log.
  7. Don't use cracked launchers. Buy the game.
  8. Do not make custom installers. All the user has to do is to drag the mods into the mods folder. There is no need for an installer for such a simple task. Custom installers are potentially reshipping mods in addition to security problems.
  9. 1.7.10 is no longer supported on this forum due to its age. Update to a modern version of Minecraft to receive support.
  10. 1.12.2 is no longer supported on this forum. Update to a modern version of Minecraft to receive support.
  11. Please read the EAQ and provide the debug.log. We cannot help you without the log.
  12. Add velocity also need to be done on client side to provide smooth movement.
  13. java -jar <file_name>
  14. Please post a screenshot of your versions drop down list.
  15. You need to create a new launcher profile and set the version of the profile to forge-1.15.
  16. Try running the file via command-line.
  17. You will have to do this every time you want to launch the server.
  18. Running the first one would start a vanilla server. Try running the second one from command line via java -jar <file_name> . Remember to cd into the directory first.
  19. The new log does not indicate the previous error. 1. Don’t use a random third-party tool to delete a directory. Either use the file browser or a command-line to do so. 2. How did you delete the folder? Judging from the screenshot you might have “unlocked” the directory instead of deleting it. 3. What launcher are you using currently?
  20. It sounds like you are starting a vanilla server. How are you starting the server?
  21. You probably set up your game incorrectly. Please read the EAQ and post the appropriate log(s).
  22. Minecraft's tick is not relevant to the rendering tick; nor is it asynchronous like Unity's Update. However, these differences does not apply to your situation. You can use it like Unity's MonoBehavior#Update method. Please post your code regarding the iteration of the inventories, including the checking of ItemStacks. This is potentially not thread-safe AFAIK. Two simultaneous changes made to two different players might result in only one of the inventories being copied. However I don't think there is currently a way to hook into "whenever PlayerInventory changes" to make the operation thread-safe.
  23. In Java, objects are passed around as pointers. The default implementation of equals is simply checking whether the two variables are actually pointing towards the same object. Since the inventory is never replaced by another instance, it will always be equal to the previous inventory. To check whether the inventory has changed, you will need to iterate through the inventory and compare the ItemStacks one by one with the previous inventory. What are you trying to create though? There might be an easier approach depending on what you are trying to create.
×
×
  • Create New...

Important Information

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