Optional_options: JSONLikeObjectReadonlyidentifierThe identifier of the trait.
Static ReadonlyidentifierThe identifier of the trait.
Static ReadonlytypesThe type identifiers that this trait is compatible with by default.
OptionalonCalled when the trait is added to an object.
OptionalonCalled when the trait is random ticked by the dimension.
OptionalonCalled when the trait is removed from an object.
OptionalonCalled when the trait is ticked by the dimension.
The details about the tick event.
Sets the probability of this trait being randomly ticked each tick.
The numerator of the probability fraction.
The denominator of the probability fraction.
Wether this trait should be randomly ticked this tick.
A factor to multiply the chance by. Default is 1.
True if the trait should be randomly ticked, false otherwise.
Creates a new instance of the trait.