-
-
Notifications
You must be signed in to change notification settings - Fork 386
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
On bottle fill #1070
Comments
Sounds like a bug with right click event. Edit: Ooops, we responded at same time |
Well, I guess the obvious thing is that there isn't a Spigot bottle fill event as far as I'm aware, meaning there is no event we can listen to for this. I'm not gonna close this immediately in case someone else can correct me on that but I'm pretty sure we'd have to implement it in the same janky way you'd have to, which means you should probably just do it yourself. And on that note, you can just use target block instead of clicked block. e.g.
Of course this would need some tweaking, mainly with the distance check since I'm sure that's not exact, but you get the idea. Could also add a |
Also I don't believe this is a bug as water has never fired a click event since the player can't actually interact with or target it; I don't think the client event communicates to the server if it clicks on water with an open hand (unless it clicks through the water to a block behind it, of course). Needs more testing to verify but I believe that was always the case and that it's meant to be that way. |
I don't believe it is a bug either. I was thinking more in terms of adding a on bottle fill feature, since I am having difficulty cancelling the filling of a bottle. |
Well, you do click on water... Not a bug, but maybe an enhancement? |
This would break if you had more than 1 bottle in the stack. |
It would be great to have an event for filling a bottle, similar to 'on bucket fill'.
Filling of a bottle cannot really be handled by using 'on right click' as right clicking water does not register and it can't be handled by using 'on break of water' since filling a bottle does not actually change the water into air.
I hope that I'm not missing anything obvious.
The text was updated successfully, but these errors were encountered: