EOrigins API
Datapack-first ability framework

Build powers.
Keep characters in JSON.

Reusable combat geometry, model VFX, character attachments, projectiles, timelines and storage for Forge Origins—without hardcoding each character into the mod.

EAPI 0.16.0Minecraft 1.20.1Forge 47.4.10Java 17GeckoLib 4.8.4
No section matches that search.
Start here

What EOrigins API does

EOrigins API adds general-purpose Origins/Apoli factories. Your datapack defines the character, timing, damage and conditions; EAPI supplies synchronized visuals and safe reusable mechanics.

Datapack-owned gameplay

Abilities remain ordinary power JSON and functions. EAPI does not contain Gojo, Sukuna or another character’s combat logic.

Reusable presentation

Spawn GeckoLib models or configurable boxes, beams, walls and cubes. Attach cosmetics to posed body parts.

Bounded runtime

Zones, timelines, projectiles, VFX and storage use explicit caps and avoid chunk tickets or permanent markers.

39
entity actions
19
bi-entity actions
19
entity + bi-entity conditions
Separation ruleA visual definition cannot damage entities, search targets or modify blocks. Pair presentation with an Apoli gameplay action such as for_each_entity_in_box.
Setup

Installation

  1. Install EOrigins API, Origins Forge, Apoli, Calio and GeckoLib in the server’s mods folder.
  2. Install the same required mods on every client. Rendering and synchronized attachments are client-side too.
  3. Place the Origin datapack in world/datapacks/.
  4. Put custom VFX assets in a client resource pack. Bundled primitives and examples need no extra pack.
  5. Restart after changing mods; use /reload for datapack-only edits.
DependencyTargetLocation
Minecraft1.20.1Client + server
Forge47.4.10Client + server
Origins Forge1.10.0.9Client + server
Apoli Forge2.9.0.8Client + server
Calio Forge1.11.0.5Client + server
GeckoLib Forge4.8.4Client + server
Java17Runtime
Basics

Your first EAPI power

Factories use the eorigins_api: namespace inside ordinary Origins JSON.

data/example/powers/cyan_cube.json
{
  "type": "origins:active_self",
  "key": { "key": "key.origins.primary_active" },
  "entity_action": {
    "type": "eorigins_api:spawn_vfx",
    "vfx": "eorigins_api:primitive_box",
    "duration_ticks": 30,
    "forward_offset": 3.0,
    "vertical_offset": 1.0,
    "visual": {
      "scale": [1.0, 1.0, 1.0],
      "color": [0.1, 0.85, 1.0, 1.0],
      "render_type": "solid",
      "fullbright": true
    }
  }
}

Add example:cyan_cube to the Origin’s powers array. Namespaced slot values are owner-local handles used to replace, cancel or inspect running effects.

Presentation

Model and primitive VFX

spawn_vfx creates a synchronized temporary visual. Use eorigins_api:primitive_box for a colored cuboid with no custom model or resource pack.

Aimable purple beam
{
  "type": "eorigins_api:spawn_vfx",
  "vfx": "eorigins_api:primitive_box",
  "slot": "example:purple_beam",
  "replace_existing": true,
  "duration_ticks": 20,
  "forward_offset": 8.0,
  "vertical_offset": 1.0,
  "use_view_pitch": true,
  "follow_entity": false,
  "rotate_with_entity": false,
  "should_collide": false,
  "visual": {
    "scale": [0.75, 0.75, 16.0],
    "color": [0.65, 0.08, 1.0, 0.82],
    "render_type": "translucent",
    "fullbright": true
  }
}
FieldPurposeDefault / range
vfxNamespaced visual ID.Required
slotOptional owner-scoped lifecycle handle.None
duration_ticksServer lifetime.20; 1–72000
forward/side/vertical_offsetLocal placement in blocks.0; −128–128
use_view_pitchUse vertical aim for placement and orientation.false
follow_entityRecalculate position from owner.false
rotate_with_entityKeep orientation attached after spawn.false
visual.scaleXYZ scale; primitive values are block dimensions.Definition value
visual.colorNormalized RGB or RGBA.Definition value

Render types

solid is opaque. translucent supports alpha and writes depth. translucent_emissive is a depthless overlay.

