Skip to content

codingwatching/CornModel

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CornModel

A Minecraft Model Reader for Unity written in C#.

Important!

This project is archived. The resource loader code and block shaders are packed and moved to CraftSharp-Resource as a Unity package, and the resource test scene(shown in the screenshots) is incorporated into the main project here.

> About

CornModel is a Minecraft resource loader which can be easily merged into and used by other Minecraft-related Unity projects. It parses Minecraft: Java Edition's json model format, reads models from json files and builds them into geometry data. For block models, face-culling data is contained in the loaded geometry data, so it is possible to build optimized large chunks of block meshes with all hidden faces culled.

> Building & Running

The program is made and tested with Unity 2022.3.50f1, so it is recommended to use this version(or newer) of Unity to build this app.

Resource files will now be automatically downloaded if they're not present, so manual downloading is no longer necessary.

> License

Most code in this repository is open source under CDDL-1.0, and this license applies to all source code except those mention their author and license or with specific license attached.

Some other open-source projects/code examples are used in the project, which don't fall under CDDL-1.0 and use their own licenses. Here's a list of them:

The full CDDL-1.0 license can be reviewed here.

> Screenshots

Screenshot 1 Screenshot 2

About

A Minecraft Model Reader for Unity

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • ShaderLab 54.6%
  • C# 35.9%
  • HLSL 9.5%