Structure Gel API
ModdingLegacy's library simplifying structure generation (especially the jigsaw system), shipping Gel blocks and a creative-only Building Tool for structure builders.
📖 Introduction
Structure Gel API is a structure-generation library by ModdingLegacy. Its purpose is narrow and explicit: to simplify the developer side of creating generated structures, particularly ones that use the jigsaw system. The code is open and documented, and the team's own Dungeons Plus serves as a working open-source example of the API in use.
Despite being a library, it also ships in-game tools for the people actually building structures.
The Structure Gel Block is what gives the mod its name. It's a creative-mode block used to fill the inside of a structure: when the structure generates in-game, the gel is replaced with air, while genuine air is skipped over entirely. That distinction — 'clear this space' versus 'leave the existing terrain alone' — is what keeps natural terrain from intruding into a finished build. Like a structure void, you can walk through it, but unlike one, you can see it.
Each gel colour spreads differently, and placing gel while sneaking triggers its spreading mechanic. Red is the default: it spreads along the cardinal directions, replacing only air. Blue behaves like red but won't spread anywhere the sky is visible. Green adds diagonal spreading, letting it get around corners created by vines or complex geometry — at the cost of leaking outside your build if you're careless. Cyan combines green and blue (diagonal spread, sky-avoidant). Orange spreads a distance determined by how many you're holding when you place it, which is handy in open terrain. Yellow spreads only along the plane you're facing, making it ideal for sealing walls and window openings. Gel is removed with gunpowder, which triggers a chain reaction clearing all connected gels of the same type.
The Building Tool is a creative-only item found in the Structure Items creative tab. Right-click in the air to open its GUI, pick a mode from the radial menu, and use undo/redo (up to 32 saved actions), position selection, and block-state selection. Modes include Extend (detects the pattern on the face you clicked and continues it), Flood (fills air in the y-slice you clicked until it hits a border, then continues downward), Fill (select two corners and fill between them, with options to replace only specific blocks or build just a frame or hollow box), Line, Clone (copy and paste a region, with rotation, mirroring, and cut), Move, Clear, and Shape. Mode properties include Integrity (what fraction of blocks actually place), Replace (All, Air, or only the block you clicked), and Rotation / Mirror, which can be randomised.
Forge and NeoForge are supported.
🕒 When to Use This Mod
Loads automatically with any structure mod that requires it. The Building Tool and Gel blocks are for building structures in creative.
📦 Where It Matters Most
Packs containing structure mods that require it — Dungeons Plus being the clear case — and anyone actually authoring structures to ship.
🎮 How It Changes Your Playthrough
In normal play you never notice it exists. In creative, on a large build, the Building Tool's Fill, Clone, and Undo noticeably cut the work.
🚀 Getting Started — First 30 Minutes
As a player there is nothing to do. If it came with your pack, leave it alone.
If you intend to author structures, open the Structure Items creative tab and pull out the Building Tool and the Gel blocks. Right-click the tool in the air to open its GUI; hovering any element shows an explanation on the right.
The workflow is roughly: block out the structure with Fill, Clone, and Shape; fill the finished interior with Gel; then save it as a structure. On generation the gel becomes air while surrounding air is ignored, so no terrain intrudes into the build.
💡 Gameplay Tips
- Don't remove it. Structure mods that require it — Dungeons Plus, for one — fail at load without it.
- The Building Tool is creative-only. It's in the Structure Items creative tab; right-click in the air to open the GUI. Undo keeps up to 32 actions.
- Gel colours spread differently. Orange (distance set by how many you hold) for open terrain, yellow (planar only) for sealing walls and windows, blue when you're worried about leaking out to the sky.
- Gel is removed with gunpowder — it chain-removes every connected gel of the same colour at once.
⚠️ Common Confusing Points
- • Gel blocks are an authoring tool, not a gameplay feature. They have no effect on normal survival progression.
- • Not every structure mod requires it. Plenty use a different library (YUNG's API, for instance), so check the dependency list of the specific mod you care about.
❓ FAQ
Which mods require it?
The team's own Dungeons Plus lists it as a dependency, and the documentation points to it as the reference example. Other structure mods may use it too, but check the specific mod's dependency list rather than assuming.
What does the Gel block actually do?
It's an authoring block used to fill a structure's interior. When the structure generates, the gel is replaced with air while genuine air is skipped, which separates 'space that must be cleared' from 'existing terrain that must be left alone' — so natural terrain never intrudes into the build.
Why are there multiple gel colours?
Each spreads differently: red (default, cardinal directions), blue (avoids anywhere the sky is visible), green (adds diagonals), cyan (diagonals plus sky-avoidant), orange (spread distance set by how many you're holding), yellow (only along the plane you're facing). Sneak while placing to trigger the spread.
Can I use the Building Tool in survival?
No — it's a creative-mode-only item, found in the Structure Items creative tab. Right-click it in the air to open the GUI.