Posted July 11, 201411 yr Hello There. I run into a small issue which i cannot for the life of me figure out. So here is my problem I am making a "potion effect" which when active should make you loose air. The problem however is, when i decrease the air from the player with player.setAir(par1); but it instantaneous replenish the air supply because the player is not in water. i cannot figure out how to stop this. i looked into how it "stops" it while under water and its code is private or protected in the entity class. so i cannot change the "player.inwater" to true from the eventhandler. if you need any code i can post them. the event does work (as i am using it for other potion effects) but i can still post it if relevant. Naturalis - The easy way for nature.! Esquire - A helping hand for your adventure. Jimanju - The Random Disasters!
July 12, 201411 yr Author I went for another round, i thought it through an chose to just damage the player with DamageSource.drown as the source. Naturalis - The easy way for nature.! Esquire - A helping hand for your adventure. Jimanju - The Random Disasters!
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.