make trees and items use spawn script; tweak the spawn function to return the item that was spawned