Jump to content

Cadiboo

Members
  • Posts

    3624
  • Joined

  • Last visited

  • Days Won

    58

Everything posted by Cadiboo

  1. ObjectHolder can be used 2 ways (it says so in the documentation). Either put it above a class with your modid and have your field names match up with the resource path of your registry name, or put it on each field with the full registry name in string form.
  2. No, players download mods from the internet and then play them. What mod developers are “downloading random stuff and putting it into jars”?
  3. "If it ain't broke don't fix it". It works for vanilla.
  4. What does this mean? Can you explain more?
  5. If you want 16777216 color variations you will need a TileEntity + FastTESR/Custom baked model an IBlockColor implementation
  6. Minecraft was initially written by someone learning Java. Plenty of early code written by Notch still exists in the game. An example is the IInventory system or the Block -> TileEntity system (There are about 3 ways of doing the same thing). IMO the class-based entity system also leaves a lot to be desired.
  7. 1) Why 1.7.10 2) What do you want the mod to do?
  8. I'm pretty sure the entire point of the animation system is that it doesn't use block states
  9. What are you asking for help with?
  10. To be fair, the top comment on the video is the author saying "Oops, use Java 8, not Java 11"
  11. The Proxies in your mod are unnecessary, useless and unused. You should use object holder on your entity entries. I don't think that the FMLClientSetupEvent is the right place to register your renders. Other than pretty much everything else, I can't see anything wrong with your mod.
  12. It also breaks the gradle script for almost any other computer because it points to a specific file on your computer that pretty much no-one else will have. Being unable to set your JAVA_HOME variable indicates to me that you have a bigger problem. I'm not saying that this solution doesn't work, I'm saying its not optimal and that it should be avoided because it has longer term problems.
  13. I love the 152 page long stacktrace. What happens when you go to the command line and run gradlew eclipse?
  14. There doesn't seem to be anything wrong with those logs. What mods are you installing and where did you get them from?
  15. That event will be fired on both the logical Client and Server sides. Therefore it will be called twice on the Physical Client distribution. As DavidM said, check that the world you get from the event is remote.
  16. This solution won't work for anything except windows, and doesn't fix the underlying problem. Setting your JAVA_HOME variable is the right way to go
  17. Sorry we don't support 1.7.10 (it's 4+ years old!) or any version under 1.10 on this forum anymore due to their age. We simply don't know how to help you anymore. You can go to the Minecraft Forum where I think that they still still support older versions, or update to a modern version of Minecraft (the latest version or the one before it) to receive support on this forum.
  18. Yes you do. Writing a computer program in a computer programming language by definition makes you a computer programmer. Modifying another application - making a "mod" - is a pretty advanced thing for a computer programmer to do. Forge, FML etc. take care of 99.9% of this, including the ASM, loading your mod and deobfuscating MC. Therefore what you are making isn't really a "mod" at all, its more of an add-on. There are other "mods" out there that allow you to write your add-on in another computer programming language. For example these "mods" allow you to write your "mod" in Skript, JavaScript, Scala, Kotlin or even whatever Scratch-based language MCreator uses. However, doing this is inherently writing "code" to make a computer do something, which makes you a computer programmer. In future if you want help on this forum I would recommend being more polite. It may be hard for beginners who haven't done the appropriate pre-requisite background stuff (learning how to write code in the language you've decided to make your mod in, learning the basics of setting up gradle from the command line - or using the command line at all, learning the basics of git etc.), however beginners should have done their research and learned how to do these things. Learning by example is great, and it's how I've learned 95% of everything programming related, but the key part of it is learning, not just copy pasting code. This is why posting ready-made code snippets is discouraged on these forums. The question you asked was pretty simple and you got a quick answer. After that, you could have googled what a "counter" is in programming and how to make one that increments. The basic idea of it (in this scenario) is to have a variable (an instance field in this case) that you increment (pre-increment would be perfect for a tiny performance gain in this case) every "tick" (in your onUpdate method in your TileEntity in this case) and, if the value is the desired one, reset the variable and execute your logic that should only happen every several ticks.
  19. Post your logs
  20. 99.9% of the time you don’t actually need a proxy
  21. No you don’t, in vanilla an example of this is the “iron_ingot_from_nuggets” recipe
  22. This is still pretty vague. What did you add? The project to the eclipse workspace? The source folder to the project folder? Did you open the mod project in eclipse? Did you import it as a gradle project?
  23. Override addInformation in your item class
  24. How many other applications are open at the same time? Have you tried using 5gb of ram?
×
×
  • Create New...

Important Information

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