Jump to content

DiscardedMarrow

Members
  • Posts

    40
  • Joined

  • Last visited

Everything posted by DiscardedMarrow

  1. lol this is gonna be a long week.
  2. 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!
  3. 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!
  4. 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!
  5. 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?
  6. 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!
  7. Nevermind, solved it by re-creating the texture.
  8. 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!
  9. This topic can be closed now. My problem was a syntax error in pack.mcmeta. Too bad this exception wasn't caught very well.
  10. ClientProxy: CommonProxy:
  11. Posting fml-client-latest, hope this is the one you want to see.
  12. Which file is this? Sorry, kind of knew to this whole modding thing..
  13. Here is the main mod class: Reference.* refers to this class:
  14. 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:
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.