@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,276 @@
|
|
|
1
|
+
---
|
|
2
|
+
layout: default
|
|
3
|
+
title: create
|
|
4
|
+
parent: Commands
|
|
5
|
+
nav_order: 1
|
|
6
|
+
description: "Create a new Minecraft instance"
|
|
7
|
+
permalink: /commands/create
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# create Command
|
|
11
|
+
|
|
12
|
+
Create a new Minecraft instance with your choice of mod loader (Fabric or Forge).
|
|
13
|
+
|
|
14
|
+
## 📝 Synopsis
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
clicraft create [options]
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## 📖 Description
|
|
21
|
+
|
|
22
|
+
The `create` command guides you through an interactive process to set up a new Minecraft instance. It will:
|
|
23
|
+
|
|
24
|
+
1. Prompt you for instance configuration (name, type, loader, versions)
|
|
25
|
+
2. Download the Minecraft client or server files
|
|
26
|
+
3. Download the selected mod loader (Fabric or Forge)
|
|
27
|
+
4. Download all required libraries and dependencies
|
|
28
|
+
5. Download game assets (for client instances)
|
|
29
|
+
6. Set up the directory structure
|
|
30
|
+
7. Generate configuration files
|
|
31
|
+
|
|
32
|
+
### Creating from Existing Config
|
|
33
|
+
|
|
34
|
+
If you run `clicraft create` in a directory containing an `mcconfig.json` file, CLIcraft will automatically:
|
|
35
|
+
|
|
36
|
+
1. Detect the existing configuration
|
|
37
|
+
2. Display the config details for confirmation
|
|
38
|
+
3. Prompt for a new instance name
|
|
39
|
+
4. Create the instance with the same Minecraft version, mod loader, and loader version
|
|
40
|
+
5. Install all mods from the configuration
|
|
41
|
+
6. Apply game settings (if present in the config)
|
|
42
|
+
|
|
43
|
+
This is perfect for sharing modpack configurations or replicating setups across machines.
|
|
44
|
+
|
|
45
|
+
## 🎯 Options
|
|
46
|
+
|
|
47
|
+
| Option | Description |
|
|
48
|
+
|--------|-------------|
|
|
49
|
+
| `--verbose` | Enable verbose output to see detailed progress |
|
|
50
|
+
|
|
51
|
+
## 💡 Interactive Prompts
|
|
52
|
+
|
|
53
|
+
When you run `clicraft create`, you'll be prompted for:
|
|
54
|
+
|
|
55
|
+
### 1. Instance Name
|
|
56
|
+
The name for your instance directory. This will be used as the folder name.
|
|
57
|
+
- Must be a valid directory name
|
|
58
|
+
- Should be descriptive (e.g., "vanilla-1.21", "modded-fabric-latest")
|
|
59
|
+
|
|
60
|
+
### 2. Instance Type
|
|
61
|
+
Choose between:
|
|
62
|
+
- **Client** - For playing Minecraft yourself
|
|
63
|
+
- **Server** - For hosting a multiplayer server
|
|
64
|
+
|
|
65
|
+
### 3. Mod Loader
|
|
66
|
+
Choose your mod loader:
|
|
67
|
+
- **Fabric** - Lightweight, fast, modern mod loader
|
|
68
|
+
- **Forge** - Traditional, widely-supported mod loader
|
|
69
|
+
|
|
70
|
+
### 4. Minecraft Version
|
|
71
|
+
Select the Minecraft version you want to use. Common choices:
|
|
72
|
+
- Latest release (e.g., 1.21.1)
|
|
73
|
+
- Stable versions with good mod support (e.g., 1.20.1, 1.19.2)
|
|
74
|
+
- Specific version for mod compatibility
|
|
75
|
+
|
|
76
|
+
### 5. Loader Version
|
|
77
|
+
Choose the version of your selected mod loader:
|
|
78
|
+
- Latest version (recommended for most users)
|
|
79
|
+
- Specific version for compatibility
|
|
80
|
+
|
|
81
|
+
## 📂 Instance Structure
|
|
82
|
+
|
|
83
|
+
After creation, your instance will have this structure:
|
|
84
|
+
|
|
85
|
+
```
|
|
86
|
+
my-instance/
|
|
87
|
+
├── mcconfig.json # Instance configuration
|
|
88
|
+
├── launch.sh # Generated launch script (reference)
|
|
89
|
+
├── assets/ # Game assets (sounds, textures, etc.)
|
|
90
|
+
├── libraries/ # Java libraries and dependencies
|
|
91
|
+
├── mods/ # Installed mods (empty initially)
|
|
92
|
+
├── natives/ # Native libraries (platform-specific)
|
|
93
|
+
├── versions/ # Version JARs and JSON metadata
|
|
94
|
+
├── saves/ # World saves (created when you play)
|
|
95
|
+
├── resourcepacks/ # Resource packs
|
|
96
|
+
└── logs/ # Game logs
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
## 📋 Examples
|
|
100
|
+
|
|
101
|
+
### Basic usage
|
|
102
|
+
```bash
|
|
103
|
+
clicraft create
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
Then follow the interactive prompts.
|
|
107
|
+
|
|
108
|
+
### Verbose output
|
|
109
|
+
```bash
|
|
110
|
+
clicraft create --verbose
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
See detailed progress as files are downloaded and configured.
|
|
114
|
+
|
|
115
|
+
## 🎮 Example Session
|
|
116
|
+
|
|
117
|
+
```bash
|
|
118
|
+
$ clicraft create
|
|
119
|
+
|
|
120
|
+
? Enter instance name: my-modded-world
|
|
121
|
+
? Select instance type: Client
|
|
122
|
+
? Select mod loader: Fabric
|
|
123
|
+
? Select Minecraft version: 1.21.1
|
|
124
|
+
? Select Fabric version: 0.16.5
|
|
125
|
+
|
|
126
|
+
Creating instance my-modded-world...
|
|
127
|
+
✓ Downloading Minecraft 1.21.1...
|
|
128
|
+
✓ Downloading Fabric loader 0.16.5...
|
|
129
|
+
✓ Downloading libraries...
|
|
130
|
+
✓ Downloading assets...
|
|
131
|
+
✓ Creating directory structure...
|
|
132
|
+
✓ Writing configuration...
|
|
133
|
+
|
|
134
|
+
Instance created successfully at: ./my-modded-world
|
|
135
|
+
|
|
136
|
+
Next steps:
|
|
137
|
+
cd my-modded-world
|
|
138
|
+
clicraft login # Login to Microsoft account
|
|
139
|
+
clicraft install <mod> # Install mods
|
|
140
|
+
clicraft launch # Launch the game
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
## 🔍 What Happens Behind the Scenes
|
|
144
|
+
|
|
145
|
+
1. **Manifest Download**: Fetches the Minecraft version manifest from Mojang
|
|
146
|
+
2. **Version Selection**: Downloads specific version metadata
|
|
147
|
+
3. **Loader Setup**: Downloads and configures Fabric or Forge
|
|
148
|
+
4. **Library Resolution**: Downloads all required Java libraries
|
|
149
|
+
5. **Asset Download**: Fetches game assets (textures, sounds, language files)
|
|
150
|
+
6. **Native Libraries**: Downloads platform-specific native libraries
|
|
151
|
+
7. **Configuration**: Creates `mcconfig.json` with all instance settings
|
|
152
|
+
|
|
153
|
+
## ⚙️ Configuration File
|
|
154
|
+
|
|
155
|
+
The created `mcconfig.json` contains:
|
|
156
|
+
|
|
157
|
+
```json
|
|
158
|
+
{
|
|
159
|
+
"name": "my-instance",
|
|
160
|
+
"type": "client",
|
|
161
|
+
"loader": "fabric",
|
|
162
|
+
"minecraftVersion": "1.21.1",
|
|
163
|
+
"loaderVersion": "0.16.5",
|
|
164
|
+
"javaPath": "java",
|
|
165
|
+
"jvmArgs": ["-Xmx2G", "-Xms2G"]
|
|
166
|
+
}
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
You can manually edit this file to customize Java settings and other configurations.
|
|
170
|
+
|
|
171
|
+
## 🎯 Use Cases
|
|
172
|
+
|
|
173
|
+
### Development Environment
|
|
174
|
+
```bash
|
|
175
|
+
# Create a clean testing environment
|
|
176
|
+
clicraft create
|
|
177
|
+
# Name: mod-testing
|
|
178
|
+
# Type: Client
|
|
179
|
+
# Loader: Fabric
|
|
180
|
+
# Version: Latest
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
### Server Setup
|
|
184
|
+
```bash
|
|
185
|
+
# Create a multiplayer server
|
|
186
|
+
clicraft create
|
|
187
|
+
# Name: survival-server
|
|
188
|
+
# Type: Server
|
|
189
|
+
# Loader: Forge
|
|
190
|
+
# Version: 1.20.1
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
### Multiple Instances
|
|
194
|
+
```bash
|
|
195
|
+
# Create separate instances for different mod packs
|
|
196
|
+
clicraft create # vanilla-survival
|
|
197
|
+
clicraft create # tech-mods
|
|
198
|
+
clicraft create # creative-building
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
### Create from Shared Config
|
|
202
|
+
```bash
|
|
203
|
+
# Someone shared their mcconfig.json with you
|
|
204
|
+
mkdir my-new-instance
|
|
205
|
+
cd my-new-instance
|
|
206
|
+
cp ~/Downloads/mcconfig.json .
|
|
207
|
+
|
|
208
|
+
# Create instance from the config
|
|
209
|
+
clicraft create
|
|
210
|
+
# CLIcraft detects the config and offers to create from it
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
### Clone an Existing Instance
|
|
214
|
+
```bash
|
|
215
|
+
# Copy just the config (not the whole instance)
|
|
216
|
+
cp my-instance/mcconfig.json ~/new-instance-config/
|
|
217
|
+
cd ~/new-instance-config/
|
|
218
|
+
|
|
219
|
+
# Create a fresh instance with same mods and settings
|
|
220
|
+
clicraft create
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
## ⚠️ Common Issues
|
|
224
|
+
|
|
225
|
+
### Download Failures
|
|
226
|
+
If downloads fail:
|
|
227
|
+
- Check your internet connection
|
|
228
|
+
- Try again - downloads will resume from where they left off
|
|
229
|
+
- Use `--verbose` to see detailed error messages
|
|
230
|
+
|
|
231
|
+
### Disk Space
|
|
232
|
+
Creating an instance requires:
|
|
233
|
+
- **Client**: ~500MB - 2GB depending on version
|
|
234
|
+
- **Server**: ~50MB - 500MB depending on version
|
|
235
|
+
|
|
236
|
+
Make sure you have sufficient disk space available.
|
|
237
|
+
|
|
238
|
+
### Java Version
|
|
239
|
+
Ensure you have Java 21 or higher installed:
|
|
240
|
+
```bash
|
|
241
|
+
java --version
|
|
242
|
+
```
|
|
243
|
+
|
|
244
|
+
## 🆘 Troubleshooting
|
|
245
|
+
|
|
246
|
+
### "Failed to download Minecraft version manifest"
|
|
247
|
+
This usually indicates a network issue. Check your internet connection and try again.
|
|
248
|
+
|
|
249
|
+
### "Unsupported Minecraft version"
|
|
250
|
+
The version you selected may not be supported by the chosen mod loader. Try:
|
|
251
|
+
- A more recent version
|
|
252
|
+
- Checking the mod loader's supported versions
|
|
253
|
+
|
|
254
|
+
### Permission Errors
|
|
255
|
+
On Linux/macOS, ensure you have write permissions in the current directory:
|
|
256
|
+
```bash
|
|
257
|
+
ls -la
|
|
258
|
+
```
|
|
259
|
+
|
|
260
|
+
## 📚 Related Commands
|
|
261
|
+
|
|
262
|
+
After creating an instance:
|
|
263
|
+
- [`clicraft install`](install.md) - Install mods to your new instance
|
|
264
|
+
- [`clicraft login`](login.md) - Login for online play
|
|
265
|
+
- [`clicraft launch`](launch.md) - Start your instance
|
|
266
|
+
- [`clicraft info`](info.md) - View instance details
|
|
267
|
+
|
|
268
|
+
## 🔗 See Also
|
|
269
|
+
|
|
270
|
+
- [Installation Guide](../installation.md)
|
|
271
|
+
- [Commands Overview](../commands.md)
|
|
272
|
+
- [Configuration Guide](../configuration.md)
|
|
273
|
+
|
|
274
|
+
---
|
|
275
|
+
|
|
276
|
+
[← Back to Commands](../commands.md) | [Next: search →](search.md)
|
|
@@ -0,0 +1,460 @@
|
|
|
1
|
+
---
|
|
2
|
+
layout: default
|
|
3
|
+
title: info
|
|
4
|
+
parent: Commands
|
|
5
|
+
nav_order: 6
|
|
6
|
+
description: "View instance information"
|
|
7
|
+
permalink: /commands/info
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# info Command
|
|
11
|
+
|
|
12
|
+
View detailed information about your Minecraft instance.
|
|
13
|
+
|
|
14
|
+
## 📝 Synopsis
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
clicraft info [options]
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## 📖 Description
|
|
21
|
+
|
|
22
|
+
The `info` command displays comprehensive information about your Minecraft instance, including:
|
|
23
|
+
|
|
24
|
+
- Instance configuration
|
|
25
|
+
- Installed mods and their versions
|
|
26
|
+
- Storage usage breakdown
|
|
27
|
+
- World saves
|
|
28
|
+
- Resource packs
|
|
29
|
+
- Minecraft and loader versions
|
|
30
|
+
|
|
31
|
+
This is useful for checking what's installed, troubleshooting issues, or getting an overview of your instance.
|
|
32
|
+
|
|
33
|
+
## 🎯 Options
|
|
34
|
+
|
|
35
|
+
| Option | Description | Default |
|
|
36
|
+
|--------|-------------|---------|
|
|
37
|
+
| `-i, --instance <path>` | Path to instance directory | Current directory |
|
|
38
|
+
| `--verbose` | Show detailed information | false |
|
|
39
|
+
|
|
40
|
+
## 📋 Examples
|
|
41
|
+
|
|
42
|
+
### View basic info
|
|
43
|
+
```bash
|
|
44
|
+
cd my-instance
|
|
45
|
+
clicraft info
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### View detailed info
|
|
49
|
+
```bash
|
|
50
|
+
clicraft info --verbose
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### Check specific instance
|
|
54
|
+
```bash
|
|
55
|
+
clicraft info --instance ./my-modded-world
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
### Quick instance check
|
|
59
|
+
```bash
|
|
60
|
+
clicraft info --instance ~/minecraft/server
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## 🎮 Example Output
|
|
64
|
+
|
|
65
|
+
### Basic Mode
|
|
66
|
+
```bash
|
|
67
|
+
$ cd my-instance
|
|
68
|
+
$ clicraft info
|
|
69
|
+
|
|
70
|
+
Instance: my-modded-world
|
|
71
|
+
Type: Client
|
|
72
|
+
Minecraft: 1.21.1
|
|
73
|
+
Loader: Fabric 0.16.5
|
|
74
|
+
|
|
75
|
+
Installed Mods (5):
|
|
76
|
+
- Sodium 0.6.0
|
|
77
|
+
- Lithium 0.12.0
|
|
78
|
+
- Iris Shaders 1.8.0
|
|
79
|
+
- Fabric API 0.100.0
|
|
80
|
+
- Mod Menu 9.0.0
|
|
81
|
+
|
|
82
|
+
Storage Usage:
|
|
83
|
+
Total: 1.2 GB
|
|
84
|
+
Mods: 45 MB
|
|
85
|
+
Assets: 650 MB
|
|
86
|
+
Libraries: 480 MB
|
|
87
|
+
Saves: 25 MB
|
|
88
|
+
|
|
89
|
+
World Saves (2):
|
|
90
|
+
- New World (15 MB)
|
|
91
|
+
- Creative Testing (10 MB)
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
### Verbose Mode
|
|
95
|
+
```bash
|
|
96
|
+
$ clicraft info --verbose
|
|
97
|
+
|
|
98
|
+
════════════════════════════════════════
|
|
99
|
+
Instance Information
|
|
100
|
+
════════════════════════════════════════
|
|
101
|
+
|
|
102
|
+
Name: my-modded-world
|
|
103
|
+
Type: Client
|
|
104
|
+
Location: /home/user/my-modded-world
|
|
105
|
+
Minecraft Version: 1.21.1
|
|
106
|
+
Mod Loader: Fabric 0.16.5
|
|
107
|
+
Java Path: /usr/bin/java
|
|
108
|
+
Java Version: 21.0.1
|
|
109
|
+
|
|
110
|
+
════════════════════════════════════════
|
|
111
|
+
Mods (5)
|
|
112
|
+
════════════════════════════════════════
|
|
113
|
+
|
|
114
|
+
1. Sodium (sodium)
|
|
115
|
+
Version: 0.6.0-beta.2+mc1.21.1
|
|
116
|
+
File: sodium-fabric-0.6.0.jar
|
|
117
|
+
Size: 1.2 MB
|
|
118
|
+
|
|
119
|
+
2. Lithium (lithium)
|
|
120
|
+
Version: 0.12.0
|
|
121
|
+
File: lithium-fabric-mc1.21.1-0.12.0.jar
|
|
122
|
+
Size: 856 KB
|
|
123
|
+
|
|
124
|
+
3. Iris Shaders (iris)
|
|
125
|
+
Version: 1.8.0
|
|
126
|
+
File: iris-mc1.21.1-1.8.0.jar
|
|
127
|
+
Size: 3.4 MB
|
|
128
|
+
|
|
129
|
+
4. Fabric API (fabric-api)
|
|
130
|
+
Version: 0.100.0+1.21.1
|
|
131
|
+
File: fabric-api-0.100.0+1.21.1.jar
|
|
132
|
+
Size: 5.2 MB
|
|
133
|
+
|
|
134
|
+
5. Mod Menu (modmenu)
|
|
135
|
+
Version: 9.0.0
|
|
136
|
+
File: modmenu-9.0.0.jar
|
|
137
|
+
Size: 680 KB
|
|
138
|
+
|
|
139
|
+
════════════════════════════════════════
|
|
140
|
+
Storage Usage
|
|
141
|
+
════════════════════════════════════════
|
|
142
|
+
|
|
143
|
+
Total Size: 1.2 GB
|
|
144
|
+
├─ Assets: 650 MB (54%)
|
|
145
|
+
├─ Libraries: 480 MB (40%)
|
|
146
|
+
├─ Mods: 45 MB (4%)
|
|
147
|
+
├─ Saves: 25 MB (2%)
|
|
148
|
+
├─ Resource Packs: 0 MB (0%)
|
|
149
|
+
└─ Other: 10 MB (1%)
|
|
150
|
+
|
|
151
|
+
════════════════════════════════════════
|
|
152
|
+
World Saves (2)
|
|
153
|
+
════════════════════════════════════════
|
|
154
|
+
|
|
155
|
+
1. New World
|
|
156
|
+
Size: 15 MB
|
|
157
|
+
Last Played: 2024-01-15 14:30:00
|
|
158
|
+
Game Mode: Survival
|
|
159
|
+
|
|
160
|
+
2. Creative Testing
|
|
161
|
+
Size: 10 MB
|
|
162
|
+
Last Played: 2024-01-14 18:45:00
|
|
163
|
+
Game Mode: Creative
|
|
164
|
+
|
|
165
|
+
════════════════════════════════════════
|
|
166
|
+
Resource Packs (0)
|
|
167
|
+
════════════════════════════════════════
|
|
168
|
+
|
|
169
|
+
No resource packs installed.
|
|
170
|
+
|
|
171
|
+
════════════════════════════════════════
|
|
172
|
+
Configuration
|
|
173
|
+
════════════════════════════════════════
|
|
174
|
+
|
|
175
|
+
JVM Arguments:
|
|
176
|
+
-Xmx2G
|
|
177
|
+
-Xms2G
|
|
178
|
+
|
|
179
|
+
Game Directory:
|
|
180
|
+
/home/user/my-modded-world
|
|
181
|
+
|
|
182
|
+
════════════════════════════════════════
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
## 🔍 Information Breakdown
|
|
186
|
+
|
|
187
|
+
### Instance Details
|
|
188
|
+
- **Name**: Instance identifier
|
|
189
|
+
- **Type**: Client or Server
|
|
190
|
+
- **Location**: Full path to instance directory
|
|
191
|
+
- **Minecraft Version**: Version of Minecraft
|
|
192
|
+
- **Mod Loader**: Loader type and version
|
|
193
|
+
- **Java**: Java path and version
|
|
194
|
+
|
|
195
|
+
### Mod Information
|
|
196
|
+
For each installed mod:
|
|
197
|
+
- Mod name
|
|
198
|
+
- Version
|
|
199
|
+
- File name
|
|
200
|
+
- File size
|
|
201
|
+
|
|
202
|
+
### Storage Usage
|
|
203
|
+
Disk space used by:
|
|
204
|
+
- **Assets**: Game assets (textures, sounds)
|
|
205
|
+
- **Libraries**: Java dependencies
|
|
206
|
+
- **Mods**: Installed mod files
|
|
207
|
+
- **Saves**: World save files
|
|
208
|
+
- **Resource Packs**: Custom resource packs
|
|
209
|
+
- **Other**: Logs, configs, etc.
|
|
210
|
+
|
|
211
|
+
### World Saves
|
|
212
|
+
For each world:
|
|
213
|
+
- World name
|
|
214
|
+
- Size on disk
|
|
215
|
+
- Last played date/time
|
|
216
|
+
- Game mode (Survival/Creative/Adventure)
|
|
217
|
+
|
|
218
|
+
### Resource Packs
|
|
219
|
+
Lists installed resource packs with:
|
|
220
|
+
- Pack name
|
|
221
|
+
- Pack version
|
|
222
|
+
- File size
|
|
223
|
+
|
|
224
|
+
## 🎯 Use Cases
|
|
225
|
+
|
|
226
|
+
### Check Installed Mods
|
|
227
|
+
```bash
|
|
228
|
+
cd my-instance
|
|
229
|
+
clicraft info | grep -A 20 "Installed Mods"
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
### Verify Instance Configuration
|
|
233
|
+
```bash
|
|
234
|
+
clicraft info --verbose | grep -A 5 "Instance Information"
|
|
235
|
+
```
|
|
236
|
+
|
|
237
|
+
### Check Storage Usage
|
|
238
|
+
```bash
|
|
239
|
+
clicraft info | grep -A 10 "Storage Usage"
|
|
240
|
+
```
|
|
241
|
+
|
|
242
|
+
### List All Worlds
|
|
243
|
+
```bash
|
|
244
|
+
clicraft info | grep -A 20 "World Saves"
|
|
245
|
+
```
|
|
246
|
+
|
|
247
|
+
### Compare Multiple Instances
|
|
248
|
+
```bash
|
|
249
|
+
clicraft info --instance ./instance1 > inst1.txt
|
|
250
|
+
clicraft info --instance ./instance2 > inst2.txt
|
|
251
|
+
diff inst1.txt inst2.txt
|
|
252
|
+
```
|
|
253
|
+
|
|
254
|
+
### Pre-Launch Check
|
|
255
|
+
```bash
|
|
256
|
+
# Check everything is set up correctly
|
|
257
|
+
clicraft info --verbose
|
|
258
|
+
clicraft status
|
|
259
|
+
clicraft launch
|
|
260
|
+
```
|
|
261
|
+
|
|
262
|
+
## 📊 Interpreting Output
|
|
263
|
+
|
|
264
|
+
### Mod Count
|
|
265
|
+
- **0-10 mods**: Light modpack
|
|
266
|
+
- **10-50 mods**: Medium modpack
|
|
267
|
+
- **50-100 mods**: Heavy modpack
|
|
268
|
+
- **100+ mods**: Very heavy modpack
|
|
269
|
+
|
|
270
|
+
Consider allocating more RAM for larger modpacks.
|
|
271
|
+
|
|
272
|
+
### Storage Usage
|
|
273
|
+
- **Assets**: 400-800 MB is normal
|
|
274
|
+
- **Libraries**: 200-600 MB is normal
|
|
275
|
+
- **Mods**: Depends on mod count
|
|
276
|
+
- **Saves**: Grows with gameplay time
|
|
277
|
+
|
|
278
|
+
### Large Saves
|
|
279
|
+
If world saves are large (>1 GB):
|
|
280
|
+
- Consider backing up
|
|
281
|
+
- May slow down loading
|
|
282
|
+
- Can be archived if not actively used
|
|
283
|
+
|
|
284
|
+
## 💡 Troubleshooting with info
|
|
285
|
+
|
|
286
|
+
### Missing Mods
|
|
287
|
+
If expected mods don't appear:
|
|
288
|
+
```bash
|
|
289
|
+
clicraft info
|
|
290
|
+
# Check mod list
|
|
291
|
+
|
|
292
|
+
# Reinstall if missing
|
|
293
|
+
clicraft install missing-mod
|
|
294
|
+
```
|
|
295
|
+
|
|
296
|
+
### Wrong Version
|
|
297
|
+
Check versions match:
|
|
298
|
+
```bash
|
|
299
|
+
clicraft info --verbose
|
|
300
|
+
# Verify Minecraft and loader versions
|
|
301
|
+
|
|
302
|
+
# Update if needed
|
|
303
|
+
clicraft upgrade
|
|
304
|
+
```
|
|
305
|
+
|
|
306
|
+
### High Storage Usage
|
|
307
|
+
Identify large files:
|
|
308
|
+
```bash
|
|
309
|
+
clicraft info --verbose
|
|
310
|
+
# Check storage breakdown
|
|
311
|
+
|
|
312
|
+
# Clean up old worlds or logs
|
|
313
|
+
cd my-instance
|
|
314
|
+
rm -rf saves/old-world
|
|
315
|
+
rm -rf logs/*.log.gz
|
|
316
|
+
```
|
|
317
|
+
|
|
318
|
+
### Before Reporting Issues
|
|
319
|
+
Always include output of:
|
|
320
|
+
```bash
|
|
321
|
+
clicraft info --verbose > instance-info.txt
|
|
322
|
+
```
|
|
323
|
+
|
|
324
|
+
## 📁 Directory Inspection
|
|
325
|
+
|
|
326
|
+
The info command analyzes:
|
|
327
|
+
```
|
|
328
|
+
instance-directory/
|
|
329
|
+
├── mcconfig.json # Configuration
|
|
330
|
+
├── mods/ # Scanned for mods
|
|
331
|
+
├── saves/ # Scanned for worlds
|
|
332
|
+
├── resourcepacks/ # Scanned for packs
|
|
333
|
+
├── assets/ # Measured for size
|
|
334
|
+
├── libraries/ # Measured for size
|
|
335
|
+
├── versions/ # Version info
|
|
336
|
+
└── logs/ # Included in "Other"
|
|
337
|
+
```
|
|
338
|
+
|
|
339
|
+
## ⚙️ Configuration Display
|
|
340
|
+
|
|
341
|
+
### JVM Arguments
|
|
342
|
+
Shows memory allocation and other Java settings:
|
|
343
|
+
```
|
|
344
|
+
JVM Arguments:
|
|
345
|
+
-Xmx4G # Max memory: 4GB
|
|
346
|
+
-Xms4G # Initial memory: 4GB
|
|
347
|
+
-XX:+UseG1GC # Garbage collector
|
|
348
|
+
```
|
|
349
|
+
|
|
350
|
+
### Java Detection
|
|
351
|
+
Shows which Java will be used:
|
|
352
|
+
```
|
|
353
|
+
Java Path: /usr/bin/java
|
|
354
|
+
Java Version: 21.0.1
|
|
355
|
+
```
|
|
356
|
+
|
|
357
|
+
Verify this matches your requirements.
|
|
358
|
+
|
|
359
|
+
## 🔄 Real-Time Information
|
|
360
|
+
|
|
361
|
+
The info command shows current state:
|
|
362
|
+
- Installed mods **right now**
|
|
363
|
+
- Current storage usage
|
|
364
|
+
- Existing world saves
|
|
365
|
+
- Current configuration
|
|
366
|
+
|
|
367
|
+
Run `clicraft info` after:
|
|
368
|
+
- Installing/removing mods
|
|
369
|
+
- Playing and creating worlds
|
|
370
|
+
- Changing configuration
|
|
371
|
+
- Updating versions
|
|
372
|
+
|
|
373
|
+
## ⚠️ Common Issues
|
|
374
|
+
|
|
375
|
+
### "Instance not found"
|
|
376
|
+
Ensure you're in an instance directory:
|
|
377
|
+
```bash
|
|
378
|
+
ls mcconfig.json
|
|
379
|
+
|
|
380
|
+
# Or specify path
|
|
381
|
+
clicraft info --instance ./my-instance
|
|
382
|
+
```
|
|
383
|
+
|
|
384
|
+
### "Cannot read mods"
|
|
385
|
+
Check permissions:
|
|
386
|
+
```bash
|
|
387
|
+
ls -la mods/
|
|
388
|
+
chmod 644 mods/*.jar
|
|
389
|
+
```
|
|
390
|
+
|
|
391
|
+
### "Storage calculation failed"
|
|
392
|
+
May happen if directories are inaccessible:
|
|
393
|
+
```bash
|
|
394
|
+
ls -la
|
|
395
|
+
# Check directory permissions
|
|
396
|
+
```
|
|
397
|
+
|
|
398
|
+
### Mods Not Showing
|
|
399
|
+
If mods are installed but not listed:
|
|
400
|
+
- Check `mods/` directory exists
|
|
401
|
+
- Verify `.jar` files are present
|
|
402
|
+
- Check file permissions
|
|
403
|
+
|
|
404
|
+
```bash
|
|
405
|
+
ls -la mods/
|
|
406
|
+
```
|
|
407
|
+
|
|
408
|
+
## 💡 Pro Tips
|
|
409
|
+
|
|
410
|
+
1. **Regular Checks**: Run `clicraft info` periodically to monitor your instance
|
|
411
|
+
2. **Before Updates**: Check current state before upgrading
|
|
412
|
+
3. **Disk Space**: Monitor storage usage to avoid filling up disk
|
|
413
|
+
4. **Verbose Mode**: Use `--verbose` for complete details
|
|
414
|
+
5. **Backup Reference**: Save `clicraft info --verbose` output before major changes
|
|
415
|
+
6. **Mod Lists**: Use info to create mod lists for sharing
|
|
416
|
+
7. **Performance**: Large mod counts = more RAM needed
|
|
417
|
+
|
|
418
|
+
## 📋 Creating Mod Lists
|
|
419
|
+
|
|
420
|
+
Export your mod list:
|
|
421
|
+
```bash
|
|
422
|
+
clicraft info > modlist.txt
|
|
423
|
+
|
|
424
|
+
# Or just the mods section
|
|
425
|
+
clicraft info | grep -A 100 "Installed Mods" > mods.txt
|
|
426
|
+
```
|
|
427
|
+
|
|
428
|
+
Share with friends or for documentation.
|
|
429
|
+
|
|
430
|
+
## 🔍 Automation
|
|
431
|
+
|
|
432
|
+
Use in scripts:
|
|
433
|
+
```bash
|
|
434
|
+
#!/bin/bash
|
|
435
|
+
# Check if instance is ready
|
|
436
|
+
if clicraft info --instance "$INSTANCE" | grep -q "Installed Mods"; then
|
|
437
|
+
echo "Instance is valid"
|
|
438
|
+
clicraft launch --instance "$INSTANCE"
|
|
439
|
+
else
|
|
440
|
+
echo "Instance has issues"
|
|
441
|
+
exit 1
|
|
442
|
+
fi
|
|
443
|
+
```
|
|
444
|
+
|
|
445
|
+
## 📚 Related Commands
|
|
446
|
+
|
|
447
|
+
- [`clicraft create`](create.md) - Create the instance to inspect
|
|
448
|
+
- [`clicraft install`](install.md) - Install mods (shown in info)
|
|
449
|
+
- [`clicraft upgrade`](upgrade.md) - Update versions (check with info)
|
|
450
|
+
- [`clicraft launch`](launch.md) - Launch after verifying with info
|
|
451
|
+
|
|
452
|
+
## 🔗 See Also
|
|
453
|
+
|
|
454
|
+
- [Commands Overview](../commands.md)
|
|
455
|
+
- [Configuration Guide](../configuration.md)
|
|
456
|
+
- [Upgrade Command](upgrade.md)
|
|
457
|
+
|
|
458
|
+
---
|
|
459
|
+
|
|
460
|
+
[← Back to Commands](../commands.md) | [Next: upgrade →](upgrade.md)
|