Solved Cauldron problem

  • 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 comminuty!

    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.

FireKun

Member
Oct 28, 2018
13
1
0
24
Hello people, I have a problem detecting de cauldron, here is the code:

Code:
on right click:
    if clicked block is a cauldron:
        send "test"

It seems simple, it doesn't throw any error but I don't know why but when I click to a cauldron it doesn't do anything. I'm using Skript 2.4.1, skRayFall and sk-mirror.

Thanks.
 
Hello people, I have a problem detecting de cauldron, here is the code:

Code:
on right click:
    if clicked block is a cauldron:
        send "test"

It seems simple, it doesn't throw any error but I don't know why but when I click to a cauldron it doesn't do anything. I'm using Skript 2.4.1, skRayFall and sk-mirror.

Thanks.

mc version
 
Hello people, I have a problem detecting de cauldron, here is the code:

Code:
on right click:
    if clicked block is a cauldron:
        send "test"

It seems simple, it doesn't throw any error but I don't know why but when I click to a cauldron it doesn't do anything. I'm using Skript 2.4.1, skRayFall and sk-mirror.

Thanks.

try this?

Code:
on right click on cauldron:
 
Same, it doesn't throw me any error but nothing happends when I click a cauldron.

Okay can u run this and send me results:


Code:
on right click:
    broadcast "1 %type of clicked block%"
    broadcast "1 %player%"
    if clicked block is a cauldron:
        broadcast "2 %type of clicked block%"
        broadcast "2 %player%"
    if clicked block is cauldron:
        broadcast "3 %type of clicked block%"
        broadcast "3 %player%"
 
Anything happends, it's really strange.

well idk temp fix iguess:


Code:
on right click:
    if "%type of clicked block%" = "CAULDRON":
        send "Hi"
[doublepost=1584401042,1584401007][/doublepost]
well idk temp fix iguess:


Code:
on right click:
    if "%type of clicked block%" = "CAULDRON":
        send "Hi"

Try deleting materials.json if u want and restart server
[doublepost=1584401444][/doublepost]
well idk temp fix iguess:


Code:
on right click:
    if "%type of clicked block%" = "CAULDRON":
        send "Hi"
[doublepost=1584401042,1584401007][/doublepost]

Try deleting materials.json if u want and restart server

oh maybe:


Code:
on right click on cauldron_block:
   send "Hi"
 
If I'm not wrong 0.19.1.
Code:
import:
    org.bukkit.material.Cauldron
    org.bukkit.material.MaterialData

on right click:
    if "%type of clicked block%" = "CAULDRON":
        set {_a} to clicked block.getData()
        set {_b} to clicked block.isEmpty()
        set {_c} to clicked block.isFull()
        send "%{_a}% %{_b}% %{_c}%"

does this do anything?
 
Status
Not open for further replies.