Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

I want all the classes and textures to be in the mods folder but i can only have to textures in the minecraft.jar other wise it wont work? How do you make it so that you can have the textures and the classes in one folder in the mods folder?

Textures do not need to go in the jar, they just need to be inside a folder called 'mods' which is zipped up alongside your classes.

 

E.g. if your main package is "ellbelly.main" and you register your textures as "ellbelly:myblock" then your zip will contain these folders:

 

/ellbelly

(contains /main, which contains your class files and other packages)

/mods/ellbelly/textures/blocks

(contains a png file named 'myblock.png')

 

The compiler will not move the textures folder from the /src directory to /reobf when you compile, you will have to copy it manually (I tend to make a zip of my classes, move it out of the /reobf folder, then add the textures to that zip, and new compiles just get the new classes added, overwriting the old ones).

 

See:

http://www.minecraftforge.net/wiki/Icons_and_Textures#Item_and_Block_Textures

 

Capture2.png

 

(Note: for that project I'm referencing the textures directly, not using the icon register, as the moon isn't part of that icon register thingy, but I set up my folders the same way to stay organized)

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

  • Author

Hmm well that's how i have it I think. When i run it like this it the textures come up as missing?

 

/.minecraft/mods/MyMod/minecraft/OresMod

                                    |_                              |_

                                      /textures                  /client- Classes                     

                                                  |                    /common- Classes

                                                  |_

                                                      /blocks- Pictures

                                                      /items- Pictures

                                                      /armor- Pictures

because that's not how you package things.

 

This is wrong:

/.minecraft/mods/MyMod/minecraft/OresMod

                                    |_                              |_

 

It should be like this:

/.minecraft/mods/MyMod.zip

                                    |_

                                      /OresMod

                                                  |_

                                                      /client

                                                      /common

                                      /mods/textures

                                                          |_

                                                              /blcoks

                                                              /items

                                                              /armors

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.