Jump to content

How do I run a check to see which item/name of item the anvil renames?


Dieeeeeeeeeeeeee

Recommended Posts

If you want to block all items from being renamed, you can just not allow anvils to be used.

If you want to cancel only certain items, you can do something like this:

on anvil rename:
  if item is blaze rod, dirt, or stone:
    cancel event
    send "&cNot allowed" to player

Hope this helps!

If I have helped you out in your post or you liked what I posted, please upvote and react to my post! It helps me a lot!

Some Minehut Links:

Server Rules • Staff Applications • News & Updates • Reports • Appeals


Minehut: VIP (07/04/2021 --> Current)
Elestra/Versa Realms: Manager (12/04/2021 --> Current)

If you have any questions contact me!
My Discord: BanditEagle#2481
My Spigot Profile: https://www.spigotmc.org/members/banditeagle.935281/
My IGN: BanditEagle

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...