2

[Help] Creating datapacks function error

OHTorx4/24/25 7:58 am
2 emeralds 105 2
4/24/2025 12:03 pm
OHTorx
Hello I am attempting to create a datapack from scratch to script common add items to my player. Here is my background:
  • Windows 11 local install / server
  • Java Edition 1.21.5
  • Path where pack.mcdata is located = C:\Users\ktemp\AppData\Roaming\.minecraft\saves\SandBox\datapacks\fubar
  • Contents of pack.mcdata is below
  • {
    "pack"{
    "description": "Fubar Pack",
    "pack_format": 71
    }
    }
  • hello.mcfunction is located at C:\Users\ktemp\AppData\Roaming\.minecraft\saves\SandBox\datapacks\fubar\data\new\functions
  • hello.mcfunction contents
  •   tellraw @s "Hello World"
  • i have uninstalled and re-installed from the Microsoft Store
  • There are no zip files involved here

Running a console output window I get the following on load / reload:

Missing metadata in pack file/fubar

What am I missing here, I used to be able to use functions and now I cannot. Thanks in advance
Posted by
OHTorx
Level 1 : New Miner
0

Create an account or sign in to comment.

2

CommandYaw
04/24/2025 9:00 am
He/Him • Level 34 : Artisan Modder
1. A column is missing
{
"pack": {
"description": "Fubar Pack",
"pack_format": 71
}
}

2. The functions folder has been renamed to "function" in recent Versions. So it's important you rename it as well.

Have Fun!
4
OHTorx
04/24/2025 12:03 pm
Level 1 : New Miner
that did it. geez and I even used a Visual Studio Code Plugin. Thanks
1

Welcome