[SPIGOT-4075] 1.13 API: method to check if water/lava isFalling Created: 19/Jul/18  Updated: 19/Jul/18  Resolved: 19/Jul/18

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Minor
Reporter: Zedadias Wick Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: 1.13, api, falling, fluid, lava, liquid, water

Version: CraftBukkit version git-Spigot-83d9d09-c1d9f94 (MC: 1.13-pre7) (Implementing API version 1.13-pre7-R0.1-SNAPSHOT)

 Description   

I would like to be able to check if lava/water is fall, which does not appear to be in the 1.13 api yet. Water can be falling true/false, as-well as have a level number which is already available via Levelled blockdata.



 Comments   
Comment by md_5 [ 19/Jul/18 ]

As far as I know fluid states at this point in time are dummy and only exist at runtime, and aren't even reachable outside of the code/debug screens. With that in mind I don't think it is appropriate to create any sort of API for them given this will likely change drastically if/when a fluid layer becomes implemented.

I have instead updated the documentation to make this clear.

Comment by Zedadias Wick [ 19/Jul/18 ]

Ahh, nice. Thanks for the tip, Black Hole.

Comment by Black Hole [ 19/Jul/18 ]

"falling" is a fluid state which are not exposed in the Bukkit API yet.
But if "level" is larger than 7 it's falling:
https://minecraft.gamepedia.com/Water#Block_state

Generated at Sat Dec 13 13:43:53 UTC 2025 using Jira 10.3.13#10030013-sha1:56dd970ae30ebfeda3a697d25be1f6388b68a422.