Overgrown's Sync

What is Sync?
Sync is a Fabric library that significantly expands the capabilities of the Apoli mod. This library backports certain features from newer versions of Apoli to Minecraft 1.20.1, while also adding completely new power types, conditions, and actions that can be utilized when creating datapacks for Origins and Apoli.
Main Features
Backported Features
The Sync library brings back the following important features to version 1.20.1:
- Entity Set (Power Type) - available through the
sync:entity_setnamespace - In Set (Bi-entity Condition) - used as
sync:in_set - Add to Set (Bi-entity Action) - applied through
sync:add_to_set - Remove from Set (Bi-entity Action) - available as
sync:remove_from_set - Set Size (Entity Condition) - used through
sync:set_size - Random Teleport (Entity Action) - available as
sync:random_teleport - Entity In Radius (Entity Condition) - applied through
sync:entity_in_radius
Unique Sync Features
Pose (Power Type)
{
"type":"sync:pose",
"pose":"standing",
"priority":0
}
This power type supports the following pose options in the pose field:
standing- standingfall_flying- fall flyingsleeping- sleepingswimming- swimmingspin_attack- spin attack
In Pose (Entity Condition)
{
"type": "sync:in_pose",
"pose":"spin_attack"
}
This condition accepts the same pose options as the Pose power type.
Model Flip (Power Type)
{
"type":"sync:model_flip"
}
Key Pressed (Entity Condition)
{
"type": "sync:key_pressed",
"key": "key.use",
"continuous": true
}
This condition supports all keybindings available in Origins and Apoli, including additional keybinds from the Origins Extra Keybinds mod.
Compatibility with Other Mods
Sync is fully compatible with other library mods. When AspectsLib is installed, the library adds additional capabilities:
Set Entity Aspects (Power Type)
{
"type": "sync:set_entity_aspects",
"aspects": {
"aspectslib:terra": 10,
"aspectslib:ignis": 5
}
}
This power type works with any aspects present in datapacks, but only when AspectsLib is installed.
Has Aspect (Entity Condition)
"condition": {
"type": "sync:has_aspect",
"aspect": "aspectslib:terra",
"min": 5,
"comparison": ">="
}
Sync automatically works with any mods that use Apoli, including Apoli itself and the main Origins mod.