
Dynamic light in vanilla Minecraft (using new light block) - 21w13a
I created torch dynamic light using new light block in vanilla Minecraft 21w11a commands used: bottom cblock: /execute as @a[nbt={SelectedItem:{id:"minecraft:torch"}}] at @s if block ~ ~1 ~ minecraft:air run fill ~-5 ~-4 ~-5 ~5 ~6 ~5 minecraft:air replace minecraft:light[level=14] (repeat, unconditional, needs redstone) ---------------------------------------------------------------------------------------------------------------------- middle cblock: /execute as @a[nbt={SelectedItem:{id:"minecraft:torch"}}] at @s if block ~ ~1 ~ minecraft:air run setblock ~ ~1 ~ minecraft:light[level=14] (chain, unconditional, always active) ---------------------------------------------------------------------------------------------------------------------- top cblock: /execute as @a[nbt=!{SelectedItem:{id:"minecraft:torch"}}] at @s run fill ~-5 ~-4 ~-5 ~5 ~6 ~5 minecraft:air replace minecraft:light[level=14] (chain, unconditional, always active) This is experimental and could cause problems in your world! #minecraft #lightBlock #21w13a