Home›Java›Mods›nThirst | Or how to make the game harder for nothing
nThirst | Or how to make the game harder for nothing
ModsJava

nThirst | Or how to make the game harder for nothing

Java mod listed for Minecraft 1.14. Downloads from the MC Java Mods app on Android.

⬇ Download on Spigot
Resource moved!
Please go here to download.
​



[​IMG]
• Add an option to choose custom drinks and the amount of points that they give. ( @kamutking)
• Add an update check system.
• This presentation.

[​IMG]
• /nthirst reload
• /nthirst debug (update gauge)
• /nthirst set <player/number> [number]

[​IMG]
• nthirst.reload
• nthirst.debug (default)
• nthirst.set.yourself
• nthirst.set.others

[​IMG]
Code (Java):
// Idk how you call this thing but do it
NthirstApi api = new NthirstApi ( ) ;
 
// Set player's hydration level to something
api. setHydration (Player player, int i ) ;
 
// Get player's hydration level, it apparently return an int
api. getHydration (Player player ) ;

// Loads a player, like it pick hydration level in the userdata.yml and it stores it in the server cache or something
api. loadPlayer (Player player ) ;

// REVERSE!
api. savePlayer (Player player ) ;

// Is it enough explicit ?
api. sendGauge (Player player ) ;
api. sendEffects (Player player ) ;

// And there's a new event
@EventHandler
public void onThirstChange (PlayerThirstChangeEvent e ) {
    if (e. getPlayer ( ). getLocation ( ). getWorld ( ). getName ( ). equals ( "lobby" ) ) e. setCancelled ( true ) ; // It will prevent players from dehydration if they are in the world "lobby"
}

Commands

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

nThirst | Or how to make the game harder for nothing is a free Minecraft Java mod. Compatible with Minecraft 1.14. Downloaded 152 times (via Spigot). Download it and open it directly in the game.

Explore more