Hi, Ive been trying to make glowing blocks similar to AntiBlocks from Chisel however I cant get the blocks to actually emit any light... heres my code so far:
['white', '#FFFFFF'],
['light_gray', '#C0C0C0'],
['gray', '#808080'],
['black', '#202020'],
['red', '#FF0000'],
['crimson', '#AA0000'],
['orange', '#FFA500'],
['amber', '#FFC000'],
['yellow', '#FFFF00'],
['lime', '#80FF00'],
['green', '#00AA00'],
['cyan', '#00FFFF'],
['teal', '#009999'],
['light_blue', '#66CCFF'],
['blue', '#0000FF'],
['indigo', '#3300FF'],
['violet', '#8000FF'],
['magenta', '#FF00FF'],
['pink', '#FF66CC']
]
StartupEvents.registry('block', event => {
global.coloredLightBlocks.forEach(([name, hex]) => {
const displayName = `${name.replace(/_/g, ' ')} Light Block`
event.create(`${name}_light_block`)
.displayName(displayName)
.material('minecraft:stone')
.renderType('cutout')
.stoneSoundType()
.mapColor(hex)
.lightLevel(15)
.color(hex)
})
})```
any help would be much appreciated 