Global Power Set
This is the format of a JSON file describing a global power set. Global power sets are sets of powers that are granted to entities globally with the origins:global power source. It can also be filtered so that the set of powers will only be granted to certain entities of certain type or entities included in a certain entity type tag.
Global Power Set JSON files need to be placed inside the data/<namespace>/origins/global_powers folder of a data pack.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
entity_types | Entity Type or #Tag | optional | If specified, the specified powers will only be granted to entities that fulfill this tag-like specifier. |
powers | List of Identifiers | The ID(s) of the power(s) to grant to entities globally. |
Examples
{
"powers": [
"origins:damage_from_snowball"
]
}
This example will grant the origins:damage_from_snowball power to all entities.
{
"entity_types": [
"#minecraft:skeletons",
"minecraft:creeper"
],
"powers": [
"origins:arcane_skin",
"origins:like_water"
]
}
This example will apply the origins:arcane_skin and origins:like_water powers to Creepers and entities that are included in the #minecraft:skeletons entity type tag.