Skript Help

Discussion in 'Spigot Plugin Help' started by MyMonsterDK, May 28, 2016.

  1. Hey i'm just making a new funny skript but i have one problem i learn much but not all that stuff with example when player holding wheat:

    And all that stuff. Anyone can say what i need to make when player right click a iron_door:

    Or something
  2. joshwenke

    Wiki Team

    I'd be happy to help!

    A player holding wheat is a conditional. So something needs to trigger the code, then the conditional will be checked, and if it passes, you can have an action happen. That's the gist of how any code runs.

    So you could do this:
    Code (Text):

    on rightclick on iron door:
        if player is holding wheat:
            smite player
  3. That's what you want to happen with this event