Jump to content
  • Home
  • Files
  • Docs
  • Merch
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • ForgeGradle
  • [1.10.2] Models Won't Register After Building.
1.13 Update Notes for Mod Creators
Sign in to follow this  
Followers 0
trentmartin2

[1.10.2] Models Won't Register After Building.

By trentmartin2, September 23, 2016 in ForgeGradle

  • Reply to this topic
  • Start new topic

Recommended Posts

trentmartin2    0

trentmartin2

trentmartin2    0

  • Tree Puncher
  • trentmartin2
  • Members
  • 0
  • 22 posts
Posted September 23, 2016

I've spent countless hours the past few days solving two trivial issues, and another has come my way. When I run minecraft in Eclipse, everything is perfect. Textures, models, recipes, etc... However, if I run minecraft forge using the minecraft launcher with my built .jar file in the "mods" folder, it seems that block models, item models, blockstates, and textures aren't registering.

 

I'm sick of going at it alone, so hopefully someone here can help me out. Thank you ahead of time.

  • Quote

Share this post


Link to post
Share on other sites

diesieben07    6684

diesieben07

diesieben07    6684

  • Reality Controller
  • diesieben07
  • Forum Team
  • 6684
  • 45696 posts
Posted September 23, 2016

Make sure your modID and file-names are lowercase everywhere.

  • Quote

Share this post


Link to post
Share on other sites

loordgek    163

loordgek

loordgek    163

  • World Shaper
  • loordgek
  • Members
  • 163
  • 1606 posts
Posted September 23, 2016

plz dont use "URGENT" in your title

  • Quote

Share this post


Link to post
Share on other sites

trentmartin2    0

trentmartin2

trentmartin2    0

  • Tree Puncher
  • trentmartin2
  • Members
  • 0
  • 22 posts
Posted September 23, 2016

plz dont use "URGENT" in your title

 

sorry :( I'm just kind of irritated by the situation and I really want it fixed :/

  • Quote

Share this post


Link to post
Share on other sites

trentmartin2    0

trentmartin2

trentmartin2    0

  • Tree Puncher
  • trentmartin2
  • Members
  • 0
  • 22 posts
Posted September 23, 2016

Make sure your modID and file-names are lowercase everywhere.

 

Modid is referenced through a reference class, following MrCrayfish's tutorials, but it is still basically "cb", and all file names are 100% lowercase.

  • Quote

Share this post


Link to post
Share on other sites

diesieben07    6684

diesieben07

diesieben07    6684

  • Reality Controller
  • diesieben07
  • Forum Team
  • 6684
  • 45696 posts
Posted September 23, 2016

Upload the finished mod jar somewhere.

  • Quote

Share this post


Link to post
Share on other sites

trentmartin2    0

trentmartin2

trentmartin2    0

  • Tree Puncher
  • trentmartin2
  • Members
  • 0
  • 22 posts
Posted September 23, 2016

Upload the finished mod jar somewhere.

 

http://www.mediafire.com/download/h5r20m0jzcsucyo/cb-1.10.2+-+1.0.jar

  • Quote

Share this post


Link to post
Share on other sites

diesieben07    6684

diesieben07

diesieben07    6684

  • Reality Controller
  • diesieben07
  • Forum Team
  • 6684
  • 45696 posts
Posted September 23, 2016

  • First of all, what the f*** are all those block class files? Surely you are not serious about this...
  • Your registry names all start with an uppercase letter. This is fine, but then you cannot base your model locations on your registry names, because files must be all lowercase (will be enforced by Mojang in 1.11).
  • You should be using
    ModelLoader.setCustomModelResourceLocation

    in preInit instead of the

    ItemModelMesher

    .

  • Quote

Share this post


Link to post
Share on other sites

trentmartin2    0

trentmartin2

trentmartin2    0

  • Tree Puncher
  • trentmartin2
  • Members
  • 0
  • 22 posts
Posted September 23, 2016

How do I change the registry name?

 

sorry for being a moron, I'm just working on my first official mod after screwing around trying to figure out the coding.

  • Quote

Share this post


Link to post
Share on other sites

diesieben07    6684

diesieben07

diesieben07    6684

  • Reality Controller
  • diesieben07
  • Forum Team
  • 6684
  • 45696 posts
Posted September 23, 2016
How do I change the registry name?
I really do not know how to answer this question. Have you not written your own code? What the heck?

 

sorry for being a moron, I'm just working on my first official mod after screwing around trying to figure out the coding.
Can I read this as "I do not know Java"? Because if so you are in the wrong forum.
  • Quote

Share this post


Link to post
Share on other sites

trentmartin2    0

trentmartin2

trentmartin2    0

  • Tree Puncher
  • trentmartin2
  • Members
  • 0
  • 22 posts
Posted September 23, 2016

I do know java to a minor extent. I program robots in my engineering class, which pushed me back into trying minecraft modding again. I don't have a full understanding of how FORGE coding works, but I do know basic Java. As for the registry name change, I'm looking at my resources class.. I'm trying to understand to the fullest extent possible, but mostly everything I can find on the internet is based either towards beginner or MCCreator (which I don't think is any fun if coding is done for you), or towards people who have been modding for years.

 

