# Page 4

### 3.2 - Modifying The Metadata

*But Now I Want To Know How To Edit The Mod Metadata How Do I Do That?*

***First You'll Have To Learn The Manifest Files Of Each Supported Modloader***

{% tabs %}
{% tab title="Forge" %}
\
The Forge Mod Loader Mod Manifest File Is <mark style="color:red;">`mods.toml`</mark>\
This Is Our <mark style="color:red;">`mods.toml`</mark> File:<br>

{% code title="mods.toml" overflow="wrap" lineNumbers="true" fullWidth="true" %}

```toml

modLoader = 'lowcodefml'
loaderVersion = '[40,)'
license = 'MIT'
showAsResourcePack = false
mods = [
	{ modId = 'recycling', version = '0.0.7-alpha', displayName = 'Recycling', description = 'A Mod That Adds Some Recipes To Recycle', logoFile = 'recycling_pack.png', updateJSONURL = 'https://github.com/DEMnetwork/Recycling/raw/main/update.json', credits = '  ', authors = 'DEMnetwork', displayURL = 'https://modrinth.com/datapack/recycling' },
]
issueTrackerURL = 'https://github.com/DEMnetwork/Recycling/issues'
```

{% endcode %}

That Manifest File Contains The Mod\`s Metadata Such As:

* Display Name
* Mod ID
* Authors
* Issue Tracker
* License
* And More

And That FIle Is Important Without That File It Will Not Load The Mod!
{% endtab %}

{% tab title="Fabric" %}
The Fabric Manifest File Is <mark style="color:red;">`fabric.mod.json`</mark>\
This Is Our <mark style="color:red;">`fabric.mod.json`</mark>

{% code title="fabric.mod.json" overflow="wrap" lineNumbers="true" fullWidth="true" %}

```json
{"schemaVersion":1,"id":"recycling","version":"0.0.7-alpha","name":"Recycling","description":"A Mod That Adds Some Recipes To Recycle","authors":["DEMnetwork"],"contact":{"homepage":"https://dem-network-corporation.github.io/Recycling/","sources":"https://github.com/DEMnetwork/Recycling/tree/main","issues":"https://github.com/DEMnetwork/Recycling/issues"},"license":"MIT","icon":"recycling_pack.png","environment":"*","depends":{"fabric-resource-loader-v0":"*"}}
```

{% endcode %}

This File Include The Mod's Metadata Such As: Name,Version,license,authors,source code, and more
{% endtab %}

{% tab title="Quilt" %}
The <mark style="color:red;">`quilt.mod.json`</mark> Is The Quilt Modloader Manifest File\
This Is Our <mark style="color:red;">`quilt.mod.json`</mark>:

{% code title="quilt.mod.json" overflow="wrap" lineNumbers="true" fullWidth="true" %}

```json
{"schema_version":1,"quilt_loader":{"group":"com.demnetwork","id":"recycling","version":"0.0.7-alpha","metadata":{"name":"Recycling","description":"A Mod That Adds Some Recipes To Recycle","contributors":{"DEMnetwork":"Owner"},"contact":{"homepage":"https://dem-network-corporation.github.io/Recycling","sources":"https://github.com/DEMnetwork/Recycling/tree/main","issues":"https://github.com/DEMnetwork/Recycling/issues"},"wiki":"https://github.com/DEMnetwork/Recycling/wiki","icon":"recycling_pack.png"},"intermediate_mappings":"net.fabricmc:intermediary","depends":[{"id":"minecraft", "versions":">=1.20"},{"id":"quilted_fabric_api","versions":">=7.0.0+0.83.0-1.20"},{"id":"quilt_resource_loader","versions":"*","unless":"fabric-resource-loader-v0"}]}}
```

{% endcode %}

This File Include The Mod's Metadata Such As: Name,Version,license,authors,source code, and more
{% endtab %}
{% endtabs %}

Our First Conclusion That's Without A Manifest File The Modloader Won't Load The Mod

{% hint style="info" %}
Before Editing Make Sure You Have An Copy Of The Mod
{% endhint %}

#### 3.2.1 - How To Edit Metadata

Step 1 - Extract The Mod:\
To Extract The mod  You Can Use Softwares Like: 7-zip

After You Have Extracted The Files.

You'll View The Following Files:

<figure><picture><source srcset="https://2020628967-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDC0OJg9Zal9g6hJJWkkW%2Fuploads%2Fvc1qNKbkIuEFgszNxacd%2Fimage.png?alt=media&#x26;token=bc78e4a7-cbe3-4996-8d0c-c2485690bb17" media="(prefers-color-scheme: dark)"><img src="https://2020628967-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDC0OJg9Zal9g6hJJWkkW%2Fuploads%2FV4bBF7VKWHnDQ7ljXcv3%2Fimage.png?alt=media&#x26;token=31a20680-77c5-48a9-86a7-f1acd3add2dd" alt=""></picture><figcaption><p>Files That You'll View</p></figcaption></figure>

Step 2 -  Edit The Metadata Files:

{% hint style="info" %}
This Step Varies Acording To The Modloader
{% endhint %}

{% tabs %}
{% tab title="Forge" %}
Some Fields Are Critical So Any Change At That Fields May Make The Mod Broken.\
Fields That Aren't Critical:\
\- <mark style="color:blue;">`modId`</mark>\
\- <mark style="color:blue;">`version`</mark>\
\- <mark style="color:blue;">`description`</mark>\
\- <mark style="color:blue;">`logoFile`</mark>\
\- <mark style="color:blue;">`updateJSONURL`</mark>\
\-  And more

#### How To Modify The File

{% hint style="info" %}
The FIle Is Located At META-INF/mods.toml
{% endhint %}

Open A Code Editor(Such As IntelliJ IDEA, VS Code, Eclipse, Or Any other).\
For Example i\`ll Use VS Code

<figure><img src="https://2020628967-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDC0OJg9Zal9g6hJJWkkW%2Fuploads%2FBM3vsDHpM35IG4ICId6X%2Fimage.png?alt=media&#x26;token=890fde71-2dca-41d6-8a08-4399551456a9" alt=""><figcaption><p>Example</p></figcaption></figure>

Then After Editing The Code You Can Make An Zip File<br>

<figure><img src="https://2020628967-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDC0OJg9Zal9g6hJJWkkW%2Fuploads%2FFVtqLHsx0V3wJ95aVsJy%2Fnew%20.zip%20file.png?alt=media&#x26;token=69306958-0266-4ca7-ba0e-623c83800e8a" alt=""><figcaption><p>Make An Zip File</p></figcaption></figure>

Then Copy The Files

<figure><img src="https://2020628967-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDC0OJg9Zal9g6hJJWkkW%2Fuploads%2FNzAUY8W8HuRuUjY5edrN%2Fimage.png?alt=media&#x26;token=e1f280d8-5e8d-4e81-bda0-eb51b589c49b" alt=""><figcaption><p>Copying The Files</p></figcaption></figure>

Then Paste In The Your Zip File

<figure><img src="https://2020628967-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDC0OJg9Zal9g6hJJWkkW%2Fuploads%2FZiIT5aYALhc2D8x0HJyi%2Fimage.png?alt=media&#x26;token=75d5d458-c154-4a6d-b072-d85e1faac15b" alt=""><figcaption><p>Pasting The Files</p></figcaption></figure>

Rename Change The File Extension From .zip To .jar

<figure><img src="https://2020628967-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDC0OJg9Zal9g6hJJWkkW%2Fuploads%2FzDXII17lZofEXnIC6Uwq%2Fimage.png?alt=media&#x26;token=a030c7e2-58d3-4e25-879c-c35d07977f1f" alt=""><figcaption><p>Renaming The Zip File</p></figcaption></figure>

<figure><img src="https://2020628967-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDC0OJg9Zal9g6hJJWkkW%2Fuploads%2FuW53Fsp9XnUrvgsE29KM%2Fimage.png?alt=media&#x26;token=b3dc4dc3-4a1b-4029-8bfa-cdeabe777c97" alt=""><figcaption><p>File After Renamed</p></figcaption></figure>

Now Move To The `%appdata%/.minecraft/mods/`

<figure><img src="https://2020628967-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDC0OJg9Zal9g6hJJWkkW%2Fuploads%2FAW40aLGagdDDCooqBFXR%2Fimage.png?alt=media&#x26;token=b203e60c-c071-43a1-a148-43d5c6e1ee6b" alt=""><figcaption><p>Moving To Mods Folder</p></figcaption></figure>
{% endtab %}

{% tab title="Fabric" %}

* **Edit the metadata**

To edit the metadata you'll need to access the File(<mark style="color:purple;">`<mod location>/fabric.mod.json`</mark>)

{% hint style="info" %}
Note that the metadata file is a <mark style="color:red;">`.json`</mark> file
{% endhint %}

The Metadata File **MUST BE** formatted correctly unless the mod will not load!\
\
Here is an example:

{% code title="fabric.mod.json" overflow="wrap" fullWidth="true" %}

```json
{"schemaVersion":1,"id":"recycling","version":"0.0.9-alpha","name":"Recycling","description":"A Mod That Adds Some Recipes To Recycle","authors":["DEMnetwork"],"contact":{"homepage":"https://dem-network-corporation.github.io/Recycling/","sources":"https://github.com/DEMnetwork/Recycling/tree/main","issues":"https://github.com/DEMnetwork/Recycling/issues"},"license":"MIT","icon":"recycling_pack.png","environment":"*","depends":{"fabric-resource-loader-v0":"*"}}
```

{% endcode %}

You can change any field, but you need to make sure the syntax is correct!

* **Package the mod**

Create a Zip File then insert ALL the files(Including the Non-modified ones)\
After that rename the Extension to <mark style="color:red;">`.jar`</mark> ,then copy it to `%appdata%/.minecraft/mods/`
{% endtab %}

{% tab title="Quilt" %}
Work In Progress
{% endtab %}
{% endtabs %}

Congratulations!!! You've Modified The Mod!!!
