PlayerAPI
by NoName_
For Fabric, PlayerAPI is a library that runs only on the client and gives other mods a high-level way to act as the player, look up world state and perform automated actions that resemble human input.
What it does
Developers who build client mods can call PlayerAPI instead of writing their own low-level mixins for movement, inventory access and world queries. Rather than having each mod write its own low-level hooks, PlayerAPI serves as a common base: the same hooks are provided once, and mods can build player interaction, world lookups and automation on top of them.
PlayerAPI calls must be made on the main game thread. Its scheduler fires callbacks on that thread, and its events are built on Fabric's EventFactory.createArrayBacked pattern, so several mods can register listeners that all fire. The public events cover once-per-tick processing after the scheduler runs its due tasks, and chat handling for signed player messages, unsigned server messages and forwarded action bar messages.
The mod is required by Poseidon and needs YetAnotherConfigLib (YACL) at runtime. Mod Menu is optional. Files target only 1.21.11, with 1.8.0 as the latest Fabric build, published on 2026-05-07, after the first release on 2026-03-21. Source code is public, but the code is under All rights reserved, so it is not open source.
Key features
High-level player API
Movement, inventory and world queries are exposed through one interface that other mods can call.
Human-like automation
The API includes helpers for automated actions that resemble player input, for mods that drive the client.
Tick and chat events
Events fire once per game tick after the scheduler runs, and chat events cover signed player messages, unsigned server messages and action bar text.
Scheduled tasks
A scheduler runs queued callbacks on the main game thread, so calls made through it stay in sync with the game loop.
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
Requirements
Dependencies declared by the latest file for each loader.
Required 1
Optional 1
Required by 1 mod
Use cases
Mod developers
Mods that need player interaction or world queries can depend on PlayerAPI instead of maintaining their own mixins.
Automation mods
Client mods that perform repeated actions can use the human-like automation calls and the forced action hooks.
Who it’s for: Mod developers building client-side Fabric features on 1.21.11, and players who run mods that depend on PlayerAPI.
Questions
Does PlayerAPI need YetAnotherConfigLib (YACL)?
Does PlayerAPI have to be installed on the server?
Which Minecraft version does PlayerAPI support?
Which mod requires PlayerAPI?
In the catalog
PlayerAPI is one of 8,499 Technology mods on ModsFinder, and one of 4,201 Technology mods for Fabric. 19,862 mods support Minecraft 1.21.11.
More from NoName_
Similar mods
What the author says
A client-side Fabric library that exposes a clean, high-level API for player interaction, world querying, and human-like automation. Designed to be a shared foundation so other mods don't have to reimplement the same low-level mixins. PlayerAPI does nothing on its own. If you downloaded this, another mod you use…
Official listing
- Modrinth page
- modrinth.com/mod/playerapi
- Owner
- NoName_
- Published
- 2026-03-21
- Updated on Modrinth
- 2026-05-07
- Facts verified
- 2026-10-15
