#(Udnek) Fill bottle event
31 messages · Page 1 of 1 (latest)
(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>
!paste
Help us help you by pasting your script to https://paste.denizenscript.com/New/Script and linking it back here.
you may be doing something wrong in the event, thats supposed to work
!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!
But "clicks block" event ignores liquids and "fills item" detects only bucket material
Content of Denizen Script Paste #106905: Water test... pasted 2023/03/05 09:32:28 UTC-08:00, Paste length: 206 characters across 8 lines, Content: water_test: type: world
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
Thanks!
But sometimes it doesn't work. Maybe, raytracing is not very accurate because of ping. Plugins really can't listen exactly "bottle fills" action?
There's no event for water bottle filling specifically
You'd have to use the right clicks block event
Why a ray_trace, instead of something like, <context.location.material.name> ?
because context.location can be null
you can't click on water
ye
you're clicking through it
... that makes sense.
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