#Making a glowing block

3 messages · Page 1 of 1 (latest)

keen nest
#

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 ![ipodlove](https://cdn.discordapp.com/emojis/1138835306745974905.webp?size=128 "ipodlove")
ruby hingeBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

keen nest
#

(everything works but the blocks giving off any light)