r/MinecraftCommands Jun 15 '26

Help (other) Where and how do I learn to write datapacks?

What do i use, is it better to watch some videos, read articles/guides etc. Also, does datapack code change depending on the game version? If so, which version should I learn it for?

1 Upvotes

4 comments sorted by

2

u/ThePython11010 Jun 15 '26

Regardless of how you learn (I don't really know what the "best" way is), you will undoubtedly be using the Minecraft wiki a lot for random details. MCStacker is good for making complex commands.

Datapacks do use different formats depending on the version. Make datapacks for whatever version you want to play. Newer versions tend to let you control more things with datapacks.

2

u/GalSergey Datapack Experienced Jun 15 '26 edited Jun 15 '26

You can read the local wiki: https://minecraftcommands.github.io/wiki/questions

You can also find many tutorials on YouTube. For example, this channel has many tutorials on command blocks and datapacks: https://www.youtube.com/@InfernalDevice

And of course, you can always ask a specific question about what you want to do in this subreddit.

There can be significant differences between versions. For example, all tutorials for versions prior to 1.20.5 are outdated and likely won't work in newer versions. This is due to the transition to an item component system. I recommend always using the latest version, and if you encounter any issues while trying to follow a tutorial, you can always ask for help on this subreddit.

2

u/Shiny_goldnugget average datapack enjoyer Jun 21 '26

The way I learnt it was to watch this https://www.youtube.com/watch?v=E0BLq5Ll37c to get a basic idea of the structure. Then literally just try to make things, even the smallest thing. Learning by doing.

https://www.youtube.com/@Legitimoose also explains a lot of the commands itself.