Terraria.ModLoader.ModTree

This class represents a type of modded tree. The tree will share a tile ID with the vanilla trees (5), so that the trees can freely convert between each other if the soil below is converted. This class encapsulates several functions that distinguish each type of tree from each other. Use ModTile.SetModTree or GlobalTile.AddModTree to make a tile able to grow this kind of tree.

Methods

CreateDust()
Return the type of dust created when this tree is destroyed. Returns 7 by default.
GrowthFXGore()
Return the type of gore created to represent leaves when this tree grows on-screen. Returns -1 by default.
CanDropAcorn()
Whether or not this tree can drop acorns. Returns true by default.
DropWood()
The ID of the item that is dropped in bulk when this tree is destroyed.
GetTexture()
Return the texture that represents the tile sheet used for drawing this tree.
GetTopTextures(System.Int32,System.Int32,System.Int32@,System.Int32@,System.Int32@,System.Int32@,System.Int32@)()
Return the texture containing the possible tree tops that can be drawn above this tree.
GetBranchTextures(System.Int32,System.Int32,System.Int32,System.Int32@)()
Return the texture containing the possible tree branches that can be drawn next to this tree. The trunkOffset parameter can be added to i to get the x-coordinate of the tree's trunk.