Skip to content
ItemsAdder

Light Emission

Items

  1. Create your texture.

  2. 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.).

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

  4. Adjust the model in the center.

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

  6. Save the file: contents/test/models/block/test_light_emission_item.json

  7. Create the configuration.

    Old method

    yaml
    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+)

    yaml
    info:
      namespace: test
    items:
      test_light_emission_item:
        name: test_light_emission_item
        graphics:
          model: item/test_light_emission_item
    

Blocks

  1. Create your texture.

  2. 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

  3. Create a new Java Block/Item model in Blockbench.

  4. Create two cubes, one for the base and one for the glowing layer.

  5. Assign the two textures to the two different layers by drag and drop into the cubes.

  6. Right click the glowing layer and set the desired light level.

  7. Save the file: contents/test/models/block/test_light_emission.json

  8. Create the configuration.

    Old method

    yaml
    info:
      namespace: test
    items:
      test_light_emission:
        name: test_light_emission
        resource:
          material: PAPER
          generate: false
          model_path: block/test_light_emission
        behaviours:
          block:
            placed_model:
              type: REAL_NOTE
              hardness: 1
    
    

    New modern method (1.21.4+)

    yaml
    info:
      namespace: test
    items:
      test_light_emission:
        name: test_light_emission
        graphics:
          model: block/test_light_emission
        behaviours:
          block:
            placed_model:
              type: REAL_TRANSPARENT
              hardness: 1