Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 03/03/19 in all areas

  1. 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.
    3 points
  2. You’re communicating with me right now. Alternate forms of communication are in my signature.
    1 point
  3. 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.
    1 point
  4. 1) Why 1.7.10 2) What do you want the mod to do?
    1 point
  5. 1 point
  6. You could try looking at Botania's animated Mana Pump model: blockstates, base model, head model, armatures, animations.
    1 point
  7. In that case, there is probably something wrong with your mods (given that I interpreted your problem correctly; your description is rather hard to understand). Upload your code for both of the mods to a repo or something so that we can look at it and figure out what is wrong.
    1 point
  8. They were absolutely right, but the entity tracker does this automatically, which is why if you also do it, and end up with different values, you will absolutely see rubberbanding, and if that happens then it will be worse at higher update frequencies (eg. when setting it to 1). Basically you should either be using the built-in entity tracker synchronization, or you should use your own custom synchronization, but not both. I'd suggest trying the built-in one first because if it works, it's a lot less programming.
    1 point
  9. PLEASE PLEASE PLEASE Do not use Google docs for sharing your errors or logs, use pastebin or GitHub gist. Oh god he tells you to set _JAVA_OPTIONS, do not do this just set it per-project. The one thing he does right is telling you not to use JDK 11, which is what you have done. This is another example of people making tutorials before they learn how to mod properly, passing their mistakes to the next generation. https://en.wikipedia.org/wiki/Cargo_cult_programming
    1 point
  10. i'm looking to have a custom mod made that will change the inventory system. I need each item to take up a certain amount of inventory space. for example: stone would take up 4 inventory slots. A sword would take 2, etc. Price will be discussed. My discord: IRonic#0131
    1 point
×
×
  • Create New...

Important Information

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