1. 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!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Prevent right clicking spawners with mob egg

Discussion in 'Requests' started by junebirds, Jan 14, 2020.

  1. junebirds

    junebirds Member

    Jan 14, 2020
    Likes Received:
    Category: ?

    Suggested name: {Skript}PreventMobEggSpawner

    Spigot/Skript Version: 1.15.1

    What I want:
    script that causes the cancelling of a right click event on any mob spawner if the player is holding any egg. I solved preventing the event from happening, but I'm having trouble with the game still outputting that I have successfully turned the spawner into a chicken spawner for example and would like help on getting rid of this

    Ideas for commands:
    none necessary

    Ideas for permissions:
    none necessary but a preventmobeggspawner.override would be nice

    When I'd like it by:

    #1 junebirds, Jan 14, 2020
    Last edited: Jan 14, 2020
  2. Vidrio_

    Vidrio_ Member

    Jan 6, 2020
    Likes Received:
    try this:
    on right click:
    if event block is "spawner":
    cancel event
    message "&cNOPE!"