GlowstoneMC / Glowstone-Legacy

An open-source server for the Bukkit Minecraft modding interface
Other
363 stars 122 forks source link

Player Takes Void Damage #577

Closed jaredStef closed 9 years ago

jaredStef commented 9 years ago

When a player is deep in the void aka y axis is less than or equal to -64 the player takes 4 damage.

turt2live commented 9 years ago

PRHOLD: Cacti hugging - contains additional required code

jaredStef commented 9 years ago

I won't submit a PR for suffocation yet either and hmm my build failed. Let me look at the checkStyle

dequis commented 9 years ago

How does this depend on the hugs PR?

Also this seems like it would be nice to test timing of damage. From the mc wiki:

Falling into the Void past Y=-64 causes the player's health to be depleted by about 4 (:heart::heart:) every half second, leading to the player's death in around 2.5 seconds. Armor does not protect you from dying in the Void, and death always occurs at Y=-199.10

turt2live commented 9 years ago

It will not work without the boiler plate code asked in the hugs PR.

sent from mobile On Nov 28, 2014 6:04 AM, "dx" notifications@github.com wrote:

How does this depend on the hugs PR?

Also this seems like it would be nice to test timing of damage. From the mc wiki:

Falling into the Void past Y=-64 causes the player's health to be depleted by about 4 ([image: :heart:][image: :heart:]) every half second, leading to the player's death in around 2.5 seconds. Armor does not protect you from dying in the Void, and death always occurs at Y=-199.10

— Reply to this email directly or view it on GitHub https://github.com/GlowstoneMC/Glowstone/pull/577#issuecomment-64891826.

dequis commented 9 years ago

What boiler plate code? I see it adds canTakeDamage and isTouchingMaterial, neither of which are used or needed here

Although it does duplicate the noDamageTicks = maxNoDamageTicks line, but.. that's no reason to put it on hold.

turt2live commented 9 years ago

Exactly: it doesn't make use of them. It should make use of them for the sake of consistency throughout the code.

sent from mobile On Nov 28, 2014 6:09 AM, "dx" notifications@github.com wrote:

What boiler plate code? I see it adds canTakeDamage and isTouchingMaterial, neither of which are used or needed here

Although it does duplicate the noDamageTicks = maxNoDamageTicks line, but.. that's no reason to put it on hold.

— Reply to this email directly or view it on GitHub https://github.com/GlowstoneMC/Glowstone/pull/577#issuecomment-64892267.

dequis commented 9 years ago

This doesn't need to be on hold anymore

SpaceManiac commented 9 years ago

Merged manually in 80ee09c652579da034f576b3eda89864dd4a6a1a. Thanks!