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

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

  1. Offline

    Izze

    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.

    Feutures:
    • Adds the /lampstone command, which enables and disables lampstone mode
    • Use any block type for both day and night.
    Screenshots:
    [​IMG]
    [​IMG]

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

    Download Lampstone v1.0 here!
    (Mirror)

    Instructions:
    1. Download Lampstone.zip above
    2. Open Lampstone.zip
    3. Place everything inside Lampstone.zip 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
    Permissions:
    • Lampstone.create (self-explanatory)
    • Lampstone.break (self-explanatory)
    Changelog:
    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

    Toki1776

    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

    Tyler.J.CW

    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
    EDIT:
    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

    Izze

    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

    xGhOsTkiLLeRx

    Hey,

    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

    Greetings
     
  6. Offline

    Izze

    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

    Izze

    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

    xGhOsTkiLLeRx

    Yay!
    Sounds great.

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

    Greetings
     
  9. Offline

    QQCucumber

    @Izze Any updates?
     
  10. Offline

    Izze

    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

    QQCucumber

    Looking forward to it.
     
  12. Offline

    Yggy

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

    Izze

  14. Offline

    xGhOsTkiLLeRx

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

    Hey

    here are my results:

    Code:
    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(SaverAndLoader.java:92)
        at se.Izze.Lampstone.Lampstone.onEnable(Lampstone.java:66)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:676)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:250)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:131)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:109)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:218)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:205)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:145)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:260)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    I use NetherPortal to travel between worlds!
    I placed lampstones in these worlds:

    old
    new
    start
    nether

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

    Yggy

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

    ChrizC

    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

    peachpit580

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

    xGhOsTkiLLeRx

    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!

    Greetings
     
  19. Offline

    ChrizC

    I feel very, very silly.

    Thank you! :D
     
  20. Offline

    MuttsNuts

    @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

    ShadoRoboto

    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!
    ~SR
     
  22. Offline

    Izze

    I've fixed this now, I think. Same link! http://dl.dropbox.com/u/6118136/Minecraft/Lampstone/Test.Lampstone.jar
    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

    Skrip037

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

    xGhOsTkiLLeRx

    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!

    Greetings

    Hey,

    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

    ChrizC

    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

    MuttsNuts

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

    NeoSniperkiller

    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

    svict4

    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

    MuttsNuts

    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:
    Backup
    BlocksOnGlass
    ColoredSigns
    CommandSigns
    Elevators
    Essentials
    FenceStack
    GiveTo
    Minecart Mania (all)
    Minecart ManiaTeleport
    Multiverse
    PlgEssentials
    PlgNoHealth
    WorldEdit
    Permissions (don't use it)
     

Share This Page