LavaRestore

Discussion in 'Archived: Plugin Requests' started by TheSkeletonSK, Nov 26, 2012.

  1. Offline

    TheSkeletonSK

    Plugin category: Mechanics?

    Suggested name: LavaRestore

    What I want: a plugin that slowly changes obsidian back into lava if a lava block is nearbye. This will keep pools of lava that had water used on them from staying like that forever. Keeping the challenge of getting across alive.

    Ideas for commands: No commands needed for this plugin.

    Ideas for permissions: No Permissions needed for this plugin

    Config: amount of time until turn into lava can be changed.

    When I'd like it by: The Sooner the better
     
  2. Offline

    creepycrafter4

    would be cool, waiting on it:)
     
  3. Offline

    TheSkeletonSK

    Bumpy bump
     
  4. Offline

    lemon42

    This would be entirely possible. I might do this, but I don't have time tonight. I'll get back to you soon if I have time!
    However, wouldn't this, in theory, be able to break player structures? I mean, if someone makes an obsidian tube with lava in it (theorically speaking), wouldn't the way the plugin you want make those tubes into lava?
     
  5. Offline

    TheSkeletonSK

    perhaps one can add griefprevention support, so any lava in a protected area will not change obsidian back into l ava.
    OR
    set it so that obsidian will turn back into lava only at a certain depth. this would make it more realistic, as lava on the surface is more air exposed and should change into obsidian like in real life.
    ...
    OR both :3 but disable the latter if it is in a protected area.
     
  6. Offline

    TheSkeletonSK

  7. Offline

    Frogi94

    hey skeleton,
    maybe that: http://puu.sh/1Abpv is what u are looking for
    its my first bukkit plugin (indeed not my first java project) so it may contain some bugs
    (also the plugin isn't 100% complete yet)
    but pls tell me wether this is what you were looking for and i will complete it
    for the controls: type "/LR ?" (op rights needed)

    greets frog
     
  8. Offline

    TheSkeletonSK

    your link has failed to take me to it x w x
     
  9. Offline

    Frogi94

    try to copy the link into the address bar
    i dont know why but the direct link doesnt work =/

    here is a newer link : http://puu.sh/1yw1T
     
  10. Offline

    TheSkeletonSK

    thenks alot. this seems to do exactly what i wanted, minus the griefprevention part. and the depth part.
    is there a page for this with instructions or updates?
     
  11. Offline

    Frogi94

    nope just programed it in 2-3 hours xD
    but for the depth it is the thing i called "height"
    but if u want i can explain it soon:

    every obsidian in direct contact with lava will turn back to lava after a set time
    direct contact excludes contact over corners

    there are two possible ways for Obsidian to turn back
    one is after the set time ran out
    and the other is at a random time between half the set time and the set time
    also only obsidian under the set height turns back
    so if i have time: 120 random: false height: 12
    every obsidian block in contact with lava under y=12 turns back to lava after 120 seconds
    if random is true it would turn back between 60 and 120 seconds
    if height were 40 every block under 40 would restore

    there are 4 commans:
    /LR help for some (in my opinion useless) help xD
    /LR time <time> <random> (time set the time until the obsidian turns back to lava and random wether it shall be done random or not) example: /LR time 70 true or /LR time 90 false
    /LR height <height> sets the maximum height at which the obsidian shall restore example: /LR height 40
    /LR data shows you the three variables

    hope that helps ^^

    if you mean some area in which obsidian doesnt return i could add that, but you would have to create all the areas by yourself
    so for every area you would have to type something like:

    /LR setPoint <x> <y> <z> which sets the first and than the second point (always changing between first and second)
    /LR createArea <restore?> which creates the are inside the two chosen points and set the restore mode to true / false
    example:
    /LR addPoint 12 70 45
    /LR addPoint 30 70 60
    /LR createArea false
    if you want that i can add it
     
  12. Offline

    TheSkeletonSK

    Ah well. that doesnt seem like something i would like to add.

    however, one thing. the condig isnt labeled, and it would help me if the config generated with what each variable is for. like

    Height: (number)
    Time: (number)
    (or whatever is in there x3)

    thanks very much for the plugin :3
     
  13. Offline

    Frogi94

    Height is a number in blocks above the ground (0, 1, 2, 3... 256)
    Time is the time until the obsidian restores in seconds (0, 1, 2, 3, 4... 10000)
    Random is a boolean declaring wether the random-system is active or not (true / false)
    the random-system is on when random is set to true

    the random-system lets the lava return at a random time
    so if you place water over lava and remove it there isnt suddenly a big lava hole but slowly returning lava

    so i think there isnt a lot to know 0=
    and the 3 examples:

    /LR time 70 true
    /LR time 90 false
    /LR height 40

    i just added that minecraft also test chunks when loading them
    and fixed the bug, that lava doesnt flow after turning back
    new link: http://puu.sh/1Abpv

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

    TheSkeletonSK

    thank ya very much.
    you should turn this into a plugin with a legit dev page :3

    i get a crapload of console spam with the new version. might want to fix that.
    "obsidian test" and "43" "10" messages.
    like. so much console becomes very unpractical to type commands in~

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

    Frogi94

    yeah already saw that sry about it, i only tested that one verry quickly before uploading it ^^
    here : http://puu.sh/1Abpv

    ok i will think about a dev, but for now i am trying to still learn all the methods of bukkit :3
     

Share This Page