• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

Need help , loading 3D models

Blackmadman

New member
Hello, maybe someone can help me.
I would like to have the 3D models loaded from a mod pack that the players download for my own mod on my server.
What do I have to change here?
<property name="Model" value="#@modfolder:Resources/Test.unity3d" />
Mod/folder name on the server is Test_01, the mod/folder name the players download is also Test_01.
Any help would be appreciated.

 
The mod folder structure is set up the same was as any other;

Mod Folder (Root mod folder)

-Test01 (The mods folder)

--Modinfo.xml

--Config

--Resources (The .unity3d file goes in here)

--UIAtlases

---ItemIconAtlas

In the blocks.xml, the specific line that I think you are looking for is the Model property;

<property name="Shape" value="ModelEntity"/>
<property name="Model" value="#@modfolder:Resources/Test01.unity3d?Test01Prefab"/>




Test01.unity3d is the file exported from unity, Test01Prefab is the name of the prefab inside of the .unity3d file, you can have multiple prefabs in the same unity3d file if you want to.

If you want the block to have a custom icon, you can add an image into the ItemIconAtlas, the below line will tell the block to use it; (I like adding custom icons, you don't need to for the block to work).

<property name="CustomIcon" value="Test01Icon"/>






Edit: Just to add, you can name the mods folder whatever you like, it doesn't need to match up with the names of anything else. The game will use the mods name in the Modinfo.xml file rather than the folder name.

 
Last edited by a moderator:
Back
Top