I'm not having any luck either.. I've read that it requires a pack.mcmeta file. But I don't know how different this is from a resource pack.mcmeta file. I just plopped one there from my resource pack.
I have mine as datapacks/neverland/data and then added /functions/ with a working tpdir.mcfunction that i've used in 1.12.2. I changed the command to /function neverland:tpdir with no success thus far.. darn.
I managed to successfully make a custom loot table in a data pack today. Unfortunately the loot tables don't override the default loot tables, so to apply the loot table to a mob, I had to use a command.
I used the folder structure described by ShelLuser and I placed my loot table under the loot_tables folder inside a folder called entities.
I had hoped that the default loot table would be overridden by my custom one. If it requires extra commands to apply it, it isn't worth it for me. I have no previous experiences with custom loot tables or resource packs though, so I don't know if this is expected behaviour. I still have a lot to learn.
As soon as the custom recipes work, I want to create recipes for blocks that are non-renewable, like podzol, dirt, gravel, sand and clay.
Maybe I can also make a function to randomly spawn shulkers in the end like endermen, but then less frequent, because I hate the idea that these mobs are not renewable. I dislike non-renewable resources in general actually, but I suppose I shouldn't be playing vanilla minecraft then.
@ShelLuser Thank you very much for your advice! I tried putting my loot table in the minecraft namespace (which in the context of datapacks means renaming the namespace folder to 'minecraft'). Unfortunately the loot table still doesn't override the default loot table. I also cannot reach the loot table through commands anymore, because "minecraft:entities/guardian" refers to the default loot table ofcourse.
Although it is not your job to help me, I still thought I would share how my pack looks like at the moment. Perhaps you are generous enough to have a look and perhaps to give some suggestions.
This is how my folder structure looks like right now:
I seem to be having some trouble running functions no matter what I try..
I have the following datapack structure:
pack
| pack.mcmeta
| data
| test
| functions
| hawk.mcfunction
/function test:hawk yields unknown function
I've made sure that the pack was enabled with /datapack, set as the first load order. Maybe /datapack doesn't work? I'm stumped.. I thought the naming is supposed to go namespace:function or path/to/function
I seem to be having some trouble running functions no matter what I try..
I have the following datapack structure:
pack
| pack.mcmeta
| data
| test
| functions
| hawk.mcfunction
/function test:hawk yields unknown function
I've made sure that the pack was enabled with /datapack, set as the first load order. Maybe /datapack doesn't work? I'm stumped.. I thought the naming is supposed to go namespace:function or path/to/function
In order to have your datapack override other datapacks, it has to be last. Are you sure that your pack.mcmeta file is correct? your folder structure looks fine and your command should be ok as well... Are you also sure that the commands in the function itself are correct? If this doesn't solve it, then you are likely experiencing a bug.
In order to have your datapack override other datapacks, it has to be last. Are you sure that your pack.mcmeta file is correct? your folder structure looks fine and your command should be ok as well... Are you also sure that the commands in the function itself are correct? If this doesn't solve it, then you are likely experiencing a bug.
Thank You! I totally forgot that since all functions are parsed on world load, they will not load if there is any error in the function. I was looking for it to attempt to run the function, even if it contained an error, like 1.12.2, but I realize now that it totally changed. Wasn't totally sure on the script, since I just converted it to 1.13.
Of course It also didn't help that the world I was trying to try the function in, had repeating command blocks looking for specific target selector conditions, which in these snapshots, completely overloads the game launcher log output full of error messages (66 MB worth) , so there is no way I would have seen the parsing error until I tried it in a different world.
I tried a more simple function and got it to load. I guess the new tab auto fill also suggests the function names that it has loaded, which is nice.
I made a tool wich can be used on a 1.12.x world, wich will generate a datapack and update almost all commands inside all functions to 1.13. Instructions can be found on youtube:
I made two datapacks today from my 1.13 command blocks that I originally had converted from my 1.12.2 command blocks, lot of work the last 2 weeks looking things up and troubleshooting. Just place the *.zip file at \AppData\Roaming\.minecraft\saves\*world*\datapacks\ don't extract them from the zip file (not needed). The datapacks are:
Minecraft v1.13 Grapple Hook Multiplayer Data Pack - While holding one of 4 custom fishing rod grappling hooks. Casting the bobber will teleport you where it lands. Fishing rod grappling hooks are named by colors (Red, Blue, Green, Yellow) for use with multiplayer to prevent cross teleportation if used with in 35 blocks of other players casting the Grappling Hooks with in the same time frame.
Instructions on how to use/get items are in each datapack in a *.txt file within the *.zip
I tried making a data pack myself, but i'm not getting it to work. Does anyone have an example-data-pack to share?
Thanks
I'm not having any luck either.. I've read that it requires a pack.mcmeta file. But I don't know how different this is from a resource pack.mcmeta file. I just plopped one there from my resource pack.
I have mine as datapacks/neverland/data and then added /functions/ with a working tpdir.mcfunction that i've used in 1.12.2. I changed the command to /function neverland:tpdir with no success thus far.. darn.
I have gotten it to work somewhat...
The pack.mcmeta goes as follows:
{"pack": {"pack_format": 3, "description": " "}}
I put the functions in /datapacks/name1/data/name2/functions/
The function will be called name2:whatever.
17w43b fixes the sub-folder bug, allowing to group functions together again
I managed to successfully make a custom loot table in a data pack today. Unfortunately the loot tables don't override the default loot tables, so to apply the loot table to a mob, I had to use a command.
I used the folder structure described by ShelLuser and I placed my loot table under the loot_tables folder inside a folder called entities.
I had hoped that the default loot table would be overridden by my custom one. If it requires extra commands to apply it, it isn't worth it for me. I have no previous experiences with custom loot tables or resource packs though, so I don't know if this is expected behaviour. I still have a lot to learn.
As soon as the custom recipes work, I want to create recipes for blocks that are non-renewable, like podzol, dirt, gravel, sand and clay.
Maybe I can also make a function to randomly spawn shulkers in the end like endermen, but then less frequent, because I hate the idea that these mobs are not renewable. I dislike non-renewable resources in general actually, but I suppose I shouldn't be playing vanilla minecraft then.
@ShelLuser Thank you very much for your advice! I tried putting my loot table in the minecraft namespace (which in the context of datapacks means renaming the namespace folder to 'minecraft'). Unfortunately the loot table still doesn't override the default loot table. I also cannot reach the loot table through commands anymore, because "minecraft:entities/guardian" refers to the default loot table ofcourse.
Although it is not your job to help me, I still thought I would share how my pack looks like at the moment. Perhaps you are generous enough to have a look and perhaps to give some suggestions.
This is how my folder structure looks like right now:
Am I experiencing a bug right now? It would be very plausible, since we are still in the snapshots.
I seem to be having some trouble running functions no matter what I try..
I have the following datapack structure:
/function test:hawk yields unknown function
I've made sure that the pack was enabled with /datapack, set as the first load order. Maybe /datapack doesn't work? I'm stumped.. I thought the naming is supposed to go namespace:function or path/to/function
In order to have your datapack override other datapacks, it has to be last. Are you sure that your pack.mcmeta file is correct? your folder structure looks fine and your command should be ok as well... Are you also sure that the commands in the function itself are correct? If this doesn't solve it, then you are likely experiencing a bug.
Thank You! I totally forgot that since all functions are parsed on world load, they will not load if there is any error in the function. I was looking for it to attempt to run the function, even if it contained an error, like 1.12.2, but I realize now that it totally changed. Wasn't totally sure on the script, since I just converted it to 1.13.
Of course It also didn't help that the world I was trying to try the function in, had repeating command blocks looking for specific target selector conditions, which in these snapshots, completely overloads the game launcher log output full of error messages (66 MB worth) , so there is no way I would have seen the parsing error until I tried it in a different world.
I tried a more simple function and got it to load. I guess the new tab auto fill also suggests the function names that it has loaded, which is nice.
I made a tool wich can be used on a 1.12.x world, wich will generate a datapack and update almost all commands inside all functions to 1.13. Instructions can be found on youtube:
Download and Pastebin links are bellow:
www.pastebin.com/QAFAV6Bb
www.mediafire.com/file/e8q9b871hhebi22/AutoUpdate.exe
More on this in this thread.
It is a bodge, but it should do the job.
Enjoy!
when typing /datapack enable, you can just change the first and last sequence.
I actually just made a datapack skeleton with a gameloop function
http://www.nigeltodman.com/2017/12/10/minecraft-1-13-function-loop-skeleton/
I made a thread with all the 1.13 info I found that got me started. Tried to post it in this sub forum, but it just would not.
http://www.minecraftforum.net/forums/minecraft/redstone-commands-and-mechanisms/2876487-1-13-minecraft-functions-datapacks
I made two datapacks today from my 1.13 command blocks that I originally had converted from my 1.12.2 command blocks, lot of work the last 2 weeks looking things up and troubleshooting. Just place the *.zip file at \AppData\Roaming\.minecraft\saves\*world*\datapacks\ don't extract them from the zip file (not needed). The datapacks are:
Minecraft v1.13 Portable Ender Chest Data Pack - Summon an ender chest at your feet if standing on redstone while right clicking with a carrot on a stick named "Ender Chest Spawner."
Minecraft v1.13 Grapple Hook Multiplayer Data Pack - While holding one of 4 custom fishing rod grappling hooks. Casting the bobber will teleport you where it lands. Fishing rod grappling hooks are named by colors (Red, Blue, Green, Yellow) for use with multiplayer to prevent cross teleportation if used with in 35 blocks of other players casting the Grappling Hooks with in the same time frame.
Instructions on how to use/get items are in each datapack in a *.txt file within the *.zip
That wil most likely never happen i think itvwas just a snapshot bug
You need to have your function file in another subfolder that, at least i name tge same as the function