StructurePlacerAPI
by Emafire003
StructurePlacerAPI is a Library for mod developers that places NBT structure files into a Minecraft world from their own code, through a single placement method.
What it does
A developer calls one method and passes the world, the structure's template name, the block position where it should appear, and optional settings. The template name is an identifier built from the developer's mod ID and the structure file's name. Optional parameters cover mirroring, rotation, skipping the entities saved in the file, and an offset that moves the structure relative to a position such as an entity's feet. Mirroring and rotation take the BlockMirror and BlockRotation classes, which a developer creates as separate objects.
The library also handles replacement and timing. A developer can name a block or a tag of blocks to replace, run a lambda after each block is placed, and set a delay before the terrain is restored. Structures that contain saved blocks can be used for animations, and the author notes that very large structures may affect performance. The API is server-side only and is open source under the CC0 1.0 Universal license. Fabric API is required, and the mod is published for Fabric, Forge, NeoForge and Quilt.
Key features
Placement from code
One call places an NBT structure at a given block position, with the world and template name as its first parameters.
Mirror and rotation
Optional parameters mirror the structure or rotate it, using the BlockMirror and BlockRotation classes.
Entity and offset control
A flag decides whether entities saved in the structure spawn, and an offset shifts its position.
Block replacement and timing
Developers can replace a chosen block or tag, run a lambda per block, and regenerate old terrain in a set order.
Compatibility
Latest build for each game version and loader.
26.x3 of 3 versions with builds
1.21.x12 of 12 versions with builds
1.20.x7 of 7 versions with builds
1.19.x3 of 3 versions with builds
Only full game releases are shown. This mod publishes no snapshot builds.
Requirements
Dependencies declared by the latest file for each loader.
Required 1
Required by 1 mod
Use cases
Who it’s for: Mod developers who want to place structure files in their own mods without writing the placement logic themselves. Server owners and players do not interact with the library directly.
How it compares
Easier World Creator (ewc) is open source under the MIT License, available for Fabric, NeoForge and Quilt 1.20 – 1.21.4, and can run on either the client or the server. Allow editing player`s nbt! is server-side only under the MIT License, with a Fabric build for 1.16 – 1.21.11 but no open source code.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| StructurePlacerAPI | Fabric, Forge, NeoForge and Quilt | 1.19 – 26.1.2 | Server-side only | 2026-04-12 |
| Easier World Creator (ewc) | Fabric, NeoForge and Quilt | 1.20 – 1.21.4 | Client or server, optional | 2025-05-26 |
| Allow editing player`s nbt! | Fabric | 1.16 – 1.21.11 | Server-side only | 2024-07-27 |
Questions
Does StructurePlacerAPI need Fabric API?
Does a player need StructurePlacerAPI installed?
Which game versions does StructurePlacerAPI support?
In the catalog
StructurePlacerAPI is one of 3,514 Library mods on ModsFinder, and one of 2,348 Library mods for Fabric. 15,189 mods support Minecraft 26.1.2.
More from Emafire003
Similar mods
What the author says
Yeah ok it's not that difficult. You just have to run that tho, not the.place method directly, since the load will also check for the existance of said structure before spawning it. to supply an amount of ticks ( 1 seconds = 20 ticks ) after which the old terrain will be restored. NOTICE: It could lead to performance…
Official listing
- Modrinth page
- modrinth.com/mod/structureplacerapi
- Owner
- Emafire003
- Published
- 2022-07-14
- Updated on Modrinth
- 2026-04-12
- Facts verified
- 2026-10-15