u/-stud

What’s wrong with this datapack?

So with help of Grok and Chat GPT I wanted to make a datapack that was supposed to give Night Vision effect to a player holding an item in any hand, but the game kind of doesn’t even see the datapack, not mentioning it working properly.

Here’s the structure in folders:

datapacks --- glow --- pack.mcmeta
                   --- data --- glow --- functions --- give_effect.mcfunction
                            |                      |-- tick.mcfunction
                            |
                            --- minecraft --- tags --- function --- tick.json

pack.meta:

{
  "pack": {
    "description": "Glow",
    "min_format": [94, 1],
    "max_format": [94, 1]
  }
}

give_effect.mcfunction:

effect give @s minecraft:night_vision 1 4 true

tick.mcfunction

effect give @s minecraft:night_vision 1 4 true

tick.json

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

What’s wrong about all of this?

reddit.com
u/-stud — 19 hours ago