#(Udnek) Fill bottle event

31 messages · Page 1 of 1 (latest)

knotty wyvern
#

How to detect when a player fills glass bottle by clicking water? "clicks block" and "fills item" events don't work.

icy edgeBOT
#

(Udnek) Fill bottle event

#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
You can block this bot if you don't want to see these messages, I won't mind.
<@&525394568410038282>

dusky wagon
#

!paste

marsh joltBOT
dusky wagon
#

you may be doing something wrong in the event, thats supposed to work

polar matrix
#

!debug

marsh joltBOT
# polar matrix !debug
Info: debug

If you need help with a script issue, one of the most powerful tools Denizen has to offer is full debug output. This is displaying in your console whenever scripts are running until you turn debug off. To share a debug log quickly and easily with helpers, simply run the command /denizen debug -r in-game to begin recording, then run through the part of the script you need help with, then run the command /denizen submit. This will give you a link to a paste of the debug log, which you can then copy/paste back to us!

knotty wyvern
polar matrix
#
water_test:
    type: world
    debug: true
    events:
        on player right clicks block with:glass_bottle:
        - if <player.eye_location.ray_trace[return=block;fluids=true].material> not matches water|water_cauldron:
            - stop
        - narrate fired
#

that shouuld do it

knotty wyvern
#

But sometimes it doesn't work. Maybe, raytracing is not very accurate because of ping. Plugins really can't listen exactly "bottle fills" action?

polar matrix
#

There's no event for water bottle filling specifically

#

You'd have to use the right clicks block event

brisk vault
polar matrix
#

because context.location can be null

lone moth
#

you can't click on water

polar matrix
#

ye

lone moth
#

you're clicking through it

brisk vault
#

... that makes sense.

cursive forgeBOT
#
Thread Closing Reminder

Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.

If not yet resolved, please reply below to tell us what you still need.

(Note that if there is no reply for a few days, this thread will eventually close itself.)

#

@knotty wyvern