@opys/minecraft-vanilla 0.1.6 → 0.1.8

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.
Files changed (2) hide show
  1. package/README.md +38 -0
  2. package/package.json +4 -4
package/README.md ADDED
@@ -0,0 +1,38 @@
1
+ # @opys/minecraft-vanilla
2
+
3
+ [![npm](https://img.shields.io/npm/v/@opys/minecraft-vanilla.svg)](https://www.npmjs.com/package/@opys/minecraft-vanilla)
4
+
5
+ Vanilla Minecraft template — resolves the client JAR, asset index,
6
+ asset objects, and library classpath for any released version. The
7
+ substrate every forge-family loader (forge, cleanroom, lwjgl3ify)
8
+ builds on.
9
+
10
+ ```sh
11
+ npm install @opys/minecraft-vanilla
12
+ ```
13
+
14
+ ```js
15
+ import { defineConfig } from '@opys/dev';
16
+ import { minecraft } from '@opys/minecraft-vanilla';
17
+ import { java } from '@opys/java';
18
+
19
+ export default defineConfig({
20
+ output: 'opys.json',
21
+ plugins: [minecraft('1.20.1'), java('17')],
22
+ manifest: {
23
+ command: ({ java }) => java.bin,
24
+ args: ({ minecraft }) => [
25
+ minecraft.jvmArgs,
26
+ minecraft.mainClass,
27
+ minecraft.gameArgs,
28
+ ],
29
+ workdir: '${game_directory}',
30
+ },
31
+ });
32
+ ```
33
+
34
+ Pass no version (`minecraft()`) to resolve the latest stable release
35
+ at build time.
36
+
37
+ Part of the [opys](https://github.com/harmoniya-net/opys) toolkit;
38
+ re-exported by [`@opys/minecraft`](https://www.npmjs.com/package/@opys/minecraft).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opys/minecraft-vanilla",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "exports": {
@@ -15,9 +15,9 @@
15
15
  "test": "vitest run tests/unit --passWithNoTests"
16
16
  },
17
17
  "dependencies": {
18
- "@opys/core": "^0.1.6",
19
- "@opys/dev": "^0.1.6",
20
- "@opys/mojang": "^0.1.6"
18
+ "@opys/core": "^0.1.8",
19
+ "@opys/dev": "^0.1.8",
20
+ "@opys/mojang": "^0.1.8"
21
21
  },
22
22
  "devDependencies": {
23
23
  "tsdown": "*",