DYNAMIC LIGHTS  -  Minecraft Java 26.3 (data pack format 121)

INSTALL
  Put the "DynamicLights" folder (or the zip) into  <world>/datapacks/  then /reload

HOW IT WORKS
  Hold a light-emitting item in your main hand OR off hand and an invisible
  vanilla "light" block follows you at head height, with the same brightness the
  item has when placed (torch 14, lantern 15, soul torch 10, ...).
  Works underwater too (waterlogged light block). Light blocks are removed the
  moment you put the item away, move on, or leave the game.

COMMANDS
  /function dynlight:off        turn off for everyone (lights vanish next tick)
  /function dynlight:on         turn on again
  /function dynlight:toggle_me  turn it on/off just for yourself

ADD OR CHANGE ITEMS
  Edit the item tags in  data/dynlight/tags/item/light_<level>.json
  Modded/other items: add  {"id":"namespace:item","required":false}
  Levels available: 1 2 3 4 5 6 7 10 14 15  (create more by copying a tag and
  adding a line in  data/dynlight/function/player/scan.mcfunction)

UNINSTALL
  /function dynlight:off   -> wait 1 second -> /datapack disable "file/DynamicLights"
  then delete the pack.