Lifecycle

Use cancel_vfx, cancel_all_vfx and vfx_active. Named replacement is useful for charge stages.

Clouds and transparencyFor glowing transparent beams that clouds should not draw over, prefer translucent with fullbright: true. Large transparent effects can still sort roughly against water or ice.
Gameplay geometry

Matching hitboxes and colliders

Primitive VFX, rectangular attack queries and physical colliders can share the exact same [width, height, local-Z length] dimensions and placement values.

Attack hitbox

for_each_entity_in_box performs an exact oriented query and runs a bi-entity action on every matched target.

Physical structure

should_collide: true turns primitive VFX into an oriented temporary entity collider. It defaults to false.

Aligned visual + damage box
{
  "type": "origins:and",
  "actions": [
    {
      "type": "eorigins_api:spawn_vfx",
      "vfx": "eorigins_api:primitive_box",
      "duration_ticks": 6,
      "forward_offset": 8.0,
      "vertical_offset": 1.0,
      "use_view_pitch": true,
      "visual": {
        "scale": [0.75, 0.75, 16.0],
        "color": [0.65, 0.08, 1.0, 0.85],
        "render_type": "translucent",
        "fullbright": true
      }
    },
    {
      "type": "eorigins_api:for_each_entity_in_box",
      "dimensions": [0.75, 0.75, 16.0],
      "forward_offset": 8.0,
      "vertical_offset": 1.0,
      "use_view_pitch": true,
      "limit": 64,
      "bientity_action": {
        "type": "eorigins_api:damage_target",
        "damage_type": "minecraft:player_attack",
        "amount": 8.0
      }
    }
  ]
}
Collider is not an attackshould_collide only blocks movement. Damage belongs in a query/action. Colliders do not place blocks, add mob pathfinding data or force-load chunks.
Character visuals

Visual attachments

visual_attachment renders GeckoLib VFX on a posed player body part without armor stands, equipped items or character-specific Java.

Conditional blindfold
{
  "type": "eorigins_api:visual_attachment",
  "slot": "example:face_accessory",
  "vfx": "eorigins_api:attachments/blindfold",
  "anchor": "head",
  "offset": [0.0, 0.1875, 0.0],
  "rotation": [0.0, 0.0, 0.0],
  "priority": 10,
  "show_in_first_person": false,
  "render_when_invisible": false,
  "visual": {
    "scale": [1.05, 1.05, 1.05],
    "color": [0.035, 0.035, 0.05, 1.0],
    "render_type": "cutout_no_cull",
    "fullbright": false
  },
  "entity_condition": {
    "type": "origins:power_active",
    "power": "example:cosmetic_toggle"
  }
}

Anchors: root, head, body, back, left_arm, right_arm, left_leg, right_leg. Higher priority wins when powers compete for the same owner-local slot.

Bundled exampleseorigins_api:attachments/blindfold is static; eorigins_api:attachments/wheel is animated.
Persistent areas

Timed zones

start_zone owns a bounded fixed or following area, tracks membership and fires enter/stay/exit actions without marker entities.

Domain-like zone
{
  "type": "eorigins_api:start_zone",
  "slot": "example:domain",
  "duration_ticks": 400,
  "interval": 10,
  "replace_existing": true,
  "placement": {
    "forward_offset": -7.0,
    "follow_entity": false
  },
  "query": {
    "radius": 32.0,
    "limit": 128,
    "shape": "sphere",
    "sort": "nearest",
    "include_self": false
  },
  "actions": {
    "enter_action": { "type": "example:entered" },
    "stay_action": { "type": "example:stayed" },
    "exit_action": { "type": "example:exited" }
  }
}

Use cancel_zone and zone_active for control. Fixed zones snapshot their center; following zones recalculate it from the owner.

Reliable travel

Managed spell projectiles

A managed projectile is an invisible server-owned anchor with swept collision. Callbacks provide VFX, trails, damage and block effects.

Spell anchor
{
  "type": "eorigins_api:launch_managed_projectile",
  "slot": "example:spell",
  "speed": 1.5,
  "lifetime_ticks": 100,
  "hitbox_radius": 0.35,
  "gravity": 0.0,
  "drag": 1.0,
  "max_entity_hits": 1,
  "stop_at_blocks": true,
  "require_owner": true,
  "actions": {
    "entity_action_on_tick": { "type": "example:trail" },
    "bientity_action_on_entity_hit": { "type": "example:hit_target" },
    "entity_action_on_block_hit": { "type": "example:block_impact" },
    "entity_action_on_expiry": { "type": "example:expire" },
    "entity_action_on_cancel": { "type": "example:cleanup" }
  }
}

Use cancel_managed_projectiles, action_on_managed_projectiles, managed_projectile and managed_projectile_count. Unloaded or out-of-border travel cancels safely.

Sequencing

Cancellable timelines

Use a named timeline for charges, animations or multi-stage abilities that must be cancellable and clean up predictably.

Three-stage ability
{
  "type": "eorigins_api:start_timeline",
  "slot": "example:ability",
  "replace_existing": true,
  "cancel_on_dimension_change": false,
  "continue_while": { "type": "example:ability_still_valid" },
  "steps": [
    { "at_tick": 0, "entity_action": { "type": "example:start" } },
    { "at_tick": 10, "entity_action": { "type": "example:frame" } },
    { "at_tick": 30, "entity_action": { "type": "example:impact" } }
  ],
  "entity_action_on_completed": { "type": "example:cleanup" },
  "entity_action_on_canceled": { "type": "example:cleanup" }
}

Ticks are absolute. Same-tick steps retain JSON order. Death/logout cancels, replacement runs old cleanup first, and continue_while is checked each tick.

Counters and parries

Guarded combat interception

Own an inert combat_interceptor power, then arm a named guard window. A matching incoming hit can be canceled and routed through victim, attacker and direct-source reactions.

Interceptor power
{
  "type": "eorigins_api:combat_interceptor",
  "slot": "example:counter",
  "priority": 0,
  "cancel_damage": true,
  "consume_charges": 1,
  "allow_environmental": false,
  "self_action": { "type": "example:on_block" },
  "reverse_bientity_action": { "type": "example:victim_to_attacker" },
  "reverse_direct_bientity_action": { "type": "example:victim_to_projectile" }
}
Arm for ten ticks
{
  "type": "eorigins_api:arm_combat_guard",
  "slot": "example:counter",
  "duration_ticks": 10,
  "charges": 1
}
Projectile cleanupUse eorigins_api:discard_projectile on a direct source. Generic discard can delete a melee attacker because the attacker is also the direct source.
General toolkit

Targeting, storage and movement

Entity queries

Select bounded targets by radius, view, cone, line or box while retaining actor attribution.

Stored entity sets

Collect, add, remove, iterate and test persistent per-owner relationships using namespaced slots.

Counters and checkpoints

Store expiring per-target integers and positions, plus owner checkpoints for domains and teleports.

Directed movement

Push, pull, swap or safely teleport an actor relative to a target.

Entity relations

Resolve owners, vehicles, passengers, leash holders, AI targets and recent damage sources.

Attributed damage

damage_target and scaled_damage_target preserve the actor as damage source.

New in 0.16.0

Grant, revoke and suppress powers

Datapacks can now give powers temporarily or permanently and disable a character’s entire power set without commands. Entity actions affect the current entity; bi-entity variants apply the same operation to the target.

Power copying

grant_power and grant_power_to_target add an exact power/source pair. Set duration_ticks to a positive lifetime, or use 0 for a grant that remains until revoked.

Domain suppression

suppress_all_powers and suppress_all_powers_on_target snapshot and remove top-level powers, including powers granted while suppression is active, then restore them safely.

Temporarily grant a copied power to the target
{
  "type": "eorigins_api:grant_power_to_target",
  "power": "example:copied_technique",
  "source": "example:copy_ability",
  "duration_ticks": 600
}
Suppress a domain target, then allow automatic restoration
{
  "type": "eorigins_api:suppress_all_powers_on_target",
  "duration_ticks": 620
}
OperationSelf actionTarget action
Grant exact power/source pairgrant_powergrant_power_to_target
Revoke exact power/source pairrevoke_powerrevoke_power_from_target
Suppress all powerssuppress_all_powerssuppress_all_powers_on_target
Restore snapshot nowrestore_all_powersrestore_all_powers_on_target
Safe restorationSuppression restores on expiry or an explicit restore action. EAPI also handles death, logout, dimension changes and server shutdown, and keeps a persistent recovery snapshot for an interrupted server.
Source IDs matterUse a unique, stable namespaced source for each granting mechanic. Revocation removes the matching power/source pair; it does not remove unrelated copies of the same power.
Reference

