โ›๏ธ Episode 3 ยท Beginner ยท Structure

Get Organised
Episode 3: The data Folder

As your datapack grows, the data folder is what keeps it tidy. Learn namespaces and the folder for each thing a datapack can do.

๐Ÿ‘ถ Ages 10+ โฑ๏ธ ~40 mins โ›๏ธ Minecraft โœ“ Free workshop
๐Ÿ—‚๏ธ data folder ๐Ÿท๏ธ Namespace ๐Ÿ“š Folder types ๐Ÿงญ Ids
โญ
0 XP
Level 1
๐Ÿ”ฅ0
Your Progress 0 / 4 steps
Build it in our Datapack Studio too: lay out the crafting recipe, write your function and pack files, then export a real datapack zip in the browser with no install. Open the Minecraft Mod Studio →
๐Ÿ”ฅ
Ember says: a tidy pack is a happy pack. Namespaces are just folders with a name you choose, so two packs never clash.
1
๐Ÿ—‚๏ธ
The data Folder
Where everything lives
Active
๐ŸŽฏ
Goal for this step

Understand the data/<namespace>/ layout.

  • 1All your content lives inside data/.
  • 2Inside data, a namespace folder holds your stuff.
  • 3Inside the namespace, each kind of content has its own folder: recipe, function, loot_table, advancement and so on.
โœ๏ธ
Fill in the Blanks
+15 XP
Your content lives inside the folder, under your namespace.
๐Ÿง 
Knowledge Check
+15 XP
What is a namespace?
AA folder name you choose so packs do not clash
BA type of block
CA game setting
2
๐Ÿท๏ธ
Choose a Namespace
Your pack name
Locked
๐ŸŽฏ
Goal for this step

Pick and use a namespace.

  • 1Use lowercase letters, numbers and underscores: mypack or emerald_quest.
  • 2Never use spaces or capitals.
  • 3Every id you make is prefixed with it, like mypack:diamond_blade.
โœ๏ธ
Fill in the Blanks
+15 XP
A namespace uses lowercase letters, numbers and .
๐Ÿง 
Knowledge Check
+15 XP
Which is a valid namespace?
Aemerald_quest
BEmerald Quest
Cemerald-quest!
3
๐Ÿ“š
The Folder Types
A home for each thing
Locked
๐ŸŽฏ
Goal for this step

Know the folder for each feature.

  • 1recipe, function, loot_table, advancement and tags.
  • 2In older versions some are plural (recipes, functions) or different (loot_tables).
  • 3Match the folder to your Minecraft version.
โœ๏ธ
Fill in the Blanks
+15 XP
Commands live in the folder.
๐Ÿง 
Knowledge Check
+15 XP
Which folder holds loot tables in 1.21 and newer?
Aloot_table
Bloot_tables
Cdrops
4
๐Ÿงญ
Reading Ids
namespace:name
Locked
๐ŸŽฏ
Goal for this step

Understand how ids point at your files.

  • 1Your content is found by namespace:name.
  • 2The name is the file name without .json or .mcfunction.
  • 3So mypack:hello points at data/mypack/function/hello.mcfunction.
โœ๏ธ
Fill in the Blanks
+15 XP
A resource is found by namespace:.
๐Ÿง 
Knowledge Check
+15 XP
What does mypack:hello point to?
Adata/mypack/function/hello.mcfunction
Bsaves/hello
CThe chat
๐ŸŽ‰โœจ๐Ÿ†๐ŸŽ‰
A Tidy Datapack!
You can organise a datapack and read its ids. Next you write functions full of commands.
0
Total XP
1
Level
0
Best Streak
0%
Accuracy
Next: Episode 4: Functions โ†’