T-Dark
Members-
Posts
13 -
Joined
-
Last visited
Everything posted by T-Dark
-
Thank you very much, I'll try to understand the setCustomModelResourceLocation thing later. Sorry, I still have no idea what a ModelResourceLocation actually is, but I guess I'll figure that out. That aside (for now), what about the missing blockstate json (which, as far as I can see, is not missing, so I've no idea what is going wrong) and the ModelBlockDefinition$MissingVariantException? What could be causing them? As far as I understand, block models should get automatically registered along with the block itself, via the default IStateMapper. What am I missing?
-
In other words, I should move all the code in CommonProxy to TestMod, and register the item form of the block with that? How do I use that thing?
-
Ok, I'm now using the version that takes 2 strings. Still no success. The Item json and the blockstate json are not found, and I'm getting a net.minecraft.client.renderer.block.model.ModelBlockDefinition$MissingVariantException. ModBlocks class: BlockFurnace class CommonProxy class This is all I can find that has anything to do with the block. Still no success.
-
Thank you very much. The question now is: What do I need to do to let the game construct it's own registry name? Sorry for the stupid question, but I literally know nothing about Forge, and I'm having a hard time understanding the docs.
-
My spellings seem to be ok. That being said, what is the ModelRegistry? Is it the GameRegistry.ObjectHolder annotation? What should I be checking exactly? Here is the annotation And here is the block class Finally, does it help to know that I wrote this by following McJty's video tutorials?
-
Nope, the refresh did nothing to the game. it also messed up the folder structure Since we are talking about eclipse, is it in any way helpful if I say that sometimes eclipse shows a nullPointerException error message when I close a tab?
-
Oh! Thanks! Unfortunately, renaming the package does not fix the problem. testmod:models/item/furnace.json and testmod:blockstates/furnace.json are still not found. Sorry to take your time for what probably is a mispell on my part.
-
Yeah, but, as far as I can see, I do have it there. I'm using nov4e's jsons, unedited. The texture is a 16x16 pixels png made in paint.net. The error is the same. it can't find testmod:models/item/furnace.json and testmod:blockstates/furnace.json (in this order) even though they clearly exists.
-
Yup, replacing everything does not solve the problem. The full paths are "src/main/resources/asset/testmod/blockstates/furnace.json" and "src/main/resources/asset/testmod/models/item/furnace.json" (or .../models/block/furnace.json) Error message as follows It looks like it can't even find the files, regardless of actual content. In fact, I tried removing the whole asset package (and subpackages). Nothing changed in the error message.
-
Should I replace the entire json with just that? Because that still doesn't work
-
So the json should look like this? Because it still gives an error message Caused by: java.io.FileNotFoundException: testmod:blockstates/furnace.json As if it couldn't find the json file itself. Actually, here's the whole stacktrace, in case it's useful
-
Could you elaborate on that a little bit more? Should I have spelled the json as "models"? Do I need to add some other file containing model information? I'm not telling the game anything about looking for a model: I just registered the block and the ItemBlock. Do I need to do something else that I'm missing?
-
Hello all, I'm currently trying to add my very first block, with a basic 16x16 texture, the same on all sides. However, despite the fact that both a furnace.json and a furnace.png files exist, I continue to get the following error message The json file is and the png is attached My Eclipse project configuration is attached. What am I doing wrong? Is more information required? (Unfortunately, I have zero idea about how github works, so my project can't be found there)