Jump to content

larsgerrits

Members
  • Posts

    3462
  • Joined

  • Last visited

  • Days Won

    17

Everything posted by larsgerrits

  1. Better in my opinion: don't use an enum at all. Make your enum class a normal class, and make static references to the different materials. Then in the constructor, add the materials to a List, and iterate over that instead.
  2. Forge has a built-in fluid renderer. On the MinecraftForge GitHub, there's a test you can use as a reference.
  3. You do the same as with red, green and blue, with an alpha value of 255, and bitshifted 24 to the left.
  4. Forge has a build-in Wavefront model loader to convert your Wavefront model to an IBakedModel, so why re-invent the wheel?
  5. 1) Where do you pop your matrix? 2) Maybe using glPushAttrib and glPopAttrib will help.
  6. The class is called GradleStart, not GradlewStart.
  7. Items are singletons, so you don't need to use equals to check if they are the same, == will do just fine. Same for blocks.
  8. Don't just post copy-paste ready code. It doesn't help anybody and nobody learns anything from it.
  9. Then post your updated code. Also, next time, please be more specific than 'block doesn't render'.
  10. Don't use the gradlew idea command. Here is a tutorial by diesieben07 for setting up IntelliJ IDEA with Forge.
  11. First of all, have you updated your mappings to the latest? That field may already be called something else. In which class/method is that field? That would make it much easier for us to help you out.
  12. You never use that class outside of it. Therefore it never gets loaded, and never instantiate the INSTANCE field, and never registers your BucketHandler as an event handler. Easiest solution in my opinion: move the registration outside of the class, e.g. in init in your main mod file.
  13. If you can't take a little criticism, you can go away. We are just trying to help you. If Draco18s says centering your post is annoying, you don't have to listen to that. It is just a recommendation so we can understand you better and help you better.
  14. What do you mean with 'finetuning'? Setting the Block and Item IDs? You won't have to do that anymore.
  15. Almost every mod has been updated to 1.7.10 or 1.8. And if they are not, there may be a replacement for it. So I suggest updating to 1.7.10+, so you won't have to worry about Block and Item IDs anymore.
  16. After the Minecraft Items are initialized, you can use e.g. Items.diamond_pickaxe.setMaxDamage(maxDamage) to set the max damage of an Item.
  17. We need more contect. What doesn't work? How do you want it to work? Have you tried debugging it yourself? Always post updated code and more context if you want us to help.
  18. No, use world.getBlockState(BlockPos).getBlock() == Blocks.grass to check the block type.
  19. There's no way you can have no line 78 in your IDE. Post it.
  20. We need more code: - IGuiHandler - The method in which you open your gui - Your gui code Preferably on gist.github.com, pastebin.com or a GitHub account.
  21. You probably want to make all variables statis, make setters for them and in the setters call markDirty().
  22. A single line of code is ofcourse free. A part of a merthod too. But nobody's gonna write a whole algorithm or system in Minecraft for free.
  23. Some people just export it from Eclipse and expect it to work. I don't know what could cause the issue. We (I) need to have more info: 1. The Forge version you are using Caused by: java.lang.NoSuchFieldError: rock at two.graves.blocks.BlockGrave.<init>(BlockGrave.java:40) 2. Show us line 40 from BlockGrave. Or do you have a GitHub workspace we can use?
  24. "Write my code for me! I can't code!" Nobody's gonna write code for you for free. There's a tutorial on the SimpleNetworkWrapper by diesieben07 in the Tutorials section of Modder Support.
  25. If you can't work with the Windows file explorer, you are as stupid as someone can be. The build.gradle is in your mod folder.
×
×
  • Create New...

Important Information

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