Blackmadman Posted June 7, 2023 Share Posted June 7, 2023 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. Link to comment Share on other sites More sharing options...
Ananais Posted June 7, 2023 Share Posted June 7, 2023 (edited) 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. Edited June 7, 2023 by Ananais (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now