```
on rightclick holding diamond axe:
if name of tool of player is "&cred_colored" or "&ablue_color" or "&aiamgreener":
if targeted block is log or plank:
cancel event
send "&cyou cant do that"
stop
```
Hi everyone, I found this script on google to prevent a player from using an edited diamond axe to shell out a tree log or planks, because if he did, there would be a bug that would dupe that axe. (So that script works very well!)
I'd like to know if anyone could and would do a free script similarly to prevent someone from putting a renamed enchanted_book (just like that axe on the example) into a grindstone (new minecraft container to remove book enchants). It is possible but I do not know the code in skript for this. Would someone help me please?
but I can not prevent the player from holding the book for example, because the book belongs to a plugin that when right-clicking the book holds the player opens a menu of options, a gui interface. I just wanted to prevent the player from getting this book into Grindstone because it would turn the book into an ordinary book, and this being a book that it takes through a plugin command it would have an endless farm of books.
I'm sorry but I'm completely lazy in javascript I have no idea how to do this. I would need the complete script from start to finish.
on rightclick holding diamond axe:
if name of tool of player is "&cred_colored" or "&ablue_color" or "&aiamgreener":
if targeted block is log or plank:
cancel event
send "&cyou cant do that"
stop
```
Hi everyone, I found this script on google to prevent a player from using an edited diamond axe to shell out a tree log or planks, because if he did, there would be a bug that would dupe that axe. (So that script works very well!)
I'd like to know if anyone could and would do a free script similarly to prevent someone from putting a renamed enchanted_book (just like that axe on the example) into a grindstone (new minecraft container to remove book enchants). It is possible but I do not know the code in skript for this. Would someone help me please?
but I can not prevent the player from holding the book for example, because the book belongs to a plugin that when right-clicking the book holds the player opens a menu of options, a gui interface. I just wanted to prevent the player from getting this book into Grindstone because it would turn the book into an ordinary book, and this being a book that it takes through a plugin command it would have an endless farm of books.
I'm sorry but I'm completely lazy in javascript I have no idea how to do this. I would need the complete script from start to finish.
Last edited: