Frostbite

Discussion in 'Plugin Requests' started by CheifKeef, Aug 2, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    CheifKeef

    Plugin category: Fun

    Suggested name: Frostbite

    What I want: Id like it so when this plugin is in the server that there is no sun!!!! every time it is close enough to be day it resets to pure night.

    I also want it so there is random frostbite periods every 20 mins in the server, Every player experiences frostbite. What happens? well a Message broadcasts to the server "[Warning] Temperature dropping!!! Get to shelter immediately!" <-- This message will pop up 3 mins before the 20 min mark when frostbite is supposed to happen. Then when frostbite hits i want every player to hear a noise you can chose the sound Please chose something scary. Then when frostbite hits i want every players food levels to start dropping faster than it should so they lose a half a food bar every 5 seconds, then i want them to lose half a heart every 10 seconds no matter if their food is all the way up. but it stops when they're at 1 heart left!! the frostbite lasts for 30 seconds.

    I don't know if this is possible to make but id like to see it be made :)


    Ideas for commands: No commands needed for this plugin.

    Ideas for permissions: No permissions needed for this plugin.

    When I'd like it by: Today.
     
  2. Online

    timtower Administrator Administrator Moderator

    @CheifKeef And what does the shelter have to do with it?
     
  3. Offline

    Ruptur

    @timtower
    I think he means the shelter stops them from getting affected by the frostbite
     
  4. Online

    timtower Administrator Administrator Moderator

    But what would be defined as a shelter
     
  5. Offline

    pie_flavor

    @CheifKeef The first part can be done with this: /gamerule doDaylightCycle false
    and then this: /time set 18000
    It is difficult to code what a 'shelter' is, and players being players, they will try and exploit this.
     
  6. Offline

    raymart23

    shelter like shield ?
     
  7. Offline

    pie_flavor

  8. Offline

    raymart23

    @pie_flavor yes might be but he are talking about protecting player from frostbite . so I thought it was an shield
     
  9. Offline

    pie_flavor

    @raymart23 What do shields have to do with frostbite?
     
  10. Offline

    raymart23

  11. Offline

    _Error

    I'm not sure how I can detect a 'Shelter' Other than that. I guess I can make it. Maybe I can detect if the player is near a fireplace or something :p? Or maybe check his Light Level?? What Do you think, Fireplace will be
    harder than Light level. Please inform me and then ill be ready to make it.
     
  12. Offline

    pie_flavor

    @_Error Just check if there is fire in a 4 block radius.
     
    CheifKeef likes this.
  13. Offline

    CheifKeef

    :))) Yes please if they are near a fireplace :) or torch some kind of light source :)
     
  14. Offline

    pie_flavor

    @CheifKeef Torches are too easy, a player could just carry like a stack around with them and just light up the area they're in. imho it should be like within a 4 block radius of 2 blocks of fire.
     
  15. Offline

    CheifKeef

    Yea that might be better ^^
     
  16. Offline

    _Error

    I'll work on that.
     
    CheifKeef likes this.
  17. Offline

    CheifKeef

    Thanks :)
     
  18. Offline

    _Error

    So, You want a frostbite to happen at a RANDOM rate. It should warn you 3 minuted before and it lasts for 20 mins.
    Can you tell me what should be the chance of it happening each second?

    EDIT: 70% done. Now its time for the fire detection.
     
  19. Offline

    CheifKeef

    Yes i want it to happen randomly and don't make it last 20 mins make it last maybe 5-7 mins and the chance of happening each second? I don't know About each second maybe like 15% or something like that
     
  20. Offline

    pie_flavor

    @CheifKeef @_Error It's a good thing to use the barrel method. Every so often, like 2 minutes or so, it will test for a 1/x chance, and after x tries it is forced automatically. The counter is reset whenever it happens.
     
  21. Offline

    _Error

    15% means it will happen around 1 time each 7 seconds.
     
  22. Offline

    CheifKeef

    Oh wow i don't want it to be that close apart i want it to happen maybe 2 times 1 minecraft day, whatever you think is the best way to do it
     
  23. Offline

    _Error

    Minecraft 20 minutes?


    EDIT: Done :) I'll make the configs and tweak it a little, Remove the debug messages then post it :)
     
    Last edited: Aug 8, 2015
    CheifKeef likes this.
  24. Offline

    CheifKeef

    Thanks so much man :))))))
     
  25. Offline

    _Error

    http://dev.bukkit.org/bukkit-plugins/frost_bite/
    :) I think it deserved to be uploaded to the bukkit. However I think there's 1 bug that it does not stop at the 1 heart, I think sometimes.
    Don't only thank me, say thanks to @BurnyDaKath who helped me with the detection of the fire :) I had issues with that.

    I did not implement the always night thing.
    You can do what @pie_flavor said. If you have issues with it I will add it in the next update.


    EDIT: Sorry forgot the scary noise. Will be fixed in the next update.
     
    Last edited: Aug 9, 2015
  26. Offline

    CheifKeef

    Thank you guys so much :)
     
  27. Offline

    _Error

    No problem, Im working on adding language support for like 10 plugins. Keep yourself updated, As I said, There's a bug that you loose hunger if you're close to the fireplace, And you wont when far away. Ill fix that in the next update, Maybe tmrow or after tmrow.
     
    CheifKeef likes this.
  28. Offline

    CheifKeef

    Alright for sure
     
Thread Status:
Not open for further replies.

Share This Page