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 read 

As I understood I should place my resource pack files in:

src/main/resources/
├── META-INF
│   └── mods.toml
├── assets/
├── pack.mcmeta
└── pack.png

But in Minecraft, if I open Options > Resource Pack, I cannot find my resource pack.

However, if I zip the files above and put the zip into run/resourcepacks/MyFirstMod.zip, my resource pack shows up in Minecraft.

I assumed that ./gradlew build would take care of bundling my resource pack. Or am I supposed to zip the files and place them in run/resourcepacks manually? 

  • 1 month later...
  • Author

I found out that run/resourcepacks and src/main/resources/ serve different purposes.

Resourcepacks

In run/resourcepacks/ you can add assets for existing parts of the game. E.g. to overwrite the texture of the vanilla creepers:

run/resourcepacks/

└── myresources

├── assets

│   └── minecraft

│   └── textures

│   └── entity

│   └── creeper

│   └── creeper.png

├── pack.mcmeta

└── pack.png

7 directories, 3 files

The content of pack.mcmeta:

{

  "pack": {

    "description": "My resources",

    "pack_format": 64

  }

}


For the pack_format for your version of MC see:
https://minecraft.wiki/w/Tutorial:Creating_a_resource_pack#Pack_format

pack.png is optional.

You do not have to zip the contents.

Resources

In src/main/resources you put the resources, i.e. client side assets, server side data, for your mod. E.g.:

src/main/resources/

├── META-INF

│   └── mods.toml

├── assets

│   └── myfirstmod

│   ├── items

│   │   └── banana.json

│   ├── lang

│   │   ├── de_de.json

│   │   └── en_us.json

│   ├── models

│   │   └── item

│   │   └── banana.json

│   └── textures

│   └── item

│   └── banana.png

├── data

│   └── myfirstmod

│   └── recipe

│   ├── my_first_shaped.json

│   └── my_first_shapeless.json

├── pack.mcmeta

└── pack.png

13 directories, 10 files

Edited by lmoellendorf

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.