跳到正文

FirEmerald’s Block/Item model API

作者:FirEmerald

Adds in the ability to use Block and Item models from code, like before 1.8

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

Adds in the ability to use Block and Item models from code, like before 1.8.

It’s used FAIRLY similar to the formats in 1.7.10 – You create you renderer, and register an instance of it with the Block/Item of your choosing.
Item renderers should be able to be ported with only a few tweaks, but block models must now be done using the VertexBuffer functions. You can find some helper methods in RenderUtils that you can use and learn from.

There are 2 example renderers at the API source.

One is a block renderer that recreates MOST of the render code for grass, saving the coloring of the item form and any sort of smooth lighting and ambient occlusion. I’ll update it with those if I ever figure out how to make them work.

The other is an item renderer ported from my Metroid Cubed 3 mod. It replaces the bow model when held with the powerbeam, complete with charging animation except for the energy bit at the front. It shows how you can tell if the item is being held in the left or right hand of the client player, and how to render an item using those models generated by utilities such as Techne and Tabula.

It is my hope that this coremod and API will help re-spark interest in modding for 1.10.2 and beyond.

常见问题

FirEmerald’s Block/Item model API 支持哪些 Minecraft 版本?

FirEmerald’s Block/Item model API 支持 Minecraft Java 版 1.10.2,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。

FirEmerald’s Block/Item model API 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

FirEmerald 的其他作品

查看全部 →