Strange click event

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

SkriptingMonkey

New Member
Jun 8, 2018
7
0
0
I wrote a simple script:
code_language.skript:
on rightclick on water using bottle:
    
    give a cake to the player
    message "Biboran"

There are no errors, but when you try to fill the bottle with water, it still doesn't happen.
What am I doing wrong?

Version: 2.2-dev36
Skript Author: Bensku
Minecraft Version: 1.12

Addons don't used.
 
try:

code_language.skript:
on rightclick:
    if clicked block is water:
        if tool of player is bottle:
            give a cake to the player
            message "Biboran"
 
try:

code_language.skript:
on rightclick:
    if clicked block is water:
        if tool of player is bottle:
            give a cake to the player
            message "Biboran"
Nope :c
upload_2018-6-8_16-55-7.png

Maybe need to call water somehow differently?
[doublepost=1528466687,1528466237][/doublepost]
Nope :c
upload_2018-6-8_16-55-7.png

Maybe need to call water somehow differently?
Yep, i tried to replace water with snow(just for example), and it works.
What's wrong with water?
 
I don't know if
code_language.skript:
on rightclick with a bottle
conflicts with THIS EVENT, maybe try to use it like
code_language.skript:
on bucket fill:
  give cake to player

It's a hypothesis, I could be wrong
 
its because you are not actually clicking ON the water itself
I tested this and it works

code_language.skript:
on right click:
    if target block is water:
        if player's held item is glass bottle:
            give a cake to the player
            send "Biboran" to player
 
Uh okay, hypothesis failed :emoji_stuck_out_tongue:

@ShaneBee is right, I didn't notice the "clicked water" part
I noticed when clicking "on" the water, the hit box was on the block below the water.
So I fiddled around with on right click events and having it send me the event type, and the targeted block and blah blah, and came up with that, and it worked :emoji_slight_smile:
 
Status
Not open for further replies.