Wiki 9Minecraft CraftStudio API 1.12.2, Wiki

CraftStudio API 1.12.2, — Reference

Entity & Block Integration

For developers, the API simplifies the process of registering and rendering custom assets.

Entities

To create an animated entity, developers implement the IAnimatedEntity interface. This allows the entity to hold an AnimationHandler and respond to triggers like walking, attacking, or idling. The ModelCraftStudio class replaces the standard ModelBase for these entities.

Blocks (TESR)

For blocks that require complex shapes or animations (like custom machinery or decorative furniture), the API supports Tile Entity Special Renderers (TESR). By linking a Tile Entity to a CraftStudio model, blocks can have moving parts that react to player interaction or internal logic.