[INACTIVE][MECH] OddLight 0.5.2 - Expiring Torches [561-684]

Discussion in 'Inactive/Unsupported Plugins' started by petteyg359, Mar 21, 2011.

  1. Offline

    petteyg359

    OddLight - Expiring torches
    Version: 0.5
    [​IMG][​IMG]

    A plugin to make torches disappear after a configurable interval.

    Features:
    • Make torches expire after configurable number of seconds or minutes
    • Torches can be re-lit with flint and steel or coal
      • Flint and steel relights torch for 50% duration and destroys torch.
      • Coal relights torch for 100% duration.

    Todo:
    • Stuff. Tell me.

    Commands:
    /oddlight duration [time] - prints or sets duration
    /oddlight worlds [world1 world2 ... world#] - prints or sets worlds
    /oddlight add <world> - adds world
    /oddlight del <world> - removes world

    Permissions:
    odd.light.duration
    odd.light.worlds
    odd.light.add
    odd.light.rem

    Download [jar]

    Changelog:
    Show Spoiler

    0.5.2
    Took exception to a pointing null​
    0.5.1
    Added Netherrack to light torches permanently​
    0.5
    Additional options, tested for CB 602​
    0.4
    Initial build for Craftbukkit 561+ (using PLAYER_INTERACT)​
    0.3
    Fixed NPE​
    0.2
    Torches change to redstone torch after expiration
    Torches can be re-lit with lighter or coal​
    0.1
    Initial release​


    light.txt sample:
    Show Spoiler

    Code:
    #torches last for 1 hour
    duration: 1h
    #torches last for 2 hours
    duration: 7200
    #torches last for 3 hours
    duration: 180m
    #just samples to show that you can use #m or #h for minutes and hours, only one of them should be in config
    #torches are relightable with coal or lighter
    relightable: true
    #torches change to off redstone torch at expiration
    replacement: redstone_torch_off
    #whack-ness - if you want to give good players glowstone and grief griefers when they go mining, set a very short duration along with this :)
    replacement: lava
    #list of worlds to enable plugin on (no spaces between worlds, comma delimited)
    worlds: world1,world2,world3
    



    [​IMG][​IMG]
     
    Netu likes this.
  2. Offline

    Noxturno

    hey the Text to cofigure it is empty is that the way it should be ? in the Odd folder under plugin also can yyou make some examples of how to set it up ingame for touches to last 30 minutes ?
    also how can I just make them disapear instead of transforming into redstone torches ? since there is no config text :(

    thanks in advance
     
  3. Offline

    petteyg359

    Read the first post. There's a configuration sample. Set relightable to false if you want them to just disappear.
     
  4. Offline

    aphexboy

    Hello, I am interested in ths mod to had this mod to my server, but before I wondered if it worked with bukkit 740?
    Thanks
     
  5. Offline

    petteyg359

    It should, but I haven't done much testing.
     
  6. Is it possible to add a config-feature, that deletes all torches when loading the plugin? (after server restart)
    I want to build a dark-world with your plugin and the torches get permanent after restart.
     
  7. Offline

    Legolas75893

    Love bumps<3
     
  8. Offline

    Master

    The best way to handle this would be to create a table based on players with torch locations. Then when a player leaves or enters the server recheck his/her torches and if they are out of the time limit remove them. This would catch all of the torches that keep turning permanent.
     
  9. Offline

    petteyg359

    That wouldn't be the best way. Expect an update sometime this week. I'll be home and back to a friendly environment conducive to programming :)
     
  10. Offline

    peaced

    Excelent news. Can't wait to prevent eternal torchs from server restarts .
     
  11. Offline

    Plague

    cb 684 - inactive
    (and is the version range really needed?)
     
  12. Offline

    petteyg359

    I could just say 553+, but then people would complain that I don't have the latest version number in the title, so I'd have to add that, then somebody would complain about having a range in the title, so I could remove the old version number, but then somebody would complain that I don't list it working on old versions despite it working, ad infinitum :)
     
  13. Offline

    Plague

    Why would anyone run old bukkit and search for new plugins? The whole point of current bukkit is to run latest recommended.
    And if you have an old server it's somewhat crazy to add new plugins because the only good reason to run old one is stability.

    Anyway the range is just a side thing, the main problem here is this plugin is not 766 (not even 733 - the first 1.5 recommended build)
     
  14. Offline

    petteyg359

    Give me a forum mod that I can stick a list of used functions into so it will auto-update my thread title with the latest build number as long as those signatures aren't modified :)
     
  15. Offline

    jubileet

    How do you exactly relight a torch? I have coal in hand but when I try to light it up, it just breaks down the redstone torch.
     
  16. Offline

    petteyg359

    Right-click to use an item, just like anything else. Why people think they have to punch a button and try to break it to use it, I'll never know...

    I'm still working (very slowly) on updating this, but I've got summer classes next week that I'm spending time preparing for.
     
  17. Offline

    jubileet

    I tried both ways, seems like if I'm not connected to the server when the torch goes off I can't relight it? Or possibly if I didn't place it? Not quite sure. But there were cases when I could relight torches easily with right clicking so I'm confused...

    Anyway, just a suggestion. Would it be possible to implement a % chance for the torch to go out when the duration is up? This is a great mod, but its almost impossible to maintain your torches when you start to have a much larger cave / house. etc.
     
  18. Offline

    petteyg359

    Yes, it's one of many things the next version will have.
     
  19. Offline

    Netu

    This breaks in #860 (or so it seems); I am not getting errors, but torches simply are not burning out. I think it's about time for an update, no? :D
     
  20. Offline

    petteyg359

    Sorry, I've been busy at school and Minecraft isn't a priority right now. It'll get done eventually... I just can't say when eventually is :)
     
  21. Offline

    Netu

    It happens. We patiently await your "eventually!" ;)
     
  22. Offline

    MasterMeNL

    ;D
     

Share This Page