Pls help me i am going insane
I am currently building hungergames in minecraft and for that i want custom crafting recipes and loottables and so i began build a datapack but i cant make it work for the sake of my life but there is nothing wrong with it i am playing in 26.2
this is my structure
Datapacks
HungerGames
data and pack.mcmeta with following code:{
"pack": {
"description": "This is the description of your data pack",
"min_format": 107.1,
"max_format": 107.1
}
}
then in data:
minecraft:
loot_table:
chest1.json with following code:
{
"type": "minecraft:chest",
"pools": [
{
"rolls": 5,
"entries": [
{
"type": "minecraft:item",
"name": "minecraft:iron_nugget",
"weight": 15,
"functions": [
{
"function": "minecraft:set_count",
"count": 6
}
]
},
{
"type": "minecraft:item",
"name": "minecraft:leather_leggings",
"weight": 9
},
{
"type": "minecraft:item",
"name": "minecraft:leather_helmet",
"weight": 9
},
{
"type": "minecraft:item",
"name": "minecraft:leather_chestplate",
"weight": 9
},
{
"type": "minecraft:item",
"name": "minecraft:leather",
"weight": 4,
"functions": [
{
"function": "minecraft:set_count",
"count": 2
}
]
},
{
"type": "minecraft:item",
"name": "minecraft:leather_boots",
"weight": 8
},
{
"type": "minecraft:item",
"name": "minecraft:copper_axe",
"weight": 5
},
{
"type": "minecraft:item",
"name": "minecraft:copper_sword",
"weight": 5
},
{
"type": "minecraft:item",
"name": "minecraft:shield",
"weight": 2
},
{
"type": "minecraft:item",
"name": "minecraft:crossbow",
"weight": 3
},
{
"type": "minecraft:item",
"name": "minecraft:bow",
"weight": 9
},
{
"type": "minecraft:item",
"name": "minecraft:stone_sword",
"weight": 7
},
{
"type": "minecraft:item",
"name": "minecraft:stick",
"weight": 10
},
{
"type": "minecraft:item",
"name": "minecraft:cobblestone",
"weight": 5,
"functions": [
{
"function": "minecraft:set_count",
"count": 3
}
]
},
{
"type": "minecraft:item",
"name": "minecraft:iron_ingot",
"weight": 3
},
{
"type": "minecraft:item",
"name": "minecraft:cooked_beef",
"weight": 20,
"functions": [
{
"function": "minecraft:set_count",
"count": 4
}
]
},
{
"type": "minecraft:item",
"name": "minecraft:cooked_porkchop",
"weight": 20,
"functions": [
{
"function": "minecraft:set_count",
"count": 4
}
]
},
{
"type": "minecraft:item",
"name": "minecraft:cooked_mutton",
"weight": 20,
"functions": [
{
"function": "minecraft:set_count",
"count": 4
}
]
},
{
"type": "minecraft:item",
"name": "minecraft:chainmail_boots",
"weight": 4
},
{
"type": "minecraft:item",
"name": "minecraft:chainmail_chestplate",
"weight": 4
},
{
"type": "minecraft:item",
"name": "minecraft:chainmail_leggings",
"weight": 4
},
{
"type": "minecraft:item",
"name": "minecraft:chainmail_helmet",
"weight": 4
},
{
"type": "minecraft:item",
"name": "minecraft:stone_axe",
"weight": 7
},
{
"type": "minecraft:item",
"name": "minecraft:arrow",
"weight": 30,
"functions": [
{
"function": "minecraft:set_count",
"count": 6
}
]
}
]
}
]
}{
"type": "minecraft:chest",
"pools": [
{
"rolls": 5,
"entries": [
{
"type": "minecraft:item",
"name": "minecraft:iron_nugget",
"weight": 15,
"functions": [
{
"function": "minecraft:set_count",
"count": 6
}
]
},
{
"type": "minecraft:item",
"name": "minecraft:leather_leggings",
"weight": 9
},
{
"type": "minecraft:item",
"name": "minecraft:leather_helmet",
"weight": 9
},
{
"type": "minecraft:item",
"name": "minecraft:leather_chestplate",
"weight": 9
},
{
"type": "minecraft:item",
"name": "minecraft:leather",
"weight": 4,
"functions": [
{
"function": "minecraft:set_count",
"count": 2
}
]
},
{
"type": "minecraft:item",
"name": "minecraft:leather_boots",
"weight": 8
},
{
"type": "minecraft:item",
"name": "minecraft:copper_axe",
"weight": 5
},
{
"type": "minecraft:item",
"name": "minecraft:copper_sword",
"weight": 5
},
{
"type": "minecraft:item",
"name": "minecraft:shield",
"weight": 2
},
{
"type": "minecraft:item",
"name": "minecraft:crossbow",
"weight": 3
},
{
"type": "minecraft:item",
"name": "minecraft:bow",
"weight": 9
},
{
"type": "minecraft:item",
"name": "minecraft:stone_sword",
"weight": 7
},
{
"type": "minecraft:item",
"name": "minecraft:stick",
"weight": 10
},
{
"type": "minecraft:item",
"name": "minecraft:cobblestone",
"weight": 5,
"functions": [
{
"function": "minecraft:set_count",
"count": 3
}
]
},
{
"type": "minecraft:item",
"name": "minecraft:iron_ingot",
"weight": 3
},
{
"type": "minecraft:item",
"name": "minecraft:cooked_beef",
"weight": 20,
"functions": [
{
"function": "minecraft:set_count",
"count": 4
}
]
},
{
"type": "minecraft:item",
"name": "minecraft:cooked_porkchop",
"weight": 20,
"functions": [
{
"function": "minecraft:set_count",
"count": 4
}
]
},
{
"type": "minecraft:item",
"name": "minecraft:cooked_mutton",
"weight": 20,
"functions": [
{
"function": "minecraft:set_count",
"count": 4
}
]
},
{
"type": "minecraft:item",
"name": "minecraft:chainmail_boots",
"weight": 4
},
{
"type": "minecraft:item",
"name": "minecraft:chainmail_chestplate",
"weight": 4
},
{
"type": "minecraft:item",
"name": "minecraft:chainmail_leggings",
"weight": 4
},
{
"type": "minecraft:item",
"name": "minecraft:chainmail_helmet",
"weight": 4
},
{
"type": "minecraft:item",
"name": "minecraft:stone_axe",
"weight": 7
},
{
"type": "minecraft:item",
"name": "minecraft:arrow",
"weight": 30,
"functions": [
{
"function": "minecraft:set_count",
"count": 6
}
]
}
]
}
]
}
please just help me i am new at making datapacks and i am going literally insane the thing is minecraft even sees my datapack because with /datapack list i can see it but i just cant use the loottables it will always just be an empty chest please just help me