Make Respawn Anchor work in Overworld (1.16.5)

Hello I wanted to make the Respawn Anchor work in the overworld by making an overworld.json file in this location Datapack/data/minecraft/dimension_type/ and changing the respawn_anchor_works property to true

{
  "ultrawarm": false,
  "natural": true,
  "piglin_safe": false,
  "respawn_anchor_works": true,
  "bed_works": false,
  "has_raids": true,
  "has_skylight": true,
  "has_ceiling": false,
  "coordinate_scale": 1,
  "ambient_light": 0,
  "logical_height": 256,
  "effects": "minecraft:overworld",
  "infiniburn": "minecraft:infiniburn_overworld"
}

The pack format is set to 6 and apparently there is a datapack for 1.19 that does the same thing and works, but when I right click an anchor using my datapack for 1.16.5 then nothing happens at all. Is there any way of making it work with a datapack only?

Continue to help post