Jump to content

DavidM

Members
  • Posts

    1830
  • Joined

  • Last visited

  • Days Won

    12

Everything posted by DavidM

  1. EntityPlayer#openGui.
  2. DavidM

    ~~

    1.13.2 haven’t changed much in terms of creating basic tools, armor and rendering. @Alysriel Do you have the textures for your tools?
  3. I can't figure out how to quote on mobile... The root of your repo should be one directory higher.
  4. Can you post your code as a GitHub repo?
  5. As diesieben07 has stated, look at WorldClient#playSound for an example. In addition, there is no reason for naming your World variable “worldIn” instead of just “world”; the suffix “In” should not be used in such a way and can cause confusion.
  6. 1. I'm pretty sure the string given to @ObjectHolder should include the mod id of your mod to avoid conflict. 2. Personally, I would avoid storing references to the same block in both a static field and a list; only one of them is needed (preferably the static field with @ObjectHolder). 3. Wut? I’m pretty sure you can just use literals here.
  7. This is not original but: TiC is the name of a mod; its mod ID is tconstruct. IC2 is the name of a mod; its mod ID is industrialcraft2. Creating an extra method just to assign a reference to a variable is unwise (considering memory usage, code readability and design pattern), especially when the Java language's syntax allows you to do it inline. Please update your crash log; the old one no longer applies to your updated repo (line numbers have changed).
  8. 1. Update your repo. 2. "exa" is not a good mod id; 3 characters long name can cause conflicts. 3. This method is unnecessary; just do something like: modBlocks.add(STATIC_BLOCK_HOLDER = new MyBlockThingy("blah")); 4. These loggings at info level are pointless; the player doesn't care what state mods are at, and logging random stuff at info level can clog up the log easily.
  9. 1. Stop using BlockBase. It is a very bad practice (please refer to the Common issues and recommendations). In your case, your CraftingTableTier2 should just extend Block. 2. IRecipe implementations are completely irrelevant to your crafting table. It does not make sense to have your crafting table block implement IRecipe. Implement IRecipe in a different class.
  10. Stop following his tutorial; his tutorial is terrible in that it has a lot of bad practices and unnecessary stuff, not mentioning all the outdated ways to implement certain features. Try resorting to a good text-based tutorial instead; here is one for example: https://github.com/TheGreyGhost/MinecraftByExample Cadiboo also has a good example mod that guides novice modders to use good practices. In addition, your repo is still set up incorrectly; the root of your repo must be the root of your Forge MDK.
  11. Can you try pinging your friend's server?
  12. Can you try running the ls (or the corresponding command on your operating system) command to list out everything in your server directory? This will ensure everything under the directory is listed out, regardless if they are hidden or not. Check if the file/directory you are looking for is there. If for some reason the file explorer is not working, you can always resort to the command line.
  13. 1.8.9 is no longer supported on this forum; please update to a modern version of Minecraft to receive support. Also, in the future, please read the EAQ and provide the appropriate log(s) when asking for help with crashes.
  14. Purchasing the Java Edition gives you the Win10 Edition for free. AFAIK it does not work the other way around.
  15. Are you playing the Win10 Edition? Forge does not support the Win10 Edition.
  16. Where is your Minecraft directory? Point the installer to your Minecraft directory.
  17. I would suggest that the very first thing you need to do is to create and play around with stuff like tile entities and GUIs. This way, you will be more familiar with how some modding concepts work. Starting with a crafting GUI, which requires an IRecipe inplementation as well as a tile entity, including an GUI that handles the crafting interaction, can be rather confusing and unintuitive. As for your problem: Override Block#onBlockActivated and open the GUI in Block#onBlockActivated in your crafting table class. Create a tile entity for your crafting table (not needed if you don't want your crafting table to retain its content when the GUI is closed). Create a GuiContainer for your GUI. For more details, take a look at the vanilla crafting table. Create an IRecipe implementation for your crafting recipes. A detailed explanation of how an IRecipe implementation works can be found here: http://www.minecraftforge.net/forum/topic/22927-player-based-crafting-recipes/
  18. The screenshot should only happen on the client side; therefore, you want to check for the isRemote value being true.
  19. What are you going to do with the image? Keep in mind that the client can always lie and send a fake image to the server.
  20. There is something wrong with Mo' Creature. Try updating to the latest version of the mod; if the same crash happens, remove the mod and report to its author.
  21. Do not create duplicate threads, especially when the original thread is locked.
  22. Except I would suggest not to make a base tile entity block (as in the tutorial). All you need to do is to override Block#hasTileEntity and Block#createTileEntity; it is not worth creating an entire tile entity block base.
  23. Use a tile entity instead. Since blocks are singleton; values in your block class will be the same for every block in the world.
  24. AFAIK you don't. There might be ways that can potentially achieve this, but are probably discouraged. What are you trying to achieve? There is probably a better way of doing it.
  25. In general, mods downloaded from sites like 9Minecraft will have file names like "<blah>+<blah>+<blah>.jar". Notice how the file name, unlike the normal naming convention, has "+" in place of "-". You might want to start picking out and replacing mods with "+" in their file name first.
×
×
  • Create New...

Important Information

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