5
2019
Reading Minecraft World into Unity (using Substrate)

Quick test for reading Minecraft worlds into unity.
Note: example code uses particle for each block, so it gets pretty slow.
Compile Substrate.dll:
– download this repository https://github.com/minecraft-dotnet/Substrate
– unzip, open Substrate-master\SubstrateCS\Substrate.sln
– Solution Explorer: Right click over Substrate (NET4), Set As Startup Project
– Select Release (from the configuration dropdown in toolbar, although default “Debug” works also)
– Press F5 to compile
– Should see message in output: “========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========”
– Go to the output folder (shown in the output window above that previous line)
– Copy “Substrate.dll” into your unity project, Assets/Plugins/Substrate/x64/ folder
– Note: You need to compile 64bit version (which should happen by default)
Minecraft:
– Start minecraft with 1.12.2 version (apparently substrate is designed up to that version?)
– Create new world, enter into it once, then can exit minecraft
Unity:
– Test with this script: https://gist.github.com/unitycoder/e0bb32b9d6ece0b4bde7be270e2e2a6f
– Add ParticleSystem into scene, then assign it to the script (see below for my particle system settings screenshot)
References / Resources:
– Block ID’s http://media.dinnerbone.com/uploads/2013-09/files/28_00-44-23_YfmAkomVI.txt
TODO
– Use mesh (instead of particles)
– Optimize..
– Load chunks-on-demand
– Add player
– Test with unity raytracing!




Related Posts
Leave a comment
Recent posts
- LudumDare59 : Signal
- Unity Editor: Tree Generator
- Leaf/Foliage Generator Tools (Runs in Browser)
- Testing Unity AI Beta
- Ways to Support UnityCoder Development
- Using UI Slider to Create 5-Star Rating Element
- Game Music Library For Unity (editor plugin)
- Fontastic : Easily Test Fonts in Unity Editor!
- GeoTiff Importer & Terrain Generator for Unity
- Create Baked DropShadow for UI images
- .JP2 Ortho Image Converter to PNG/JPG/TIFF
- Convert LAS/LAZ/PLY pointclouds to GLTF (GLB) Point Meshes (standalone converter)
Recent Comments
- on Sprite Sheet Flip Book Shader
- on Sprite Sheet Flip Book Shader
- on [Asset Store] PolygonCollider2D Optimizer
- on Trajectory Test Scene 2.0
- on Vector3 maths for dummies!
- on UnityHub 3.6.0: Remove Version Control & Cloud Dashboard columns
- on Using RenderDoc with Unity (graphics debugger)
- on UI Scroll View automatic Content height
Coin:
CUgDSbRqFcAumDSAcdKDvuXsw26VdkJe8C8WGUQHBAGS
An article by