Also, PLEASE tell me that there is a way that I can compress all of those damn block classes. I hate creating a new set of blocks, because it takes over an hour to create 10 basic blocks.

  • Quote

Share this post


Link to post
Share on other sites

diesieben07    6684

diesieben07

diesieben07    6684

  • Reality Controller
  • diesieben07
  • Forum Team
  • 6684
  • 45696 posts
Posted September 23, 2016

If you know basic Java this should not be a problem for you...

  • Quote

Share this post


Link to post
Share on other sites

trentmartin2    0

trentmartin2

trentmartin2    0

  • Tree Puncher
  • trentmartin2
  • Members
  • 0
  • 22 posts
Posted September 23, 2016

I'm at least trying man. I'm just asking for help with learning it even further.

 

Why does it even matter? It's a place for modding support, regardless of experience. I wish to become more experienced, but it takes the community's cooperation as well as mine.

  • Quote

Share this post


Link to post
Share on other sites

diesieben07    6684

diesieben07

diesieben07    6684

  • Reality Controller
  • diesieben07
  • Forum Team
  • 6684
  • 45696 posts
Posted September 23, 2016

If you are looking at your Resources class and trying to figure out how to change the registry name (which should never happen, don't copy-paste code you don't understand) then you do not know enough Java.

That class is very basic.

  • Quote

Share this post


Link to post
Share on other sites

trentmartin2    0

trentmartin2

trentmartin2    0

  • Tree Puncher
  • trentmartin2
  • Members
  • 0
  • 22 posts
Posted September 23, 2016

Well teach me what I'm being stupid about then :/

 

I only "copy and pasted" the basic template from MrCrayfish's tutorials. Past that, I made it my goal to understand everything I type.

  • Quote

Share this post


Link to post
Share on other sites

diesieben07    6684

diesieben07

diesieben07    6684

  • Reality Controller
  • diesieben07
  • Forum Team
  • 6684
  • 45696 posts
Posted September 23, 2016

Look at the Resources class. Search for "registry name"... Seriously....

  • Quote

Share this post


Link to post
Share on other sites

trentmartin2    0

trentmartin2

trentmartin2    0

  • Tree Puncher
  • trentmartin2
  • Members
  • 0
  • 22 posts
Posted September 23, 2016

private String unlocalizedName;

private String registryName;

 

ModBlocks(String unlocalizedName, String registryName)

{

this.unlocalizedName = unlocalizedName;

this.registryName = registryName;

}

 

I found this.. so basically the registryName is being pulled from my ModBlocks?

 

(within my Reference class... was never called resources... I assume this is what we were talking about, my bad)

  • Quote

Share this post


Link to post
Share on other sites

diesieben07    6684

diesieben07

diesieben07    6684

  • Reality Controller
  • diesieben07
  • Forum Team
  • 6684
  • 45696 posts
Posted September 23, 2016

Yes... You read that registryName field yourself when creating your blocks...

  • Quote

Share this post


Link to post
Share on other sites

trentmartin2    0

trentmartin2

trentmartin2    0

  • Tree Puncher
  • trentmartin2
  • Members
  • 0
  • 22 posts
Posted September 23, 2016

Sorry for my stupidity, but I have to go to school... I'll try to work on it there, but I guess I don't know enough Java to understand what you're saying completely. I'm sure you're done with me, so if you know of a better place for me to ask my question, let me know.

  • Quote

Share this post


Link to post
Share on other sites

trentmartin2    0

trentmartin2

trentmartin2    0

  • Tree Puncher
  • trentmartin2
  • Members
  • 0
  • 22 posts
Posted September 23, 2016

Okay, so after pondering for a while at school I had this idea to find my registry name by doing this simple line:

 

System.out.println(sand2.getRegistryName());

 

It is indeed capitalized... it reads: cb:Sand2

 

How do I change this? The only thing I have capitalized is the class name as far as "sand2" goes (or any of my blocks for that matter).

  • Quote

Share this post


Link to post
Share on other sites

trentmartin2    0

trentmartin2

trentmartin2    0

  • Tree Puncher
  • trentmartin2
  • Members
  • 0
  • 22 posts
Posted September 23, 2016

HOLY CRAP I'M RETARDED. I thought the second string in all of my reference declarations was the class name, but it's the registry name! Sorry, the problem it wasn't due to not understanding it at all... It was due to falsely understanding it. Will see if it works.

 

edit: it does. thank you for helping me, although you could have been a hell of a lot nicer and more patient.

  • Quote

Share this post


Link to post
Share on other sites

diesieben07    6684

diesieben07

diesieben07    6684

  • Reality Controller
  • diesieben07
  • Forum Team
  • 6684
  • 45696 posts
Posted September 24, 2016

Sorry, but no.

I am not very patient with people who do not follow the rules of this forum.

  • Quote

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Insert image from URL
×
  • Desktop
  • Tablet
  • Phone
Sign in to follow this  
Followers 0
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • solitone
      Distinguish singleplayer vs. multiplayer

      By solitone · Posted 15 minutes ago

      OK, thanks, that was helpful.  As for @SidedProxyvs. DistExecutor, if I understand it right the former was used till version 1.12, while the latter with version 1.13+, right?
    • DaemonUmbra
      1.12.2 Forge isnt working, are these the logs you need?

      By DaemonUmbra · Posted 40 minutes ago

      Please read the Logs section of my signature below and provide the appropriate log in the appropriate manner.
    • saxon564
      [1.12.2] plugin with id 'net.minecraftforge.gradle.forge' not found

      By saxon564 · Posted 57 minutes ago

      Could you show a screenshot of the contents of the folder 'ye'?
    • NoMercyPro
      Forge 1.12.2 Launcher Crash

      By NoMercyPro · Posted 2 hours ago

      sorry for not putting the log in a spoiler, do not know how and did not know I need to.
    • NoMercyPro
      Forge 1.12.2 Launcher Crash

      By NoMercyPro · Posted 2 hours ago

      Every time my Launcher loads, it keeps crashing. It's not Forge but I can't tell what it is. Here's the log.   https://pastebin.com/NVLqcuzH  
  • Topics

    • solitone
      16
      Distinguish singleplayer vs. multiplayer

      By solitone
      Started December 5

    • bandofbros20
      1
      1.12.2 Forge isnt working, are these the logs you need?

      By bandofbros20
      Started 5 hours ago

    • vMystic
      1
      [1.12.2] plugin with id 'net.minecraftforge.gradle.forge' not found

      By vMystic
      Started 6 hours ago

    • NoMercyPro
      1
      Forge 1.12.2 Launcher Crash

      By NoMercyPro
      Started 2 hours ago

    • J3sq
      2
      Minecraft v1.15 - Supported by Forge?

      By J3sq
      Started 5 hours ago

  • Who's Online (See full list)

    • Daedalus4096
    • poopoodice
    • Metal1375
    • xX_5up3rN0v4_Xx
    • Lithium941
    • gendeathrow
    • solitone
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • ForgeGradle
  • [1.10.2] Models Won't Register After Building.
  • Theme
  • Contact Us
  • Discord

Copyright © 2019 ForgeDevelopment LLC · Ads by Curse Powered by Invision Community