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.

grow birch tree

Discussion in 'Skript' started by Mattllama987, Oct 28, 2020.

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

    Mattllama987 Active Member

    Joined:
    Aug 5, 2018
    Messages:
    225
    Likes Received:
    7
    Not a whole lot to say. Why doesnt the tree grow? I tried with a oak tree, and it worked. Birch isnt working for me. If anyone knows what the problem might be, please let me know.

    Thanks!
    ~Matt


    Code (Text):
    1. options:
    2.     birch: 1
    3. function birch(block: block, stage: integer):
    4.     if {_block} is birch sapling:
    5.         add 1 to {_stage}
    6.         if {_stage} is 9:
    7.             broadcast "1"
    8.             grow birch tree at {_block}
    9.             broadcast "2"
    10.         else:
    11.             set block at location of {_block} to birch sapling
    12.             wait "%random number between 1 and {@birch}% seconds" parsed as timespan
    13.             birch({_block}, {_stage})
    14.  
    15. on place:
    16.     if player's held item is birch sapling:
    17.         wait "%random number between 1 and {@birch}% seconds" parsed as timespan
    18.         birch(event-block, 1)
     
Thread Status:
Not open for further replies.

Share This Page

Loading...