Detecting bottles filled

Discussion in 'Plugin Development' started by Tytelcimi, Apr 28, 2021.

Thread Status:
Not open for further replies.
  1. Offline


    Hi all. I am having some troubles detecting glass bottles being filled. I first tried the PlayerInteractEvent but, when the player is right clicking in water, getClickedBlock() returns null or the block they are clicking through the water so there is no way to know if they are clicking on land (no effect) or clicking in water (the bottle is filled). I also tried PlayerBucketFillEvent but, as the class name suggests, that it only called when buckets are filled not water bottles. How do I detect water bottles being filled? Thank you.

    I loop my index fingers through the hoops of the neat little bow-ties and tug outwards, quickly and firmly. Of course, both ties come undone simultaneously, and the front of your panties flops down like a drawbridge under siege, exposing the gateway to the citadel of your cunt . With a half-grunt, you open your legs a little so that I can remove the whole garment, and – as it is obviously an expensive example of the lingerie designer’s art – I put it carefully on the toilet lid. I gaze admiringly at your lightly-tanned thighs, at the curving jut of your mound, at the prominent puffy projections of your labia , at the widening slit of your vagina, and I drink in the heady perfume emanating from your arousal.

    You are, of course, impeccably clean-shaven, and the skin around your pussy has a healthy and even bronze sheen – not for you the ugly contrast of pale and pasty skin outlined by some cheap crude beachwear, like a plastic porno star. You exude class and elegance, from the perfect neatness of your coiffure, where there is still not a strand of hair out of place, and your tasteful clothes and lingerie , to your well-toned muscles and smooth flawless complexion. No one has ever more deserved their name, and I am thankful to kneel in awe before Gloria, and worship at the font of your vagina – if my devotions are sincere enough, perhaps you will accept me into my new faith, and baptise me with your love-juice?
    Last edited: May 20, 2021
  2. Offline


    You want to use
    Location loc = player.getTargetBlockExact(5, FluidCollisionMode.ALWAYS).getLocation();
    Kars likes this.
  3. Offline


    But you don't need location, just the block to see if it is water.
    This might not work if the bottle is filled from a cauldron.
    davidclue likes this.
  4. Offline


    I was only pasting some code from one of my projects, I didn't feel like changing it. Just check if the block targeted was a water source or cauldron (I'm sure there are ways to check if the cauldron was filled or not) and if it was then do what you want to do, you could also add some checks to see if they are holding a filled bottle just to be sure.
Thread Status:
Not open for further replies.

Share This Page