Everything posted by DiscardedMarrow
-
[SOLVED] Exception loading model for variant
lol this is gonna be a long week.
-
[SOLVED] Exception loading model for variant
Problem solved! Found MinecraftByExample by TheGreyGhost, went to this class and found a comment at line 38 which said: // NB If your block has multiple variants and you want vanilla to load a model for each variant, you don't need a // custom state mapper. // You can see examples of vanilla custom state mappers in BlockModelShapes.registerAllBlocks() Checked out the BlockModelShapes file at net/minecraft/client/renderer and found all the vanilla custom statemappers. Used this code to register my own custom statemappers: public static void createStatemappers() { ModelLoader.setCustomStateMapper(hemp_tripwire, (new StateMap.Builder().ignore(BlockHempTripWire.DISARMED, BlockHempTripWire.POWERED)).build()); ModelLoader.setCustomStateMapper(hemp_crop, (new StateMap.Builder().ignore(BlockHemp.AGE)).build()); } Called everything through serverproxy. Thanks for the help, sorry it took me a while to get a result! Really appreciate the code samples you submitted!
-
[SOLVED] Exception loading model for variant
I can't seem to solve it so I'll leave this one to be solved at a future date when I have more experience with modding. But thanks, I might revisit this post in a while and post an update if i get it figured out!
-
[SOLVED] Exception loading model for variant
This sounds like a pretty good solution! I looked around for the IStateMapper for tripwire for a while but I couldn't find it, gonna search again tomorrow. In the meantime, I though "hm maybe finding the file where vanilla executes all it's modelresource registries will give me some insight", but of course I couldn't find that either. Anyway, I'm going to try creating a custom IStateMapper for it tomorrow and we'll see how far it gets me. I'll reply then with results, thanks for the help so far!
-
[SOLVED] Exception loading model for variant
I see the issue, but this just makes me raise the question: how does vanilla deal with this, since the blockstate I'm using is basically a rip of the vanilla tripwire blockstate and my custom tripwire class extends the vanilla tripwire.. I think I need to know that before I do as you recommend and use the forge blockstates. Do you have any thoughts?
-
[SOLVED] Exception loading model for variant
Hello! I'm having an issue with custom tripwire variant models not loading. Here is my fml-log: My custom tripwire class: My Init and Registry Class: My Blockstate file: My project file tree: Thanks in advance!
-
[1.12] Model not rendering correctly
Nevermind, solved it by re-creating the texture.
-
[1.12] Model not rendering correctly
Hello, I have an issue with an item rendering incorrectly. Here are some screenshots: I have a different but similar "ingot" item which renders just fine. Are there any quick fixes for this kind of thing? Thanks in advance!
-
[1.12] Caught exception from null
This topic can be closed now. My problem was a syntax error in pack.mcmeta. Too bad this exception wasn't caught very well.
-
[1.12] Caught exception from null
ClientProxy: CommonProxy:
-
[1.12] Caught exception from null
Posting fml-client-latest, hope this is the one you want to see.
-
[1.12] Caught exception from null
Which file is this? Sorry, kind of knew to this whole modding thing..
-
[1.12] Caught exception from null
- [1.12] Caught exception from null
Here is the main mod class: Reference.* refers to this class:- [1.12] Caught exception from null
Hi, I'm currently making my first mod and I'm getting an exception I can't figure out how to solve. Thanks in advance for your help! (My mod's id is veganism) Crash log: - [1.12] Caught exception from null
IPS spam blocked by CleanTalk.
Important Information
By using this site, you agree to our Terms of Use.