Fire was a thing introduced in version 1.2.

fire will happen when a campfire is put right under a tree branch, wooden bed, and other wooden items. it will take some time for it to burn. Different trees burn at different rates. The fire will also burn wood and vine???? after about 15 seconds the leaves will disappear.