3

Help datapack

D4m1JX 8/22/24 3:52 pm
173
8/24/2024 6:25 am
Can someone help me to create a simple datapack? i don't know how to do that, can someone explain to me, please??
Posted by
D4m1JX
Level 1 : New Miner
0

  Have something to say?

JoinSign in

7

Papa Enny
08/24/2024 6:25 am
Level 62 : High Grandmaster Answer Dwarf
MCreator should be fine
1
JackFire03
08/22/2024 4:38 pm
They/Them • Level 36 : Artisan Pokémon Pirate
there're tons of tutorials on youtube? From making simple score boards to customizing entire world generation.
1
D4m1JX
08/22/2024 4:53 pm
Level 1 : New Miner
yeah i know but i don't understand why i can't make it work, it doesn't work and i don't know why
1
JackFire03
08/22/2024 4:55 pm
They/Them • Level 36 : Artisan Pokémon Pirate
there're several problems it could be. Care to dm me so i can have a look at it?
1
fadedasaho
08/22/2024 5:01 pm
He/Him • Level 6 : Apprentice Miner
history
The basic file/folder structure should look like this:



\Pack-name

  \data

    \namespace
      \function
        tick.mcfunction
        load.mcfunction
    \minecraft
      \tags
        \function 
          load.json
          tick.json
          


  pack.mcmeta



the namespace is just used to call advancements, predicates, functions, etc. in the game.


The pack.mcmeta file is used to give minecraft information about your pack. Your pack.mcmeta should look something like this:



{
"pack": {
"pack_format": 48,
"description": "description"
}
}



Pack_format is dependent on your game version, it's proprietary.



the load and tick .json files should look like this:


{ "values": [ "namespace:load" ]}

and this respectively:

{ "values": [ "namespace:tick" ]}

These will call your load and tick functions. Load will call every time your pack is loaded with the /reload command, and tick will be called every tick (20x per second.)The mcfunction files are just collections of minecraft commands. each line should be it's own command. you can get some syntax highlighting stuff on visual studio code, too, that should help. There are also TONS of tutorials on youtube.
2
08/22/2024 5:08 pm
This reply was removed by the poster or a moderator.
fadedasaho
08/22/2024 5:43 pm
He/Him • Level 6 : Apprentice Miner
If you'd read the beginning of this thread, you'd find that there was no problem. OP just didn't know how to set up a datapack. Hope this helps!
1
JackFire03
08/22/2024 5:48 pm
They/Them • Level 36 : Artisan Pokémon Pirate
history
no i was just thought you were OP, sorry. beside, like i said there could be severals of problem. Could be not knowing how to set up, could be wrong folder name, could be function not working, etc.
1

Welcome