promotional bannermobile promotional banner

Structure Gel API

An API for simplifying the developer end of creating generated structures.
Back to Files

Structure Gel 26.1.2-v2.21.1

File namestructure_gel-26.1.2-2.21.1.jar
Uploaded
Aug 4, 2026
Downloads
17
Size
1.2 MB
Mod Loaders
NeoForge
File ID
8578618
Type
R
Release
Supported game versions
  • 26.1.2

Curse Maven Snippet

NeoForge

implementation "curse.maven:structure-gel-api-378802:8578618"

Learn more about Curse Maven

What's new

26.1.2-v2.21.1

General Changes

  • Added new fields to keep with Minecraft.

Spawner Minecarts

  • Now display the entity they will spawn and show particles (config setting).
  • Drop exp matching the amount dropped by a mob spawner block (config setting).
  • Spawn eggs may now be used to change the entity spawned by the minecart (config setting).

Data Handlers

  • Added a "Becomes" field in the GUI
    • Accepts a block state syntax argument
    • Sets what block the data handler will become when it generates. This always happens and will happen before the data handler's normal operation.
  • Fixed blocks with rotation block states being manually set not applying said rotation.
    • Rotation set manually will be offset based on the data handler's rotation.
  • Small GUI improvements.
  • The DataParser and DataMap have had some methods renamed.
    • Various add methods in DataParser.Builder have been renamed for better clarity: Ex add -> addInt
    • Adding values based on registry data now expects a ResourceKey by default. Passing null for the default value works properly.
    • Added DataMap.getOptional for direct object or ResourceKey references.

Data Handler: Entity

  • Updated to handle new equipment slots.

Data Handler: Villager

  • New data handler specifically for spawning villagers with the following fields:
    • Type: The villager type for the biome. If not specified, the biome it spawns in is used.
    • Profession: The profession of the villager. Zombie villagers are the only one currently able to use this properly.
    • Entity: A selection between Villager and Zombie Villager.

Data Handler: Dynamic Spawner and Spawner

  • Can place the spawner as a block (default) or a minecart.

Dynamic Spawners

  • The dynamic spawner system is now nested inside of mob spawners as a data attachment.
    • When the spawner loads, the dynamic spawner is loaded into it, overriding the spawner's settings.
    • Using a spawn egg on a spawner will remove the Dynamic Spawner data attachment.
  • This functions identical to the old dynamic spawner system, but instead uses the vanilla spawner for better mod compatibility.
  • Dynamic Spawner blocks still techically exist, but are no longer accessible in the creative inventory. Existing and new Dynamic Spawner blocks become vanilla spawners when they load.

Attachment Types

  • structure_gel:dynamic_spawner: Stores a single id:Identifier field for a registered DynamicSpawnerType.
    • Intended to be used on mob spawner blocks and minecarts. Can function on other entities/block entities if proper support is added.
  • structure_gel:exp_range: Stores a min and max Integer value with a distribution field for how the random value is calculated.
    • Intended to be used on Block Entities or Entities.
      • Special handling added for Minecart Spawners and other vehicles.
    • Two types of distribution exist: normalized and uniform. normalized is the default used by mob spawners.
    • Spawner Minecarts will have this attachment automatically. Can be disabled in the config.

Building Tool

  • The internal data storage for the building tool has changed. Old building tool data in your world save will likely no longer function due to several changes in how said data is stored. This includes:
    • Action history
    • Clipboard
  • Updated the palette render to display the block's particle texture if no suitable item is available.

GelPortalBlock

  • Moved several of the client-sided methods into GelPortalClientExtension
  • When placed from an item, places a full portal.

GelPortalClientExtension

  • Handles sounds and screen overlay effects generated by portals.
    • Registered during NeoForge's RegisterClientExtensionsEvent.
  • Automatically registers transition screens through NeoForge's RegisterDimensionTransitionScreenEvent.

Commands

  • /structure_gel can be shorthanded to /sg
  • Added /structure_gel gamerules <category>
    • Sets a variety of gamerules for testing worlds (advance time/weather, keep inventory, no wandering trader spawns, etc)
    • <category> can either be testing or building. testing covers a few basic rules while building is far more extensive and intended for structure building worlds
    • Gamerules can be reset with a clickable chat message for each one modified.
    • Some gamerules also automatically modify the world
      • advance_time sets the time to day if applicable
  • /fill, /clone, /setblock, and /place work with the building tool's action history and can be undone/redone.

RegisterArmorTrimTexturesEvent

  • Removed in favor of NeoForge's systems for handling paletted permutations across mods

RegisterTrimMaterialBrightnessEvent

  • New event specifically for handling armor trim light emission
    • Now allows handling sky light along with block light

This mod has no additional files