Add bright lights (or the illusion of)

Started by hawkster97 on Mon, 01/13/2020 - 21:35

Topic category: Feature requests and ideas for MCreator

Last seen on 17:38, 8. May 2020
Joined Feb 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Add bright lights (or the illusion of)
Mon, 01/13/2020 - 21:35

I think "bright" lights would be a great addition to MCreator.

 

The idea of these bright lights was inspired by my annoyance of how dim the standard Miencraft block light level is. In my world, styled to be like a city, ceiling heights and light heights are severely limited by normal Minecraft lights, because of their inability to provide light to the ground below when higher than ~7+ blocks from the ground. "Bright" lights are just normal lights that create the illusion of brighter/better lights by adding an invisible light-up block above the first block that is below the light. This allows the ground to be illuminated just as if the light above were to be closer to the ground/floor.

These lights (bright lights) then allow a player to place the actual light itself at any height above the floor/ground, and the light will still reach the ground.

As with a normal redstone powered lamp, when powered with redstone, the light block outputs 1.0F in light level, but the invisible block outputs 1.0F as well.

 

I've attached two images to illustrate the "bright light" idea. Currently, I use these bright lights for some of the overhead lighting fixtures in my mod, as well for some street lights.

 

Showing bright lights concept with solid wide-area surface below (such as the ground)

Image showing the concept of bright lights with a standard single block surface below

 

Last seen on 19:23, 6. Jul 2020
Joined Nov 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
You can do this with…
Mon, 01/13/2020 - 23:01

You can do this with procedures. For the "light up" block, make a block with transparent texture, air material and light level of 1. To make it appear, use the "On block added" procedure on the "main light" block. You'll have to mess a bit with the "Tick update" and "On block removed" procedures to sync the block properly.

Last seen on 17:38, 8. May 2020
Joined Feb 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Thank you for that…
Tue, 01/14/2020 - 13:32

Thank you for that explanation. I didn't realize it was possible through procedures in such a way. I'll have to give that a try.

 

I haven't had problems as much with MCreator updates recently, but updates before 1.9.1 were hit or miss with regards to my locked code compiling properly after the update. Since then, I've been look for ways to simplify my locked code, and where possible move to MCreator procedures.

   

×

     
Last seen on 17:38, 8. May 2020
Joined Feb 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I made it work (sort of)…
Tue, 01/14/2020 - 15:15

I made it work (sort of) with procedures. I have a procedure that runs at "redstone on" that places the invisible glowing block right above the next block below. On block destroy and redstone off, I have another procedure that goes and deletes that invisible glowing block.

 

I'm using 2019.5, and there doesn't seem to be an option in procedures for setting the block light level, so it doesn't seem that it is possible to just directly set the light level of the invisible block, so instead (its a bit slower im sure), I just remove, add that glowing invisible block. 

 

It'd be awesome to see something in procedures for settings the light output of the given block (just that block, not all of its kind). I believe that would require something in the blockstate, but that'd open up the possibility of custom regular redstone lamps 

   

×