Solved Checking if water block is water source?

Discussion in 'Spigot Plugin Development' started by ratquaza, Feb 9, 2020.

  1. Title says it all, I'm able to check the material and see that the block is water, but how can I check if it's a water source?
  2. Code (Text):
    BlockData blockData = location.getBlock().getBlockData()

    if(blockData instanceOf Levelled){
       Levelled lv = (Levelled)blockData;
    With that information you can check if waterLevel == maxLevel


    • Agree Agree x 1
    • Useful Useful x 1