Hello, I've tried to cancel middle click block duplicating while players are in creative. I looked at forums, and I saw one reply of @ShaneBee, which includes "if event-click action is middle mouse button:", but that expression is only available in GUIs. I've also tried "if click type is middle mouse button:", I don't get errors, but it doesn't work. I want to cancel duplicating of player heads, since they're available in /heads shop. I am making creative server, and I can't fix this. I tried this code (skript):
I DON'T GET ERRORS, BUT IT DOESN'T WORK:
on click on skull:
if click type is mouse button:
cancel event
I GET ERROR THAT 2ND LINE CAN BE USED IN GUIs:
on click on skull:
if event-click action is middle mouse button:
cancel event
Thank you so much!
I DON'T GET ERRORS, BUT IT DOESN'T WORK:
on click on skull:
if click type is mouse button:
cancel event
I GET ERROR THAT 2ND LINE CAN BE USED IN GUIs:
on click on skull:
if event-click action is middle mouse button:
cancel event
Thank you so much!