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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

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

Solved Do something when sapling grows.

Discussion in 'Skript' started by Nikola, Mar 13, 2020.

Thread Status:
Not open for further replies.
  1. Nikola

    Nikola Member

    Joined:
    Jul 10, 2019
    Messages:
    38
    Likes Received:
    1
    Hi, is there any way to do something when sapling grows, for example check when oak sapling grows and then run some code. I really need your help, I'm making custom tree schematics and I just can't figure out how to check when sapling grows. Thanks!
     
  2. Lego_freak1999

    Lego_freak1999 Well-Known Member

    Joined:
    Jan 26, 2017
    Messages:
    664
    Likes Received:
    45
    u have skript mirror?
    --- Double Post Merged, Mar 13, 2020, Original Post Date: Mar 13, 2020 ---
    Oh nvm its in skript give me a sec to see how it works
    --- Double Post Merged, Mar 13, 2020 ---
    Code (Text):
    1. import:
    2.     org.bukkit.event.world.StructureGrowEvent
    3.     org.bukkit.TreeType
    4.  
    5. on StructureGrowEvent:
    6.     if event.getSpecies() = TreeType.TREE:
    7.         event.setCancelled(true)
    8.         #DO UR SHIT HERE
     
  3. Nikola

    Nikola Member

    Joined:
    Jul 10, 2019
    Messages:
    38
    Likes Received:
    1
    Fixed with simple
    Code (Text):
    1. on grow of oak:
    2.    #do stuff
    code. I'm so stupid :'D
     
Thread Status:
Not open for further replies.

Share This Page

Loading...