Overall code could be a little better, ill give you suggestions when I get home.
In terms of showing up in the local scripts, how are you saving it?
Have you tried exporting it as a jar and placing it in there, 1kb seems a little small, but it makes sense for such a small script?
Edit: Also, i dont think trees are entities, I think they are RS2Objects, correct me if im wrong though.