Registering Traits
Transform into a mob!
As of Woodwalkers 4, you can register traits per entity type yourself via datapacks!
data\<your_namespace>\walkers\traits
In this folder, you can create a JSON-file. I recommend naming it like minecraft_wolf.json if you’re registering a Trait for the minecraft:wolf or flying.json if you’re registering e.g. the FlyingTrait for multiple mobs.
{
"entity_types": [
"minecraft:wolf"
],
"entity_tags": [
"namespace:tag"
],
"traits": [
{
"type": "walkers:prey"
}
]
}
entity_types: A list of entity types, the specified traits should apply to. This doesn’t override already registered traits for the specified entity types.entity_tags: A list of entity tags, where the traits should apply.traits: The traits that should be applied to the entity types. Thetypespecifies the exact trait. you might require additional parameters. Take a look at the Traits for more details.
Note: You do not need to specify entity_types and entity_tags, one is enough.