Wehavecookies56
Members-
Posts
33 -
Joined
-
Last visited
Everything posted by Wehavecookies56
-
[1.8] [SOLVED] B3D item model has no texture
Wehavecookies56 replied to Wehavecookies56's topic in Modder Support
I wonder why it is looking in models/block/ for the model have you tried placing the model in the block folder? -
[1.8] [SOLVED] B3D item model has no texture
Wehavecookies56 replied to Wehavecookies56's topic in Modder Support
In your .json file what did you specify as the path for the .b3d model as I just have "model": "kk:kingdomkey.b3d" and the model is placed in models/item/. -
[1.8] [SOLVED] B3D item model has no texture
Wehavecookies56 replied to Wehavecookies56's topic in Modder Support
Nope I assumed the normal item rendering way wouldn't work with this. -
[1.8] [SOLVED] B3D item model has no texture
Wehavecookies56 replied to Wehavecookies56's topic in Modder Support
Yes that is all correct -
[1.8] [SOLVED] B3D item model has no texture
Wehavecookies56 replied to Wehavecookies56's topic in Modder Support
Yes this one: https://github.com/RainWarrior/B3DExport -
[1.8] [SOLVED] B3D item model has no texture
Wehavecookies56 replied to Wehavecookies56's topic in Modder Support
Yeah the b3d exporter doesn't create a .mtl file so I assumed it wasn't needed. And I have done exactly that, the UV is setup and the texture is defined in the .json file. Which is why I am stumped on this. As I said the console shows no errors what so ever. The .json file definitely needs to be in the blockstates folder for the model to work though. -
[1.8] [SOLVED] B3D item model has no texture
Wehavecookies56 replied to Wehavecookies56's topic in Modder Support
I have the texture located in src\main\resources\assets\kk\textures\items\keyblades\ And the file is name kingdomkey.png I don't see anything wrong here adding .png to the json I don't think is necessary but doesn't work either way. The kingdomkey.json file is located in src\main\resources\assets\kk\blockstates\ If I copy it to src\main\resources\assets\kk\models\item\ it says "BlockModel requires either elements or parent, found neither". -
Edit: A new problem has appeared where I have a model that is using the wrong texture map. If I remove the textures, it errors suggesting that the textures are being loaded but not loaded. Edit2: I'm stupid the UV map was misplaced. I have an item using a b3d model which is working correctly other than the fact that it does not display a texture. I am not sure what is wrong here as the console does not show any errors. I am wondering if it has something to do with my model setup in Blender or something else. I am using this code in my ClientProxy which is run during the pre initialization (Reference.MODID's value is kk and Strings.KingdomKey's value is kingdomkey) B3DLoader.instance.addDomain(Reference.MODID); ModelLoader.setCustomModelResourceLocation(ModItems.KingdomKey, 0, new ModelResourceLocation(Reference.MODID + ":" + Strings.KingdomKey, "inventory")); Here's my blockstate json for my item (kingdomkey.json) { "forge_marker": 1, "defaults": { "textures": { "texture": "kk:items/keyblades/kingdomkey" }, "model": "kk:kingdomkey.b3d" }, "variants": { "inventory": [ { "transform": { "thirdperson": { "scale": 0.02 }, "gui": { "scale": 0.02 }, "firstperson": { "scale": 0.02 } } } ] } } Here's my texture (kingdomkey.png) And my UV map in Blender As you can see in this screenshot the model renders fine but it is missing the texture. The orientation's not right but that's not a problem. If anyone knows what the problem is I'd be grateful to know. I have spent many hours trying to get this to work. Also this is my first post on here so I hope I'm doing things right.