GarlicBread Posted March 11, 2020 Posted March 11, 2020 I've been moving my mod from 1.12.2 to 1.15.2, and I've recently come across an issue with rendering models in game, the model would not show up and would show a pink and blank box instead. I've been following a tutorial online for implementing 3d models, but I can't figure out where I went wrong. As far as I know, a 3d model's blockstate and .json should be the blocks registry name. Help would be appreciated! horse_block.jsonFetching info... horse_block.jsonFetching info... RegistryEvents.javaFetching info... Quote
Ugdhar Posted March 11, 2020 Posted March 11, 2020 Post logs please, and preferrably set your project up on github, makes it easier to view. Quote
GarlicBread Posted March 11, 2020 Author Posted March 11, 2020 There are no logs since it isnt throwing an error, instead the game renders the model like this: Quote
GarlicBread Posted March 11, 2020 Author Posted March 11, 2020 My bad, I thought you were referring to crash logs. Here's latest.log, I tried fiddling with it seeing the error came from the texture not being valid, but im not quite sure why it's showing up as invalid as the texture exists and is in the path. Is the formatting wrong? latest.logFetching info... Quote
Ugdhar Posted March 11, 2020 Posted March 11, 2020 On 3/11/2020 at 11:07 AM, GarlicBread said: There are no logs Expand There are /always/ logs. Quote
Ugdhar Posted March 11, 2020 Posted March 11, 2020 Quote [11Mar2020 17:04:50.245] [Server-Worker-2/WARN] [net.minecraft.client.renderer.model.ModelBakery/]: Unable to load model: 'moneera_mod:block/horse_block' referenced from: moneera_mod:horse_block#facing=north: com.google.gson.JsonParseException: moneera_mod:block/biral khao is not valid resource location Expand what is moneera_mod:block/biral khao? The error below that in the log is it being unable to find your item model. This is why it's good to have a github of your whole project, it's hard not seeing the whole picture (i.e. project layout, package structure, etc) Quote
GarlicBread Posted March 11, 2020 Author Posted March 11, 2020 I see I've uploaded the project on github here. moneera_mod:block/biral khao is the custom texture I'm using for the block. It worked fine in 1.12.2, but after switching to 1.15.2 it seems like something's gone wrong... Quote
GarlicBread Posted March 11, 2020 Author Posted March 11, 2020 On 3/11/2020 at 11:35 AM, diesieben07 said: Resource locations must not contain spaces. Expand Thanks, I wasn't aware of that. Refactoring solved the issue. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.