Origin Tag (Entity Condition Type)
Checks whether the player's origin carries one of the given tags, instead of naming origins by ID. Tag the origins once, and a condition written against the tag keeps working when a pack adds more of them.
Type ID: origins:origin_tag
note
This condition comes from the Origins mod. It only passes for players.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
tag | String or Array of strings | required | The tags to look for. The condition passes if the origin carries any of them. |
layer | Identifier | every layer | Only looks at the origin held on this layer. |
selection | Selection | main | Which origins are checked: the chosen one, the one swapped in, the player's pool, or all of them. It means the same as on origins:origin. |
Tagging an origin is a tags list in the origin's JSON:
{
"name": "super op origin",
"description": "TOO OP",
"tags": ["universeLevel"],
"icon": { "item": "minecraft:tnt" },
"powers": [],
"impact": 3
}Tags are plain strings, matched exactly and case-sensitively.
Examples
{
"type": "origins:origin_tag",
"tag": "universeLevel",
"inverted": true
}This passes for anyone whose origin isn't tagged universeLevel, which suits a power that only works on players below a certain tier.
{
"type": "origins:origin_tag",
"tag": ["undead", "construct"],
"selection": "all"
}This passes if any origin the player holds, whether chosen, swapped in or in their pool, carries either tag.