-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Yako edited this page Apr 28, 2021
·
2 revisions
Attach traits to a material using:
zentraits.TraitManager.attachTrait(String materialID, String traitID, @Optional String partType)
-
materialID
Name of the material -
traitID
Name of the trait -
partType
(Optional) which tool part the trait should be added to. If left empty the trait will be added as a default trait. Adding a trait to a part that had no part traits before will override the default trait. I.E. adding a trait to stone part would result in cheap being replaced by the new trait.
Detach traits from a material using:
zentraits.TraitManager.detachTrait(String materialID, String traitID, @Optional String partType)
-
materialID
Name of the material -
traitID
Name of the trait -
partType
(Optional) which tool part the trait should be removed from
Detach all traits from a material using:
zentraits.TraitManager.detachAllTraits(String materialID, @Optional String partType)
-
materialID
Name of the material -
partType
(Optional) which tool part the traits should be removed from
Dump information to the CraftTweaker log:
/ct ztdumpmats
/ct ztdumptraits