-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Importing mods models #457
Comments
From the error, it seems like the texture couldn't be found in the default resource pack (all vanilla textures). Modded blocks aren't supported at the moment, unless you add their textures with the proper name into the MCprep resource pack folder. |
Beside the mod stuffs, this also addressed something else. |
The exception is raised because MCprep checks textures based on block name, which in turn is derived from material name (there's also a JSON file for material names to blocks): As far as I can tell, JSON models should define textures anyway, so no need to mess with all global textures (which is overwritten during updates). Modded blocks however will always be a weird area because there's simply too many mods, so I think it's best if we don't support modded blocks explicitly (any support MCprep appears to have will entirely be unintentional) |
Yes, I'm aware of that and mentioned 2 things share the same code, one for block in vanilla and this, the thing is json importer shouldn't depend on the main global resource pack. The behavior before for json importer should be is can't find valid texture for json, leave it empty. So if the user know what that texture is manually reassign it. MCprep/MCprep_addon/spawner/mcmodel.py Line 113 in b741d2b
I wouldn't label it as modded block rather geometry that is in a correct json structure to import. Java modded blocks using the same system as what vanilla resourcepack no mod, if you look inside the mod resources it contains that similiar resourcepack assets path so. |
Ahh,
And let the user edit the material to have a texture. Sure, it means they'll have to be somewhat comfortable with nodes, but that's expected from Blender users anyway. It also means a user could use texture painting, if they so wished. |
This should import without raising error now so. Close. |
Did the issue happen after restarting Blender?
Check known issues
What happened?
When attempting to import a JSON model from mods (specifically from the mod "Create"), the following error was displayed:
https://drive.google.com/file/d/1lkH1f8-m7b3FOLLsRjINtaaXeNKfC89C/view?usp=sharing
What steps are needed to produce the bug?
2)Import .json model from mod
What version of MCprep are you using?
MCprep 3.4.3
What version of Blender are you using?
I tried to do this on different versions of Blender(3.3 - 3.6)
The text was updated successfully, but these errors were encountered: