Data Packs Tool

Streetlamps

  • 3.7k views 3 today
  • save_alt 109 downloads
Compatibility
Minecraft 1.21
Changes include
    • 11
    • 12
    • 22
    Knamf
    Lvl 16Journeyman Miner
    1



    Streetlamps

    With this datapackage you can easily build street lamps from different lamps that automatically switch on at night. Like a daylight sensor, only better.


    How to build a street lamp
    1. Type "/function streetlamp:creator" or if no cheats are allowed enter "/trigger streetlamp"
    2. Place it over a lamp
    • Manually create a lamp with "/function street lamp:place"
    • Manually remove a lamp with "/function streetlamp:remove
    List of supported lamps  
    • Redstone Lamp  
    • Pumpkin Lantern  
    • Copper Bulb


    Important to know for servers and map markers

      The command “/trigger streetlight” can be executed by any player in Creative mode on the map.

      To prevent this, it can be changed with the command "/function streetlamp:permission".
      The function is on by default.

    Compatible with 1.21.8

    7 Update Logs

    Update #7 : by Knamf 08/25/2025 7:02:42 pmAugust 25, 2025 @ 11:02 pm UTC

    Updated for Minecraft 1.21.8
    LOAD MORE LOGS

    More like this

      Have something to say?

    Knamf
    07/24/2024 10:57 pm
    Level 16 : Journeyman Miner
    Hi, good news.

    Im going to completely rework the data pack. So that not only restonlaps will work with it, but also jack-o-lanterns and copper lamps. Also, it will work in every world and dimension without having to add more worlds. It also wont use any more power than it does now, but the lamps will respond a bit slower so theres less lag.
    1
    Peppe73
    07/09/2024 4:39 pm
    Level 59 : Grandmaster Ranger
    history
    Hi, I tried the commands to receive the street lamp, but the commands don't work

    "/function streetlamp:creator" "/trigger streetlamp"

    function unknown and with the second command objective unknown

    The command to remove users' permission to use the package doesn't work either

    I see that you have found an excellent solution for multiple worlds, I hope now that you solve the command problems, so I can test if your data package works. su MC 1.21
    1
    Knamf
    07/23/2024 2:06 pm
    Level 16 : Journeyman Miner
    I will adjust it. You can do it yourself by renaming the folder "functions" under "streetlamp\data\minecraft\tags" to "function" And do the same with the folder under "streetlamp\data\streetlamp".

    strange change in 1.21
    1
    Peppe73
    02/10/2024 5:10 am
    Level 59 : Grandmaster Ranger
    history
    Hi, recently there is a problem with the package, practically all the restone lamps are connected to each other, even in the different worlds, if in world A and day and in world B and night the lamps of world B remain off

    maybe in MC 1.20.4 there are some changes?
    1
    Peppe73
    10/13/2023 1:25 pm
    Level 59 : Grandmaster Ranger
    history
    I solved it, but I noticed one thing, the on and off times changed ?? during the day they turn off when the sun is already almost high, and they turn on when it has already been dark for a while.
    1
    Knamf
    10/14/2023 1:44 pm
    Level 16 : Journeyman Miner
    That was always so. I can adjust it to the time like the daylight sensor.
    1
    Peppe73
    10/14/2023 3:13 pm
    Level 59 : Grandmaster Ranger
    history
    Yes, that would be great.

    Your package is very convenient, I replaced the light sensors which are so unsightly that they overlook any lamp, and made my city more realistic ;)
    1
    Knamf
    10/16/2023 9:11 am
    Level 16 : Journeyman Miner
    I have now adapted it and tested it. It works like the daylight sensor. You also now get better feedback when you create a lamp.



    Simply download new version and replace. Reload the server and you're done.
    1
    Peppe73
    10/16/2023 3:07 pm
    Level 59 : Grandmaster Ranger
    You're great, I put your references on my page ;)
    1
    Peppe73
    09/27/2023 3:57 pm
    Level 59 : Grandmaster Ranger
    history
    Hi, I'm trying your data package, because in the survival world it doesn't work, and in the creative world it does?

    I would like to understand if it is a functionality problem with the package I have on my server, but I think with the package.
    1

    Welcome