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

    Wulfspider

    I am pretty sure that is what is already does... based on what he wrote... only the blocks created WHILE in /lampstone mode will be "lampstones". That's why there is a locations file, otherwise it wouldn't need that locations file if ALL of them did that. The plugin errors for me with CB 493, so I can't use it.

    The error I am getting:
    Code:
    09:54:38 [SEVERE] Could not load plugins\Lampstone.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:80)
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.
    java:129)
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
    .java:94)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:59)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
            at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.lang.ClassNotFoundException: se.Izze.Lampstone.Lampstone
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    java:30)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Unknown Source)
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:72)
            ... 8 more
     
  3. Offline

    SplenectomY

    Oh, sorry I misread. This plugin is awesome and beyond cool.
     
  4. Offline

    Peacemaker957

    It would be cool if you can make it with jack'o'lantern and pumpkin. If you implement that I will d/l
     
  5. Offline

    Izze

    Thanks for all the suggestions and answers!
    @Wulfspider Something went wrong when I compiled it. I'll upload a fixed version! Thanks for mentioning it!

    @Everyone Do you think it would be a good idea to implement a properties file so you could decide which blocks should be considered lampstones, and what they should turn into in the evening/morning? Maybe also add the ability to choose when the lamp blocks should be activated? And should I implement permissions?

    Thanks again!
     
  6. Offline

    Alexf

     
  7. Offline

    PAPABEAR1010

    Thankyou for this great plugin
    any configuration options always greatly received
    as for permissions , not very friendly at the moment,I use some plugins that have their own permission properties ,where you add player names to a list , and these work well
    --- merged: Mar 6, 2011 7:29 AM ---
    Also using this with CB 493 and many other plugins , so far all good
     
  8. Offline

    Izze

    That's weird, the link works fine for me. I could upload it to another host. Wait a minute.

    Thanks! I've tried using a properties file for selecting the blocks that are used by the plugin. I think it works now, so I'll upload it!
     
  9. Offline

    PAPABEAR1010

    will try it soon, by the way you left a filled locations.yml in the zip
     
  10. Offline

    iPWNtehN00B

    Just out of curiosity, what is the block placed above the fence in your screenshots?
     
  11. Offline

    PAPABEAR1010

    changing blocks also great
    thankyou again
     
  12. Offline

    Wulfspider

    The lamps? Glass and glowstone blocks. Izze is using custom textures for those.

    @Izze , working great so far by the way. :)
     
  13. Offline

    Racha

    I downloaded 0.2 but it still shows that i have 0.1 and there is error ;(
    Code:
    19:35:24 [SEVERE] null loading Lampstone v0.1 (Is it up to date?)
    java.lang.NullPointerException
            at org.bukkit.Location.getBlock(Location.java:73)
            at se.Izze.Lampstone.SaverAndLoader.loadBlocks(SaverAndLoader.java:121)
            at se.Izze.Lampstone.Lampstone.onEnable(Lampstone.java:50)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:414)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:187)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:83)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:61)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
            at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
     
  14. Offline

    Wulfspider

    @Racha , did you use the MediaFire mirror? Try using the other link above it.
     
  15. Offline

    Racha

    @Wulfspider There is no MediaFire mirror =D Ok i will try that.
    --- merged: Mar 6, 2011 5:44 PM ---
    Still not working, maybe you can upload your ?
     
  16. Offline

    Wulfspider

    @Racha , somehow I read MediaFire... Box.net I mean! Haha... either way, they are the same files, I just checked.

    Edit: Ohhh, you know what! I am getting the same error... Odd... I didn't even notice that till now! The plugin still seems to be functioning though.
     
  17. Offline

    Racha

    @Wulfspider Oh thanks for information.. :D I just wanted no errors, before testing plugins^^
     
  18. Offline

    Izze

    Thanks for telling me! I've updated the zip file now.

    @Racha and @Wulfspider
    I haven't tested the plugin with any other Craftbukkit build than 493. It seems like a definition of the Location.getBlock() function is missing. Maybe it is Craftbukkits fault? I'll look into it! Thanks for telling me about it! :)
    --- merged: Mar 6, 2011 6:20 PM ---
    I tested it with build 499, and it seems to work fine. Try to update Craftbukkit.
     
  19. Offline

    Wulfspider

    @Izze , I am using 493, which is the latest recommended build ;)
     
  20. Offline

    Izze

    That's indeed odd. I don't get any errors. I can locate the line in my code that gives an error, but I can't see what's wrong with it. :/
    I'm sorry, I will try to find out what's wrong, but it may take a while! Thanks for pointing things out! :)
     
  21. Offline

    iPWNtehN00B

    Actually I meant between the fence and the glass.
     
  22. Offline

    Direct1221

    More Fence?
     
  23. Offline

    iPWNtehN00B

    How can I stack fences?
     
  24. Offline

    Izze

    There's a plugin for that. I think it is called "stack fence" or something like that. But you can do it without a plugin. Build a pillar with dirt or another block, then build a fence on top of it. Then, remove the dirt block under the fence and place a new fence, and then remove the dirt block under THAT fence and place a new fence there. You get the idea, hopefully.
    [stick]
    [dirt]
    [dirt]
    [dirt]

    And then:
    [stick]
    [stick]
    [dirt]
    [dirt]
    --- merged: Mar 7, 2011 6:33 PM ---
    @Wulfspider I really can't see why it is giving you an error. I maybe have to contact the Bukkit team and ask them for help. Sorry. :/
     
  25. Offline

    DGreatfox

    So just wondering since I am not sure if anyone else had this problem, but even with Lampstone mode turned on, It just does not turn into the Lampstone. Is there a distance limit from the spawn that this is able to work?
     
  26. Offline

    Izze

    Which block are you placing and what does your lampstoneProperties.yml file contain? To place a lampstone block, you have to be in lampstone mode, and then place a block with the block ID that you've selected as blockNight in the properties file. For example, if my lampstoneProperties.yml looked like this:
    Code:
    blockDay: 86 # = pumpkin
    blockNight: 91 # = jack-o-lantern
    I'd have to first enter lampstone mode, and then place a jack-o-lantern.
     
  27. Offline

    Lolf

    dont work :( im writing /lampstone & nothing happens :(
     
  28. Offline

    Izze

    Which Craftbukkit build are you using? Do you get any errors in the console?
     
  29. Offline

    Lolf

    eaw how can i see my cb build? and no, there arent any errors just :"[INFO]Lolf issued server command: lampstone " + "[INFO] Unknown console command. Type [...]"
     
  30. Offline

    Neoblade298

    It works great, but it stopped working after i placed a certain amount of lampstones. Is there a limit?
     

Share This Page