@bobschlowinskii/clicraft 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +191 -0
- package/CONTRIBUTING.md +261 -0
- package/LICENSE.md +7 -0
- package/README.md +55 -0
- package/commands/auth.js +427 -0
- package/commands/config.js +356 -0
- package/commands/create.js +534 -0
- package/commands/info.js +113 -0
- package/commands/install.js +130 -0
- package/commands/launch.js +296 -0
- package/commands/search.js +50 -0
- package/commands/uninstall.js +94 -0
- package/commands/upgrade.js +343 -0
- package/commands/version.js +21 -0
- package/docs/README.md +119 -0
- package/docs/_config.yml +63 -0
- package/docs/commands/auth.md +376 -0
- package/docs/commands/config.md +294 -0
- package/docs/commands/create.md +276 -0
- package/docs/commands/info.md +460 -0
- package/docs/commands/install.md +320 -0
- package/docs/commands/launch.md +427 -0
- package/docs/commands/search.md +276 -0
- package/docs/commands/uninstall.md +128 -0
- package/docs/commands/upgrade.md +515 -0
- package/docs/commands.md +266 -0
- package/docs/configuration.md +410 -0
- package/docs/contributing.md +114 -0
- package/docs/index.md +82 -0
- package/docs/installation.md +162 -0
- package/helpers/auth/index.js +20 -0
- package/helpers/auth/microsoft.js +329 -0
- package/helpers/auth/storage.js +260 -0
- package/helpers/config.js +258 -0
- package/helpers/constants.js +38 -0
- package/helpers/getv.js +5 -0
- package/helpers/minecraft.js +308 -0
- package/helpers/modrinth.js +141 -0
- package/helpers/utils.js +334 -0
- package/helpers/versions.js +21 -0
- package/index.js +89 -0
- package/package.json +30 -0
|
@@ -0,0 +1,320 @@
|
|
|
1
|
+
---
|
|
2
|
+
layout: default
|
|
3
|
+
title: install
|
|
4
|
+
parent: Commands
|
|
5
|
+
nav_order: 3
|
|
6
|
+
description: "Install mods to your instance"
|
|
7
|
+
permalink: /commands/install
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# install Command
|
|
11
|
+
|
|
12
|
+
Install mods from Modrinth directly to your Minecraft instance.
|
|
13
|
+
|
|
14
|
+
## 📝 Synopsis
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
clicraft install <mod> [options]
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## 📖 Description
|
|
21
|
+
|
|
22
|
+
The `install` command downloads and installs mods from Modrinth to your Minecraft instance. It automatically:
|
|
23
|
+
|
|
24
|
+
1. Searches for the mod on Modrinth
|
|
25
|
+
2. Finds the correct version for your Minecraft version and loader
|
|
26
|
+
3. Downloads the mod file
|
|
27
|
+
4. Places it in your instance's `mods/` directory
|
|
28
|
+
5. Tracks the installation in your instance configuration
|
|
29
|
+
|
|
30
|
+
## 🎯 Arguments
|
|
31
|
+
|
|
32
|
+
| Argument | Description | Required |
|
|
33
|
+
|----------|-------------|----------|
|
|
34
|
+
| `<mod>` | Mod name or Modrinth project ID | Yes |
|
|
35
|
+
|
|
36
|
+
## 🎯 Options
|
|
37
|
+
|
|
38
|
+
| Option | Description | Default |
|
|
39
|
+
|--------|-------------|---------|
|
|
40
|
+
| `-i, --instance <path>` | Path to instance directory | Current directory |
|
|
41
|
+
| `-f, --force` | Force reinstall if already installed | false |
|
|
42
|
+
| `--verbose` | Enable verbose output | false |
|
|
43
|
+
|
|
44
|
+
## 📋 Examples
|
|
45
|
+
|
|
46
|
+
### Install from instance directory
|
|
47
|
+
```bash
|
|
48
|
+
cd my-instance
|
|
49
|
+
clicraft install sodium
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
### Install with instance path
|
|
53
|
+
```bash
|
|
54
|
+
clicraft install sodium --instance ./my-instance
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
### Force reinstall
|
|
58
|
+
```bash
|
|
59
|
+
clicraft install sodium --force
|
|
60
|
+
```
|
|
61
|
+
Useful for reinstalling a mod or downgrading to a different version.
|
|
62
|
+
|
|
63
|
+
### Install using Modrinth ID
|
|
64
|
+
```bash
|
|
65
|
+
clicraft install AANobbMI
|
|
66
|
+
```
|
|
67
|
+
Use the project ID from `clicraft search` results.
|
|
68
|
+
|
|
69
|
+
### Install multiple mods
|
|
70
|
+
```bash
|
|
71
|
+
cd my-instance
|
|
72
|
+
clicraft install sodium
|
|
73
|
+
clicraft install lithium
|
|
74
|
+
clicraft install iris
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
### Verbose installation
|
|
78
|
+
```bash
|
|
79
|
+
clicraft install sodium --verbose
|
|
80
|
+
```
|
|
81
|
+
See detailed information about the download and installation process.
|
|
82
|
+
|
|
83
|
+
## 🎮 Example Session
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
$ cd my-fabric-instance
|
|
87
|
+
$ clicraft install sodium
|
|
88
|
+
|
|
89
|
+
Installing sodium...
|
|
90
|
+
✓ Found mod: Sodium
|
|
91
|
+
✓ Compatible version: sodium-fabric-mc1.21.1-0.6.0.jar
|
|
92
|
+
✓ Downloading...
|
|
93
|
+
✓ Installed successfully to ./mods/
|
|
94
|
+
|
|
95
|
+
Sodium has been installed!
|
|
96
|
+
|
|
97
|
+
Remember to restart Minecraft if it's currently running.
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
## 🔍 How It Works
|
|
101
|
+
|
|
102
|
+
### 1. Mod Search
|
|
103
|
+
The command searches Modrinth for the specified mod name or ID.
|
|
104
|
+
|
|
105
|
+
### 2. Version Selection
|
|
106
|
+
Automatically selects the best version based on:
|
|
107
|
+
- Your instance's Minecraft version
|
|
108
|
+
- Your instance's mod loader (Fabric/Forge)
|
|
109
|
+
- Latest stable release for that configuration
|
|
110
|
+
|
|
111
|
+
### 3. Download
|
|
112
|
+
Downloads the `.jar` file from Modrinth's CDN.
|
|
113
|
+
|
|
114
|
+
### 4. Installation
|
|
115
|
+
Places the mod in your `mods/` directory and updates instance tracking.
|
|
116
|
+
|
|
117
|
+
## 📂 Installation Location
|
|
118
|
+
|
|
119
|
+
Mods are installed to:
|
|
120
|
+
```
|
|
121
|
+
instance-directory/
|
|
122
|
+
└── mods/
|
|
123
|
+
├── sodium-fabric-mc1.21.1-0.6.0.jar
|
|
124
|
+
├── lithium-fabric-mc1.21.1-0.6.0.jar
|
|
125
|
+
└── iris-mc1.21.1-1.8.0.jar
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
## 🎯 Use Cases
|
|
129
|
+
|
|
130
|
+
### Building a Performance Pack
|
|
131
|
+
```bash
|
|
132
|
+
cd my-instance
|
|
133
|
+
clicraft install sodium # Better FPS
|
|
134
|
+
clicraft install lithium # Server optimization
|
|
135
|
+
clicraft install starlight # Lighting engine
|
|
136
|
+
clicraft install ferritecore # Memory optimization
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
### Adding Quality of Life Mods
|
|
140
|
+
```bash
|
|
141
|
+
cd my-instance
|
|
142
|
+
clicraft install "just enough items" # Recipe viewer
|
|
143
|
+
clicraft install "journeymap" # Minimap
|
|
144
|
+
clicraft install "appleskin" # Food info
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
### Installing Shader Support
|
|
148
|
+
```bash
|
|
149
|
+
cd my-instance
|
|
150
|
+
clicraft install sodium # Required for Iris
|
|
151
|
+
clicraft install iris # Shader loader
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
### Server Mods
|
|
155
|
+
```bash
|
|
156
|
+
cd my-server
|
|
157
|
+
clicraft install lithium
|
|
158
|
+
clicraft install starlight
|
|
159
|
+
clicraft install "fabric api"
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
## ⚠️ Important Notes
|
|
163
|
+
|
|
164
|
+
### Instance Detection
|
|
165
|
+
clicraft automatically detects your instance by looking for `mcconfig.json`:
|
|
166
|
+
- If in instance directory, uses current directory
|
|
167
|
+
- If using `--instance`, uses specified path
|
|
168
|
+
- Must have a valid `mcconfig.json` file
|
|
169
|
+
|
|
170
|
+
### Version Compatibility
|
|
171
|
+
The mod version is automatically matched to:
|
|
172
|
+
- Your Minecraft version (from `mcconfig.json`)
|
|
173
|
+
- Your mod loader (Fabric/Forge)
|
|
174
|
+
- Latest compatible release
|
|
175
|
+
|
|
176
|
+
### Dependencies
|
|
177
|
+
Some mods require other mods to work:
|
|
178
|
+
- **Sodium Extra** requires **Sodium**
|
|
179
|
+
- **Iris** requires **Sodium**
|
|
180
|
+
- Many Fabric mods require **Fabric API**
|
|
181
|
+
|
|
182
|
+
Install dependencies separately:
|
|
183
|
+
```bash
|
|
184
|
+
clicraft install sodium
|
|
185
|
+
clicraft install "sodium extra" # Now it will work
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
### Mod Conflicts
|
|
189
|
+
Some mods conflict with each other:
|
|
190
|
+
- **Sodium** conflicts with **Optifine**
|
|
191
|
+
- **Phosphor** conflicts with **Starlight**
|
|
192
|
+
|
|
193
|
+
Research mod compatibility before installing.
|
|
194
|
+
|
|
195
|
+
## 🔍 Finding the Right Mod
|
|
196
|
+
|
|
197
|
+
Use `clicraft search` to find mods before installing:
|
|
198
|
+
|
|
199
|
+
```bash
|
|
200
|
+
# Search first
|
|
201
|
+
clicraft search optimization --version 1.21.1 --loader fabric
|
|
202
|
+
|
|
203
|
+
# Then install by name or ID
|
|
204
|
+
clicraft install sodium
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
## ⚠️ Common Issues
|
|
208
|
+
|
|
209
|
+
### "Instance not found"
|
|
210
|
+
Make sure you're either:
|
|
211
|
+
- In an instance directory (contains `mcconfig.json`)
|
|
212
|
+
- Using `--instance` to specify the path
|
|
213
|
+
|
|
214
|
+
```bash
|
|
215
|
+
# Check for mcconfig.json
|
|
216
|
+
ls mcconfig.json
|
|
217
|
+
|
|
218
|
+
# Or specify instance
|
|
219
|
+
clicraft install sodium --instance ./my-instance
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
### "Mod not found"
|
|
223
|
+
The mod name might be incorrect:
|
|
224
|
+
- Use `clicraft search <term>` to find the exact name
|
|
225
|
+
- Try using the Modrinth project ID instead
|
|
226
|
+
- Check spelling and capitalization
|
|
227
|
+
|
|
228
|
+
### "No compatible version found"
|
|
229
|
+
The mod may not support your Minecraft version or loader:
|
|
230
|
+
- Check mod compatibility on Modrinth
|
|
231
|
+
- Try a different Minecraft version
|
|
232
|
+
- Look for alternative mods
|
|
233
|
+
|
|
234
|
+
### "Already installed"
|
|
235
|
+
The mod is already in your instance:
|
|
236
|
+
- Use `--force` to reinstall
|
|
237
|
+
- Use `clicraft upgrade` to update it
|
|
238
|
+
- Check `mods/` directory
|
|
239
|
+
|
|
240
|
+
### Download Failures
|
|
241
|
+
If downloads fail:
|
|
242
|
+
- Check your internet connection
|
|
243
|
+
- Try again (downloads resume automatically)
|
|
244
|
+
- Use `--verbose` for detailed error info
|
|
245
|
+
|
|
246
|
+
## 💡 Pro Tips
|
|
247
|
+
|
|
248
|
+
1. **Install Fabric API First**: Many Fabric mods require it
|
|
249
|
+
```bash
|
|
250
|
+
clicraft install "fabric api"
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
2. **Check Dependencies**: Read mod descriptions for required mods
|
|
254
|
+
|
|
255
|
+
3. **Use Search First**: Find the exact mod name before installing
|
|
256
|
+
```bash
|
|
257
|
+
clicraft search "just enough"
|
|
258
|
+
clicraft install "just enough items"
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
4. **Backup First**: Before installing many mods, backup your instance
|
|
262
|
+
|
|
263
|
+
5. **Test Individually**: Install and test mods one at a time to catch issues
|
|
264
|
+
|
|
265
|
+
## 📊 Verifying Installation
|
|
266
|
+
|
|
267
|
+
After installing, verify with:
|
|
268
|
+
|
|
269
|
+
```bash
|
|
270
|
+
# List installed mods
|
|
271
|
+
ls mods/
|
|
272
|
+
|
|
273
|
+
# View instance info
|
|
274
|
+
clicraft info
|
|
275
|
+
|
|
276
|
+
# Check in-game
|
|
277
|
+
clicraft launch
|
|
278
|
+
# Then check Mods menu in Minecraft
|
|
279
|
+
```
|
|
280
|
+
|
|
281
|
+
## 🔄 Updating Installed Mods
|
|
282
|
+
|
|
283
|
+
To update mods, use the `upgrade` command:
|
|
284
|
+
|
|
285
|
+
```bash
|
|
286
|
+
# Update a specific mod
|
|
287
|
+
clicraft upgrade sodium
|
|
288
|
+
|
|
289
|
+
# Update all mods
|
|
290
|
+
clicraft upgrade
|
|
291
|
+
```
|
|
292
|
+
|
|
293
|
+
## 🗑️ Removing Mods
|
|
294
|
+
|
|
295
|
+
To remove a mod, simply delete it from the `mods/` directory:
|
|
296
|
+
|
|
297
|
+
```bash
|
|
298
|
+
cd my-instance
|
|
299
|
+
rm mods/sodium-*.jar
|
|
300
|
+
```
|
|
301
|
+
|
|
302
|
+
Or use a file manager to delete the mod file.
|
|
303
|
+
|
|
304
|
+
## 📚 Related Commands
|
|
305
|
+
|
|
306
|
+
- [`clicraft search`](search.md) - Find mods to install
|
|
307
|
+
- [`clicraft info`](info.md) - View installed mods
|
|
308
|
+
- [`clicraft upgrade`](upgrade.md) - Update installed mods
|
|
309
|
+
- [`clicraft create`](create.md) - Create an instance first
|
|
310
|
+
|
|
311
|
+
## 🔗 See Also
|
|
312
|
+
|
|
313
|
+
- [Commands Overview](../commands.md)
|
|
314
|
+
- [Configuration Guide](../configuration.md)
|
|
315
|
+
- [Search Command](search.md)
|
|
316
|
+
- [Modrinth Website](https://modrinth.com)
|
|
317
|
+
|
|
318
|
+
---
|
|
319
|
+
|
|
320
|
+
[← Back to Commands](../commands.md) | [Next: login →](login.md)
|