#Prevent hand-bottling water

9 messages · Page 1 of 1 (latest)

tame relic
#

I'd like to remove the ability to hand-bottle water in my pack because it causes an easy exploit. My attempt at scripting it doesn't do anything.

BlockEvents.rightClicked('minecraft:water', event => {
    if (event.item == 'minecraft:glass_bottle'){
        event.cancel()
    }
})
crude canopyBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

white violet
#

Because you can't physically click water. There might be an item event for this but I can't remember

tame relic
#

the following seems to work:

    event.cancel()
})```
#

though i'm worried it might cancel some other actions unintentionally

#

oop
looks like fake players can bottle water still

white violet
#

You could definitely do this with raytrace if you're willing to figure out how that works. I know it's a thing you can do, I've never done it in JS though so can't help with it

#

There's a way to fix that as well I think

#

You can search other tickets for these things, I know they exist