4

Help pls

Spooder_Maan 5/8/21 10:41 am
110
5/9/2021 12:39 pm
Im new to mc coding and coding overall and im following a tutroial for data packs, for the first example he does in the tutorial its a tell raw command i write it exacly how it is there and it wont work the line is tellraw @a {"text": "my code is load", "color": "0000FF"} in the tutorial the curly bracket highlights and mine doesnt yes i have extentions for data packs installed in my visual studio code but it still doesnt workpls help
Posted by
Spooder_Maan
Level 1 : New Miner
0

  Have something to say?

JoinSign in

5

HoboMaggot
05/08/2021 11:09 pm
Level 55 : Grandmaster Blob
history
If it doesnt highlight in code, that might mean your extension is old or not properly installed.
1
packdotmcmeta
05/08/2021 1:41 pm
Level 48 : Master System
The command seems to work. What tutorial are you using?
3
SUPERIONtheKnight
05/09/2021 12:39 pm
Level 30 : Artisan System
In addition to what packdotmcmeta has already suggested, in what ways are you attempting to run the function? Are you sure that the functions are located in:
"PACKNAME"/data/"NAMESPACE"/functions
What command are you using to run the function if any at all?

If you are trying to run them via a tick/load tag, are you sure those tags are set up correctly and located in:
"PACKNAME"/data/minecraft/tags/functions
One last useful tip that can help with debugging: In the minecraft launchers settings tab, you can enable the option "Open output log when Minecraft: Java Edition starts".
Picture showing the process of enabling the output log.


The reason the output log is useful is that it will tell you in red if one of your functions(or anything else) aren't loading, and tell you exactly where the problem is. I recommend unchecking the option that says "info" to reduce spam. It's ok if your output log has differing warnings/errors, although it's ideal to have as few as possible. I'm playing on the latest snapshot, so that's why so many have appeared.
Picture showcasing the minecraft output log, and info toggle location.


Also if you do get a red warning for your datapack, don't be intimidated by it as most of the information is essentially useless for our purposes.
One more picture highlighting the important parts of an example error.


Notice how I only focused on the top part of the error and nothing else. That is because that's where the useful information is. Because of what I gathered from that error, I can see that the problem is inside my main.mcfunction file, on line 23, at position 0. When looking at pretty much that exact spot, I could see that the problem is nothing more but an extra "a" character.
My "main.mcfunction"


However, this doesn't mean you shouldn't check to see if there are more errors, as there very well could be more that need to be tackled. Just make sure to scroll through each error given, make sure it relates to your datapack, and use the button on the top right "Clear all logs" if your output logs are getting too cluttered. One last thing worth mentioning is that the /reload command will make any datapack errors appear if there are any left.

I hope this information is helpful! :)
2
packdotmcmeta
05/09/2021 10:26 am
Level 48 : Master System
Try typing /reload and /datapack list to see if you data pack shows up. The pinned comment on the tutorial seems to have some useful debugging information.
2

Welcome