Editing Creating Custom Blocks
From Eco - English Wiki
Your changes will be displayed to readers once an authorized user accepts them. (help)
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
This page will walk you through the basics of adding custom blocks to Eco utilizing the Glass models found already in the game to make a Green Stained Glass block. A completed tutorial can be [https://github.com/StrangeLoopGames/EcoModKit/tree/examples/Examples/Blockset here] as well as the asset files needed to complete this tutorial. | This page will walk you through the basics of adding custom blocks to Eco utilizing the Glass models found already in the game to make a Green Stained Glass block. A completed tutorial can be [https://github.com/StrangeLoopGames/EcoModKit/tree/examples/Examples/Blockset here] as well as the asset files needed to complete this tutorial. | ||
https://github.com/StrangeLoopGames/EcoModKit/tree/ | |||
https://github.com/StrangeLoopGames/EcoModKit/tree/examples/Examples/Blockset | |||
== Initial Scene Setup == | == Initial Scene Setup == | ||
Eco has special naming requirements for GameObjects within the mod scene. For blocks this involves a empty GameObject with the name "Blocks" and a BlockSetContainer attached. This object will contain all BlockSets used by your mod. | Eco has special naming requirements for GameObjects within the mod scene. For blocks this involves a empty GameObject with the name "Blocks" and a BlockSetContainer attached. This object will contain all BlockSets used by your mod. | ||
[[File:BlockSetContainerStructure.png|none|thumb|542x542px]] | [[File:BlockSetContainerStructure.png|none|thumb|542x542px]] | ||
== Creating your BlockSet == | == Creating your BlockSet == | ||
== Creating your first BlockBuilder == | == Creating your first BlockBuilder == | ||
== Common Bugs == | == Common Bugs == | ||
Below are a list of common bugs encountered while making custom blocks and how to solve them. | Below are a list of common bugs encountered while making custom blocks and how to solve them. | ||
==== My block does not appear using the right mesh or in the spot I placed it. ==== | ==== My block does not appear using the right mesh or in the spot I placed it. ==== | ||
This should be automatically handled in 9.4's ModKit. However if the issue is still present uncheck the "Optimize Mesh Data" option inside Unity's Player Settings prior to exporting the mesh. | This should be automatically handled in 9.4's ModKit. However if the issue is still present uncheck the "Optimize Mesh Data" option inside Unity's Player Settings prior to exporting the mesh. | ||
[[File:OptimizeMeshData-Unity-PlayerSettings.png|none|thumb|462x462px]] | [[File:OptimizeMeshData-Unity-PlayerSettings.png|none|thumb|462x462px]] | ||
==== My block is changing changing between my material and a different material ==== | ==== My block is changing changing between my material and a different material ==== | ||
This usually is caused by a conflicting name with a material inside the client. If this happens a simple rename of the material should resolve this. This is also true with similar issues relating to the block mesh. | This usually is caused by a conflicting name with a material inside the client. If this happens a simple rename of the material should resolve this. This is also true with similar issues relating to the block mesh. | ||