[Req] Spontaneous combustion

Discussion in 'Archived: Plugin Requests' started by TelephoneKiosk, May 29, 2012.

  1. Offline

    TelephoneKiosk

    Hello, I was hoping someone here could make a plugin for me. Here's the basic idea of it: Players on the surface at day time have a chance of spontaneously combusting every X minutes. The plugin will have a config.yml file where players can define the following:

    * Number of minutes before plugin randomly combusts someone
    * Whether the player has to be on the surface or not to combust
    * Minimum number of players that have to be on the server for a combustion to happen (e.g, if one player is on the server and x minutes have passed, and the server owner only wants a combustion to happen if 2 players are online, the player won't combust.)
    * A customizable message for the player who combusts to receive upon combusting.

    Also, if possible, it would be nice if the plugin's timer weren't affected by reloads :)

    Also, I'd like if you'd keep the plugin updated as well :D

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

    JollyGiant16

    Not a 100% how to even do what you want
     
  3. Offline

    TelephoneKiosk

    Whaddya mean
     
  4. Offline

    Faelsel

    is like a radiation plugin?
    i should have a code like that, but if i remember in plugin list there should be a Fall-out / Radiation / Sun combust plugin... just check and tell if there is :D
     
  5. Offline

    TelephoneKiosk

    There is one in the plugin list that does this, but it is very buggy and the author isn't maintaining it any more :I
     
  6. Offline

    DocRedstone

    Has anyone made this for you yet? If not I'll take a stab at it. Also by "combusting" you just mean die right?
    TelephoneKiosk
     
  7. Offline

    TelephoneKiosk

    Nah, by combusting I mean bursting into flames :) And no, no ones made it yet
     
  8. Offline

    ಠ_ಠ

    Im not sure if the player can be detected on the "surface" but maybe above a certain layer?
     
  9. Offline

    TelephoneKiosk

    Or maybe it could check light level. I think the light produced by the sun is brighter than light produced by anything else isn't it?
     
  10. Offline

    colony88

    sunlight + fire + lava + glowstone + redstone lamp + jack-o-lantern = light level 15
    They all have the same light level...
     
  11. Offline

    DocRedstone

    Ah ok so they just catch on fire and burn?
     
  12. Offline

    colony88

    Maybe you could combine them: layers and light level
     
  13. Offline

    TelephoneKiosk

    Yessir. They'd have to be in direct sunlight for it to happen though. Not sure how you could determine when they are :/
    Maybe check light level, which layer they're on, and if there's a block above them?
     
  14. Offline

    DocRedstone

    I'm working on it as we speak.
     
  15. Offline

    colony88

    Last edited by a moderator: May 26, 2016
  16. Offline

    TelephoneKiosk

  17. Offline

    colony88

    Did you?

    Anyways, the only thing the dev would have to do it look up the code used by the sunburn plugin and add a for loop of the online players, call a random int and a scheduler...
     
  18. Offline

    TelephoneKiosk

    Wish I knew what that meant
     
  19. Offline

    colony88

    Meh, don't think too much about it... Took me a while to get used to them, now I need to learn HOW to use them :p
     
  20. Offline

    Faelsel

    Yes it is easy ... but personally im working on another plugin right now, i cant divide my time in several plugins and doing no one XD
     
  21. Offline

    DocRedstone

    TelephoneKiosk

    Download: http://dl.dropbox.com/u/41947783/SpontaneousCombustion.jar

    Currently it works as I have tested it with 1 player online. How it will behave with multiple players should be the same, if you have any issues PM me or respond to this thread. I'll be happy to fix them. The only thing I was not able to address from what you suggested was reloads not effecting the timer.
     
  22. Offline

    ಠ_ಠ

    Trees :\
     
  23. Offline

    colony88

    Same for houses etc
     
  24. Offline

    TelephoneKiosk

    What does 'blocks above' mean in the config file?
     
  25. Offline

    DocRedstone

    How many blocks need to be above their head inorder for them to be considered "undergroud". I suggest keeping it 3 or above because if they stand under a tree that is 2 blocks above their head.
     
  26. Offline

    Scorpianking108

    Do you think that our plugins are easy to code or not?
     

Share This Page