This datapack will only work for versions 1.17 and newer, where the light block exists
This datapack adds a 4x4 recipe for the light block, which enables it to be crafted and used in survival mode without using the /give command to get it.
The recipe takes 4 light-producing items to craft 1 light block. The items which can be used in this recipe are specified in a custom tag list craftlight:lights (specified in craftlight/data/craftlight/tags/items/lights.json) and can be customised to suit your needs by adding or removing items from the list in the json file.
The items included in the tag list by default are as follows:
- minecraft:torch
- minecraft:glowstone
- minecraft:jack_o_lantern
- minecraft:redstone_lamp
- minecraft:campfire
- minecraft:lantern
- minecraft:sea_pickle
- minecraft:sea_lantern
- minecraft:soul_campfire
- minecraft:soul_lantern
- minecraft:soul_torch
- minecraft:shroomlight
- minecraft:glow_ink_sac
- minecraft:glow_berries
- minecraft:glow_lichen
Making recipes for different light level variations of the item is not straight-forward, but I am looking into it.
light block usage notes and tips:
- light blocks, like barrier blocks, do not show their texture when the item is held when in survival mode
- the outline for light blocks is only visible when the item is held
- right-click a light block with a light block item to cycle through light levels
- light blocks are single-use and can't be returned to inventory once placed
- to destroy a placed light block, place another block in its place