#I'm quite new to coding and am getting into making Minecraft mods, what should I expect?

24 messages · Page 1 of 1 (latest)

carmine python
#

It's a pretty broad question but any feedback would be appreciated. Like I said, I'm rather new to coding. Technically I've been learning little bits at a time for the past few years but I've been starting to put it to use only recently, and am trying to improve.

Usually I'd always mess with datapack stuff to alter things in Minecraft but recently I finally made an actual mod for it.

I wanna keep going and try making more, but something I want to hear about is how the environment of modded Minecraft is. It seems like some people can port their mods to several versions on all mod loaders with little time and effort, and to others it's such a headache that they don't bother even if they have the time.

How much of a struggle is it to get your mod working fine across neoforge/sinytra and fabric? Do you hate doing it? And what should I expect for whenever I have to update my mod(s) for a new or older Minecraft version?

rough shard
# carmine python It's a pretty broad question but any feedback would be appreciated. Like I said,...

Coding-wise, I’d say that Minecraft mods are not the place to start. However, I also think that projects are the best way to learn and keep motivation so I wish you luck!

Porting-wise, I don’t have forge mods or anything like that, but it generally just depends on scale of the mod and experience of the developer. Some mods can be tough for a simple version bump, but some devs use a tool (Stonecutter I think) that allows them to write code that can run across loaders

carmine python
carmine python
#

One more question I forgot to mention earlier, I'm wondering what's the best way to decompile an existing mod to modify its code?

I want to clone this one I found to try fixing something in it, but it seems the repo for that specific version isn't available.

elfin galleon
#

That being said

#

!!learnjava

brave oreBOT
#

To start modding Minecraft using Fabric, it's strongly recommended to know Java.
Minecraft, in its codebase, and mods, using Fabric API, use more advanced Java concepts like lambdas, generics and polymorphism.
If you don't know all of these concepts, you may have some difficulties modding.

Here are some online resources that will help learning Java
JetBrains Academy (free online course): https://www.jetbrains.com/academy/
Codecademy (free online course): https://www.codecademy.com/learn/learn-java
University of Helsinki (free online course): https://java-programming.mooc.fi/
Basic Java Tutorials: https://docs.oracle.com/javase/tutorial/
Introduction to Programming using Java by David J. Eck (free online textbook): http://math.hws.edu/javanotes/

After Learning Java
For most mods you will want to make, you will have to use the Spongepowered Mixin Java library.
To learn more about Mixin, you can use the faq/mixin bot tag by typing !!faq/mixin in #bot-posting .

elfin galleon
crimson ivy
#

if you know what a functional interface is im assuming you can solve a syntax error

#

Basic Minecraft-related questions, which you should find answers on the docs page:

  • What is a World?
  • What is a block state?
  • How do you use Fabric API events?
    these dont matter at all depending on what you want to do
#

How do I check the Java bytecode? (optional but highly recommended)
I never got this. only like 8 months into modding was the first time i had to look at the bytecode

#

Most importantly: How do you navigate a source code you didn't write, and has no comments?
What even is this question? is the answer "ctrl click"?

#

What is the code path taken for common actions - breaking a block, placing a block, interacting with a mob, or mob/block entity ticking?
like ??? ? ? why does this matter at all? its so unclear, where does the code path "start"?

#

How do you navigate the Yarn javadoc?
Huh????

reef hearth
#

your experince doesn't equate to another's

#

not knowing basics like world and block state is only going to set you back. apple's response isn't made for someone who's going to experince the full extent of modding.

crimson ivy
#

if you're doing some GUI stuff, why would you need to know what a blockstate is before you even start making a mod

reef hearth
#

because that's mc basics

crimson ivy
#

shrug

#

and my other points?

reef hearth
#

i don't think there's any point answering those joesmugshrug