Data Packs Item

Dynamic Lights Advanced

    • 1,029 views • 5 today
    • 41 downloads • 0 today
    • 4
    • 4
    • 11
    JKuantamechanic
    Level 35 : Artisan Network Architect
    25
    Have you ever wanted to light up an area without spamming torches everywhere? This data pack introduces a Lighthouse Lamp and directed light to light up a massive area in the direction it's pointed. You can also hold the lights as a flashlight and it will work the same way. The lighting is distance-dependent, forming a circle of illumination that radiates away from the origin. The further the wall is the dimmer the light. At around 15 blocks the radius of illumination on a surface is maximised.
    Also works underwater!

    How to use the Lighthouse Lamp:
    Craft the lamp using redstone lamps and amethyst shards in a TNT configuration and place a compass in the centre. Place it anywhere, like a block. The light will shine away from you starting from the lantern. If your eye level is higher than where you placed the block, the light will shine upwards, and vice versa. After a constant number of ticks, the horizontal rotation of the light will change (the rate of rotation is configurable with trigger update_flashlight_delay set <ticks>). The lantern must be powered by redstone and can be destroyed by clicking.
    Multiple lamps running may lag the game, so a restriction is imposed that limits the number of calculations per tick. To increase the limit do /gamerule maxCommandChainLength <2000000 or more>


    Version
    Up to 1.21.4

    Settings:
    /trigger higher_fidelity set 1
    to increase the number of lights generated from the origin. This will close up dark spots and smooth the transition between light levels. However, it is more laggy.

    /trigger higher_fidelity set 0
    to reduce fidelity

    /trigger update_flashlight_delay set <ticks>
    where <ticks> is the number of ticks of delay between light updates. The lower the number of ticks, the faster the flashlight will update as you look in different directions. Goes from 1 to 20 ticks.

    How to use the spotlight:
    First, craft the spotlight by surrounding a lantern or redstone lamp with amethyst shards, a glass block on top and or a chain at the bottom for a hanging spotlight (see images for reference).

    Place it anywhere, like a block. The light will shine away from you starting from the lantern. If your eye level is higher than where you placed the block, the light will shine upwards, and vice versa. The hanging spotlight only looks different (with the chain attached to the lantern model). The lamp must be powered like a Redstone lamp.
    Shifting while placing the spotlight to place it flat on the ground (without any pitch/vertical tilt).
    Left-click the spotlight to destroy it, the item will be returned to your inventory. For the Redstone lamp, click on the top face to destroy.
    Right-click the spotlight to update the light blocks. Useful when the scenery or building or something you're illuminating changes and the light is replaced or blocked.

    Note:
    The data pack works by placing light blocks of varying light levels away from the source in a radial pattern with the centre light block being the brightest and everything around it being less bright. This means light blocks will be deleted if you can place anything in its position.
    CompatibilityMinecraft 1.21
    Tags

    4 Update Logs

    Update #4 : by JKuantamechanic 02/01/2025 2:18:07 amFebruary 1, 2025 @ 7:18 am UTC

    Added lighthouse lamp that rotates every tick.
    LOAD MORE LOGS

      Have something to say?

    GravelNoob
    01/20/2025 3:56 am
    He/Him • Level 18 : Journeyman Carrot Cake
    I thought that lamps will be activated by redstone
    1
    JKuantamechanic
    01/21/2025 8:41 am
    Level 35 : Artisan Network Architect
    I believe it's done.
    1
    GravelNoob
    01/21/2025 10:33 am
    He/Him • Level 18 : Journeyman Carrot Cake
    I just didn’t see daylight sensors
    1
    JKuantamechanic
    01/22/2025 9:12 pm
    Level 35 : Artisan Network Architect
    I just updated it is what I meant, and I changed the image to include daylight sensors.
    1
    JKuantamechanic
    01/21/2025 6:16 am
    Level 35 : Artisan Network Architect
    I'll see whether I can do that with a command block on top of the lamp.
    1
    GravelNoob
    01/16/2025 11:51 pm
    He/Him • Level 18 : Journeyman Carrot Cake
    Make it a restore lamp
    1
    JKuantamechanic
    01/17/2025 5:27 am
    Level 35 : Artisan Network Architect
    What do you mean by a restore lamp?
    1
    GravelNoob
    01/17/2025 7:53 am
    He/Him • Level 18 : Journeyman Carrot Cake
    Redstone lamp
    1
    JKuantamechanic
    01/17/2025 10:11 pm
    Level 35 : Artisan Network Architect
    Done.
    1
    JKuantamechanic
    01/17/2025 8:50 am
    Level 35 : Artisan Network Architect
    Sure, I'll get on that tomorrow.
    1

    Welcome