Factory index

Prefix every ID below with eorigins_api:.

GoalFactories
World VFXspawn_vfx, cancel_vfx, cancel_all_vfx, vfx_active
Character cosmeticsvisual_attachment power
Spatial zonesstart_zone, cancel_zone, zone_active
Geometry queriesfor_each_entity_in_cone, for_each_entity_in_line, for_each_entity_in_box, for_each_entity_around_target
Entity collectionfor_each_entity, entity_field, entity_count_in_range, action_on_entity_in_view
Entity setscollect_entities, action_on_entity_set, clear_entity_set, add_to_entity_set, remove_from_entity_set, target_in_entity_set, entity_set_size
Target countersmodify_target_counter, target_counter, clear_target_counter, clear_target_counters
Positionsstore_position, teleport_to_stored_position, matches_stored_pose, store_target_position, teleport_target_to_stored_position
Movementpush_target_away, pull_target_toward, teleport_actor_relative_to_target, swap_positions
Damagedamage_target, scaled_damage_target
Relationsaction_on_relation, has_relation, entity_relation
Projectile ownershipprojectile, projectile_has_owner, action_on_projectile_owner, projectile_owned_by_actor, set_projectile_owner, clear_projectile_owner, discard_projectile
Spell projectileslaunch_managed_projectile, cancel_managed_projectiles, action_on_managed_projectiles, managed_projectile, managed_projectile_count
Timelinesstart_timeline, cancel_timeline, cancel_all_timelines, timeline_active
Combat guardscombat_interceptor power, arm_combat_guard, clear_combat_guard, combat_guard_active
Power controlgrant_power, revoke_power, suppress_all_powers, restore_all_powers, plus the _to_target, _from_target and _on_target bi-entity variants
Operations

Diagnostics

Inspect query cost and active runtime state without exposing raw UUIDs.

Commands
/eapi status
/eapi debug queries
/eapi debug storage <player>
/eapi debug combat <player>
/eapi debug projectiles <player>
/eapi debug timelines <player>
/eapi debug zones <player>
/eapi debug vfx <player>
/eapi debug reset
/eapi vfx spawn <id> [duration_ticks]
Expected 0.16.0 status39 entity actions, 14 entity conditions, 19 bi-entity actions, 5 bi-entity conditions and 2 power factories.
Custom assets

GeckoLib resource layout

For example:charged_aura, place these files in a client resource pack. The definition connects the logical VFX ID to the model, texture and animation.

Resource tree
assets/example/eorigins/vfx/charged_aura.json
assets/example/geo/vfx/charged_aura.geo.json
assets/example/animations/vfx/charged_aura.animation.json
assets/example/textures/vfx/charged_aura.png
charged_aura.json
{
  "backend": "geckolib",
  "model": "example:geo/vfx/charged_aura.geo.json",
  "texture": "example:textures/vfx/charged_aura.png",
  "animation": "example:animations/vfx/charged_aura.animation.json",
  "animation_name": "animation.charged_aura.idle",
  "loop": true,
  "render_type": "translucent",
  "fullbright": true,
  "scale": [1.0, 1.0, 1.0],
  "offset": [0.0, 0.0, 0.0],
  "rotation": [0.0, 0.0, 0.0],
  "color": [1.0, 1.0, 1.0, 1.0],
  "shadow_radius": 0.0
}

Bundled IDs

  • eorigins_api:primitive_box — cube, beam, slab, panel or wall.
  • eorigins_api:malevolent_shrine — bundled Java-model bridge example.
  • eorigins_api:incomplete_malevolent_shrine — animated GeckoLib example.
  • eorigins_api:attachments/blindfold and attachments/wheel — reusable character attachments.