Light Emission
This feature requires Minecraft client 1.21.2 or greater.
Items
This won't really emit light, it's only a glowing effect. This is a limitation of the game.
In the future I might find a clean way to implement smooth light that moves with the player, but for now there is not feasible solution.
Create your texture.

Create a new Java Block/Item
model in Blockbench.
Note: In this case I set Parent Model
to item/paper
to inherit the display
properties (how it's shown in hand, on ground etc.).

Create your model. For example you can extrude the texture like I did.

Adjust the model in the center.

Select all the cubes (press CTRL+A
), right click and set the desired light level.

Save the file: contents/test/models/block/test_light_emission_item.json
Create the configuration.
Old method
info:
namespace: test
items:
test_light_emission_item:
name: test_light_emission_item
resource:
material: PAPER
generate: false
model_path: item/test_light_emission_item
New modern method (1.21.4+)
info:
namespace: test
items:
test_light_emission_item:
name: test_light_emission_item
graphics:
model: item/test_light_emission_item

Blocks
You must use REAL_TRANSPARENT
block type if you want to make only a part of the block glowing and not all the block.
This happens because the game doesn't support transparency in REAL
blocks.
Create your texture.

Separate the glowing layer from the base layer into two images.
contents/test/textures/block/test_light_emission.png

contents/test/textures/block/test_light_emission2.png

Create a new Java Block/Item
model in Blockbench.

Create two cubes, one for the base and one for the glowing layer.
Assign the two textures to the two different layers by drag and drop into the cubes.
Right click the glowing layer and set the desired light level.

Save the file: contents/test/models/block/test_light_emission.json
Create the configuration.
Old method
info:
namespace: test
items:
test_light_emission:
name: test_light_emission
resource:
material: PAPER
generate: false
model_path: block/test_light_emission
specific_properties:
block:
placed_model:
type: REAL_NOTE
hardness: 1
New modern method (1.21.4+)
info:
namespace: test
items:
test_light_emission:
name: test_light_emission
graphics:
model: block/test_light_emission
specific_properties:
block:
placed_model:
type: REAL_TRANSPARENT
hardness: 1

Last updated
Was this helpful?