Plugin Request ThirstHUD (Thirst Plugin with HUD Bar)

Discussion in 'Plugin Help/Development/Requests' started by mrsagency, Dec 6, 2015.

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

    mrsagency

    Plugin category: Survival/Fun

    Suggested name: ThirstHUD

    I know there's been alot of "thirst" plugins, but I can't find a plugin that supports HUD.

    My Concept:
    Combine thirst and hunger together with one bar(hunger bar).

    First, there will be 2 different textures for the hunger bar, one as the normal hunger bar and another as the thirst bar.
    OPTIONAL: Allows the server to customize the textures.
    Texture packs are shown below

    The hunger points and thirst points are saved separately as variables in the server.
    For every 10 seconds, the bar will switch from one to another, showing hunger/thirst points on the bar, with the changing of texture packs of the responding HUD textures.

    If a player eats, the bar automatically switches to the hunger bar.
    Vice versa, he drinks, it switches to the thirst bar, despite the 10-second-changing of HUD.

    Thirst acts the same as hunger.
    When it is below or equal to 6 points(3 full points in HUD), the player cannot sprint.
    When it depletes, the player is damaged from dehydration until being quenched.
    If thirst and hunger are both full, the regeneration speed is doubled.
    **Thirst doesn't help in health regeneration, but is a factor of regeneration speed.

    Thirst can be quenched by drinking water potion, potions, milk and stews, restoring corresponding number of thirst points.
    (1 point = half a point shown in HUD)
    Water Potion/Potions: 6 points(3 full points in HUD)
    Milk: 10 points(5 full points in HUD)
    Stews: 12 points(6 full points in HUD)
    Melons: 6 points(3 full points in HUD)
    *Underwater: Gains 1 point per second(half a point in HUD)

    Ideas for commands:

    /hunger or /h : Shows the hunger points on the bar
    /thirst or /t : Shows the thirst points on the bar
    /cycle : Toggle the cycle between hunger and thirst points on the bar, if off, the bar is only cycled when eating or drinking, or with the commands.

    Ideas for permissions:
    - thirsthud.thirst : Players that will be affected by this plugin
    |- thirsthud.cycle : Perm for /cycle
    |- thirsthud.show : Perm for /hunger and /thirst

    Texture Pack:
    Thirst Bar
    [​IMG]
    Thirst Full
    [​IMG]
    Thirst Half
    [​IMG]
    Thirst Empty
    [​IMG]
     
    Last edited: Dec 23, 2015
  2. Offline

    mrsagency

  3. Offline

    TheMrJezza

    Plugin's can only use what's in-game and make it do other stuff. For example, making a player fly in survival is possible because players can fly in normal minecraft without any mods. Creating a custom "thirst" bar with custom textures isn't possible without players using mods. If you want a system like this you would need to use the action bar or one of the scoreboards. It wouldn't have any textures and the hunger bar won't switch at all. the level of complexity in making this is what's putting everyone off.
     
  4. Offline

    Scorpionvssub

    What you can do is, (maybe) is when a person tries to eat that amount they wouldve gotten from eating normally cancel that when the bar is acting as thirst then when its they drink they get some "hunger" and if its on hunger vise versa, i never messed around with foods in mc can only stop, delay and adjust the hunger bar via events but unless you find a way to interfere with the fish bread etc for hunger gain you will need a mod to do this and maybe a texture pack aswell
     
  5. Offline

    mrsagency

    I know there's somewhere servers can notify users to change their texture packs to the server texture packs
    Just 2 texture packs with only the hunger bar changed(overlayed)
    Example: http://dev.bukkit.org/bukkit-plugins/force-texture/
    EDIT: And this: http://dev.bukkit.org/bukkit-plugins/multipack/

    When they are starting to eat, "hunger" points is added(not the hunger bar), vice versa, drink - "thirst" points is added.
    The bar just shows the points instead of "vanilla hunger mechanic"
    So I think there's no conflicts between them.
    EDIT: The bar automatically changes to responding current points, so eating when "thirst" points is full is possible.
     
    Last edited: Dec 10, 2015
  6. Offline

    mrsagency

  7. Offline

    Scorpionvssub

    Without a texture pack or a mod this simply isn't possible as you cannot change the things minecraft normally doesnt provide, you cannot change the textures for a hunger bar to thirst without having a texture pack, only thing a plugin can do is be a middle man where it blocks hunger points when eating fish while allowing/adding it by itself when someone drinks water or something, And having a plugin go *if person drinks water delete water bottle and add X amount of points to hunger bar* - "send msg you clanced your thirst" thats the only way from a java standpoint for most people without using some mod texture pack or extreme vanilla code changing.. and i dont see anyone on bukkit doing that.

    There is no vanilla thirst bar so people cant just create them here
     
  8. Offline

    Mrs. bwfctower

    @Scorpionvssub I can think of multiple ways to do this. You could utilize the oxygen bar, and have a way to differentiate between when they are in water and actually suffocating. You could also use the boss bar to have a thirst level.
     
  9. Offline

    Scorpionvssub

    i never said it wasn't possible to do it with the ingame bars i stated that you cant create new bars that arent ingame using the oxygen bar i never said wasn't possible i know there are ways to do it its why i went on about the hunger bar sjeez... ah well x) gl @mrsagency
     
  10. Offline

    mrsagency

    You have completely misunderstood my concept.
    1. I want to use a texture pack to change the hunger bar when the thirst points is showing.
    2. If a person drinks, I suppose there's a event to listen, and add points to "thirst points".
    Vice versa, when eating, add points to "hunger points"
    3. There's no need for a new bar, just modifications in hunger bar.

    I have updated the first post with a texture pack I design to replace hunger bar's texture.

    My purpose is to use the hunger bar as both "hunger & thirst points" display...
     
  11. Offline

    Mrs. bwfctower

    You want it to have multiple looks though, depending on if they're drinking or eating? Not possible AFAIK.
     
  12. Offline

    mrsagency

    Change the texture pack when showing different points is not possible?
    EDIT: http://dev.bukkit.org/bukkit-plugins/worldtextures/
     
  13. Offline

    Mrs. bwfctower

  14. Offline

    mrsagency

    If we just change one texture, it won't cause obvious changes, isn't it?
    The resource pack only overlays the texture of hunger bar, not the entire texturing, as it only contains the hunger bar texture changing.
     
  15. Offline

    Scorpionvssub

    It would still go through ALL blocks that the player has in view which can still cause a freeze
     
  16. Offline

    mrsagency

    Is it possible to use oxygen bar to do this?
     
  17. Offline

    Scorpionvssub

    A plugin can hold schematics within the build a good scripter might be able to implement 2 texture packs but im not sure if a sevrer is allowed to force people to use a certain texture pack even when a server has 1 it asks if you wanna use it
     
  18. Offline

    mrsagency

  19. Offline

    Scorpionvssub

    im against forced textures any GOOD server tells any person trying to join they use a mod or texture pack and asks if they wanna download it in order to join, that a plugin is made to do so doesn't mean its wanted.
     
Thread Status:
Not open for further replies.

Share This Page