Inactive [MECH] Lampstone/Timeblock v1.0 - Automatic night-time ANYTHING [1060]

Discussion in 'Inactive/Unsupported Plugins' started by Izze, Mar 4, 2011.

  1. Offline


    Lampstone - Automatic night-time lamps ANYTHING
    Version: v1.0

    This plugin lets you place any block which turn into another block type in the morning, and then turns back into the first block type in the evening. This lets you build nice looking lamp posts which turn themselves off in the morning and stuff like that.

    • Adds the /lampstone command, which enables and disables lampstone mode
    • Use any block type for both day and night.

    Screenshots taken with a modified version of Painterly pack, to match glowstone and glass texture.

    Download Lampstone v1.0 here!

    1. Download above
    2. Open
    3. Place everything inside in your plugins folder. This should include: Lampstone.jar and a folder called Lampstone, with the files called lampstoneLocations.yml and lampstoneProperties.yml inside.
    4. If you want to change the default properties, open up lampstoneProperties.yml.
    5. In lampstoneProperties.yml, change numbers behind blockDay and blockNight to your liking. (It should be block IDs, default is 20 (glass) in the day and 89 (lightstone) in the night.)
    6. Save lampstoneProperties.yml (if you changed it) and run the server
    7. To enter lampstone mode, enter "/lampstone" in the chat
    8. When in lampstone mode, place a block of the type you specified as blockNight in lampstoneProperties.yml anywhere. If you didn't change any properties, this is a glowstone block. A message in the chat should tell you that a lampstone block has been created.
    9. If you want to use another block combiantion than the defaults (the ones in the configuration file), you use the command like this:
      /lampstone [blockDay] [blockNight]
    10. To exit lampstone mode, simply enter "/lampstone" in the chat again
    • Lampstone.create (self-explanatory)
    • Lampstone.break (self-explanatory)
    Version 1.0
    • You can now select any block type for both day and night.
    Version 0.8
    • Fixed a lot of bugs reported by xGhOsTkiLLeRx.
    Version 0.6
    • Checks if the chunk is loaded before it tries to change the block type of a lampstone.
    • Tells you how many lampstones that were loaded at server startup.
    Version 0.5
    • Console outputs a message if it fails to load a block from the lampstoneLocations.yml file. This is for bug catching purposes.
    Version 0.4
    • Fixed bug where properties didn't work. Thanks to SuperThaTom for telling me.
    • Checks so that your properties are valid on initialization.
    Version 0.3
    • Fixed bugs
    • Files creates themselves
    • Warning: BREAKS YOUR V0.2 LAMPSTONES!!
    Version 0.2
    • Added lampstoneProperties.yml
    • You can now choose which blocks should be lampstones
    Version 0.1
    • Initial release
    Known bugs:
    • If you forget to create or remove the contents of lampstoneLocations.yml, the plugin will fail to initialize. Help needed and appreciated! Fixed with help from Nohup! Many thanks!
    • Breaks after a while for some people.
    Emiya Shirou, nova779 and MuttsNuts like this.
  2. Offline


    What sort of message does this send the console if it fails to load a block from the file?
    Does it give the coordinates of the block which failed to load?
  3. Offline


    Well, when I type /lampstone it just echoes "/lampstone" right back to the console (without my name in front of It). I do not think it is a conflicting plugin issue, i think it is just calls to bukkit that need to be updated. I am also running these plugins:
    • Essentials
    • Permissions
    • WorldEdit
    • WorldGuard
    • Minecraft Mobile Admin
    • DynMap
    • Landmarks (for DynMap)
    • EssentialsSpawn
    • iChat
    • And of course Lampstone
    It appears to be working now. Re-Downloaded and It's a success. So, scratch my last statement this IS working PERFECTLY on 740! Thank you for a great plugin sir!
  4. Offline


    Right now it only tells you the Lampstone ID and in which world it is. I could add coordinates if you want. :)

    That's great! Thanks!
  5. Offline



    Could you add real multi-world support?
    Because in my case it doesn't work.

    My server starts with world "start"
    I go through a portal in world 2 and place siome glowstones there.
    When I restart the server (again with world start) I get the error that Lampstone couldn't load the blocks in world 2 - because the server starts with start.

    Hope you understood what I mean and can fix this :D

  6. Offline


    I see... So, it fails to load them because they aren't in a loaded world? That makes sense! I'll try to fix this. Multiworld is quite important. Thanks for your replication description. I don't really have much time to try these things my own. (Please, summer, approach me faster!)
  7. Offline


    Just a little heads up; I found out why multi-world doesn't work, thanks to the Bukkitdev IRC channel, and I'm now working to fix it.
  8. Offline


    Sounds great.

    Just tell us, when u're ready with the new version ;)

  9. Offline


    @Izze Any updates?
  10. Offline


    I've written something that might work, but I haven't had time to test it. Damn school. I can program in school, but I can't test it. I might as well incorporate permissions while I'm at it. :)
  11. Offline


    Looking forward to it.
  12. Offline


    I can test it for you if you wish. I run multiple worlds.
  13. Offline


  14. Offline


    I'm going to test it, too and tell u the results!


    here are my results:

    2011-05-13 18:04:49 [SEVERE] For input string: "-6.0" enabling Lampstone v0.7 (Is it up to date?)
    java.lang.NumberFormatException: For input string: "-6.0"
        at java.lang.NumberFormatException.forInputString(Unknown Source)
        at java.lang.Integer.parseInt(Unknown Source)
        at java.lang.Integer.parseInt(Unknown Source)
        at se.Izze.Lampstone.SaverAndLoader.loadBlocks(
        at se.Izze.Lampstone.Lampstone.onEnable(
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(
        at net.minecraft.server.MinecraftServer.e(
        at net.minecraft.server.MinecraftServer.a(
        at net.minecraft.server.MinecraftServer.init(
    I use NetherPortal to travel between worlds!
    I placed lampstones in these worlds:


    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 11, 2016
  15. Offline


    Is there a way to remove a lampstone in-game?
  16. Offline


    Is there any way you can make it so that during the day, the block just disappears, and re-appears at night with the BlockNight?

    I'm using it as a way to block off a certain part of my city at night, and I want to be able to walk through it during the day.

    Cheers :D
  17. Offline


    Can you make it light up during storms?
  18. Offline


    I don't know if it's working, but you could change the ID of the day block to 0 (Zero not O!) for air!

  19. Offline


    I feel very, very silly.

    Thank you! :D
  20. Offline


    @xGhOsTkiLLeRx Did you rename the Test.Lampstone.jar to Lampstone.jar? I did and it seems to be working fine. Now loading all my lampstones without issues :).

    If that works then this plugin has even more potential. You could utilize to make traps that are triggered at night automatically. For example have [grass] surface during the daytime then at night it vanishes revealing huge hidden pit filled with [creeper]... EVIL! :p

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 11, 2016
  21. Offline


    This is a very novel plugin. Now I can have an entire nighttime lifestyle for my town again!
    Before I used LightSensor and CraftBook's pumpkin-lights, but when the sensor went outdated, I ran out of luck.
    Now my server can relight itself without the use of redstone wires!
  22. Offline


    I've fixed this now, I think. Same link!
    Try if this one works better. :)

    Also, I think using 0 as the blockDay value would work. It should, at least.

    Thanks for all the encouraging comments! It makes my happy to hear that this plugin helps someone. :)
  23. Offline


    Great plugin. Can you make it so multiple block types can be set as lampstone?
  24. Offline


    No problem!
    Hmm, haven't renamed it, but I'll test the "newer" version!

    Yes, also I will try this! :D
    Happy to hear, that you like our posts :)
    I'm going to test it later and I'll post my results again!

    Have a nice day!



    now the lampstones are loaded, but I can't destroy them anymore!
    I get a drop, but after 2-3 seconds, the blocks are back, I can destroy the again and get a drop again, they appear again, etc....

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 11, 2016
  25. Offline


    Just to clarify for anyone - setting the block ID for the day to 0 (that's zero) works, and the blocks disappear at day and re-appear at night.
  26. Offline


    If you're using superpick they will repop but breaking them with your fist or default MC tools seems to work fine.
  27. Offline


    your plugin is again broken when i restart my server...
    all the lampstones remain glowstones even when it's day, no change when it becomes night and day again

    currently loaded plugin version: 0.6
    other plugins:
    - AncientGates
    - Commandbook
    - Elevators
    - Falsebook
    - Landmarks
    - MultipleHomes
    - MultiVerse
    - Permissions
    - ThisBiome
    - Vegetation
    - WorldEdit
    - WorldGuard
  28. Offline


    this is pretty epic!

    just as a long term suggestion, do you think you could add support for torches as well? i usually use torches all around a block (top and sides) so having them disappear or change, or something, would be great! nice work :D
  29. Offline

    Kevin C.

    Nope, that doesn't work on my end. I still get them popping back up just as xGhOsTkiLLeRx describes.
  30. Offline


    Weird. What craftbukkit version you running just out of interest? I've completely ripped my server to pieces and re-installed all my plugins from scratch again and still the Lampstones plugin works.
  31. Offline

    Kevin C.

    I've got 740 running, but also tested 766, same problem.

    Other installed plugins:
    Minecart Mania (all)
    Minecart ManiaTeleport
    Permissions (don't use it)

Share This Page