Jump to content

DavidM

Members
  • Posts

    1830
  • Joined

  • Last visited

  • Days Won

    12

Everything posted by DavidM

  1. Post all of your code. Please refer to this image to setup up your event subscribers appropriately.
  2. 1. Do not use static initializers. Read the common issues and recommendations for more info. 2. You do not own the domain "steveraft.com"; therefore, you cannot use it as your package name. Are you by any chance following modding tutorials on youtube? If yes, I would recommend you to stop. Most youtube tutorials are outdated and promotes bad practices. In fact, most you tubers who do modding tutorial are new to programming and have little idea what they are doing ("just copy paste this code because it worked for me, so it will work for you").
  3. AFAIK you can’t. You could try asking the original author to create a Forge version of the mod. Jar modding should not be used anymore.
  4. 1. As a general suggestion, please post a new post instead of editing your original post to a completely different message to avoid confusion. 2. Again, I don’t think Forge supports jar modding. You should install Forge mods the standard way (drag into the mods folder).
  5. I have no clue what you are talking about due to the ambiguity of your description as well as the lack of punctuation. Please consider rephrasing you question and be more specific. If I did understand you correctly, you are asking if Forge supports jar modding. As far as I know, Forge does not support jar modding. You should just install mods the normal way (drag into mod folder).
  6. Please read the EAQ and provide the appropriate log(s).
  7. No you don't. Do not hijack other's thread; please create your own thread.
  8. No you don't. Please create your own thread. Note that 1.7.10 is no longer supported on this forum though.
  9. Update your GPU drivers. If that does not work, get a GPU that supports OpenGL.
  10. Send the whole log.
  11. Please read the EAQ and provide the appropriate log(s).
  12. What mechanics do you want to change? What is the event (what should the event do) you are looking for?
  13. It is not, as the error is present. Check your folders and directories and make sure they have the correct name. Consider uploading your mod to a GitHub repo so others can take a look and assist you in fixing your code. Moreover, a 2 character long mod id is likely to cause conflicts with other mods. Change the mod id to something longer.
  14. ItemStack does not override hashcode and will not work as keys in a Map the way you are expecting it to. As for the recipe, I would suggest creating a list of custom recipe entries and search through it with a method that checks if two ItemStacks are "equal". private List<MyEntry>; // Pseudocode. MyEntry: (inputStack, outputStacks[]) Moreover, stop following HarryTalks' tutorials as his tutorials are outdated and promotes bad practices.He himself is new to programming, resulting in problematic code and cargo cult programming in his tutorial.
  15. Post the error as well as a picture of the block in game. Moreover, you seemed to completely ignored this sentence.
  16. 1. Post your entire code. 2. Are you trying to subscribe to an event? Make sure the @SubscribeEvent annotation is present. 3. Do you know Java?
  17. Sorry. 1.7.10 is no longer supported on this forum due to its age. Update to a modern version of Minecraft to receive support.
  18. You create a new profile in the Minecraft launcher and set the game directory to the game directory of the modpack.
  19. The annotation on an event bus subscriber should be @EventBusSubscriber. Also make the onItemTossEvent static (refer to this picture for more explanation on when event bus subscriber should be static). That is going to crash on a server. Hopefully you are only using it temporarily for debugging purposes.
  20. 1. Show your code. 2. Use your IDE to figure out what methods changed and the replacement for them. 3. Do you know Java?
  21. No. The player have to manually install such dependencies. Well, technically you could auto download dependencies (like how CodeChicken Core/Lib is installed on Minecraft launch); however, such method is disapproved (partly because its downloading files without the player's permission) and should not be attempted.
  22. Subscribe to the ItemTossEvent. Use ItemEvent#getEntityItem (ItemEvent is the super class of ItemTossEvent) to get the EntityItem thrown.
  23. Please read the EAQ and provide the appropriate log(s).
  24. @The Fire Man What are you trying to accomplish?
  25. Please follow the instructions we gave you. Which would be:
×
×
  • Create New...

Important Information

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