Download FirEmerald's Block/Item model API — Minecraft Mods — MetaMods

FirEmerald's Block/Item model API

Active

Downloads

0

Last update

8 years ago
Client
Libraries

FirEmerald's Block/Item model API

This mod restores the ability to create block and item models directly through code, as was implemented before Minecraft version 1.8.

Main Features

Working with the API is organized similarly to the formats from version 1.7.10. You need to create your own renderer and register its instance for the selected block or item. Item renderers are typically ported with minimal changes, but for blocks you now need to use VertexBuffer functions. In the RenderUtils class, you'll find helper methods that can be used as examples for learning.

Usage Examples

The API source code includes two demonstration renderers. The first recreates most of the grass rendering code, preserving the color scheme of the item form but without smooth lighting and ambient occlusion. The second example is an item renderer ported from the Metroid Cubed 3 mod, which replaces the bow model with the powerbeam when held in hands, including charging animation (except for the energy effect at the front). This example demonstrates how to determine which hand the player is holding the item in, and how to render items using models created in programs like Techne and Tabula.

The developer hopes that this coremod and API will help revive interest in modding for versions 1.10.2 and above.

Project members
FirEmerald

FirEmerald

Created: 11 Nov 2016

ID: 37109