grow birch tree

  • 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!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Mattllama987

Active Member
Aug 5, 2018
225
7
18
24
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:
options:
    birch: 1
function birch(block: block, stage: integer):
    if {_block} is birch sapling:
        add 1 to {_stage}
        if {_stage} is 9:
            broadcast "1"
            grow birch tree at {_block}
            broadcast "2"
        else:
            set block at location of {_block} to birch sapling
            wait "%random number between 1 and {@birch}% seconds" parsed as timespan
            birch({_block}, {_stage})

on place:
    if player's held item is birch sapling:
        wait "%random number between 1 and {@birch}% seconds" parsed as timespan
        birch(event-block, 1)
 
Status
Not open for further replies.