Команды:
/gamerule commandblockoutput false
/give @s command_block
Командный блок 1:
/execute positioned as @a[hasitem={item=torch, location=slot.weapon.mainhand}] run setblock ~~1~ light_block ["block_light_level" = 10] keep
Командный блок 2:
/execute positioned as @ф run fill ~10~10~10 ~-10~-10~-10 air replace light_block
![](https://s2.save4k.ru/pic/WtPv4rPTipA/mqdefault.jpg)