diff --git a/build.gradle b/build.gradle index 7d29f01..a957cd4 100644 --- a/build.gradle +++ b/build.gradle @@ -87,4 +87,11 @@ publishing { // The repositories here will be used for publishing your artifact, not for // retrieving dependencies. } +} + +// Configure Fabric Data Generation API +fabricApi { + configureDataGeneration() { + client = true + } } \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 9aa8713..90524ef 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,6 +8,10 @@ "name": "magic-mod", "version": "0.1.0", "license": "ISC", + "dependencies": { + "tsc": "^2.0.4", + "tsx": "^4.19.3" + }, "devDependencies": { "commitlint": "^19.8.0", "husky": "^9.1.7" @@ -281,6 +285,406 @@ "node": ">=v18" } }, + "node_modules/@esbuild/aix-ppc64": { + "version": "0.25.2", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.2.tgz", + "integrity": "sha512-wCIboOL2yXZym2cgm6mlA742s9QeJ8DjGVaL39dLN4rRwrOgOyYSnOaFPhKZGLb2ngj4EyfAFjsNJwPXZvseag==", + "cpu": [ + "ppc64" + ], + "license": "MIT", + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm": { + "version": "0.25.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.2.tgz", + "integrity": "sha512-NQhH7jFstVY5x8CKbcfa166GoV0EFkaPkCKBQkdPJFvo5u+nGXLEH/ooniLb3QI8Fk58YAx7nsPLozUWfCBOJA==", + "cpu": [ + "arm" + ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.25.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.2.tgz", + "integrity": "sha512-5ZAX5xOmTligeBaeNEPnPaeEuah53Id2tX4c2CVP3JaROTH+j4fnfHCkr1PjXMd78hMst+TlkfKcW/DlTq0i4w==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.25.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.2.tgz", + "integrity": "sha512-Ffcx+nnma8Sge4jzddPHCZVRvIfQ0kMsUsCMcJRHkGJ1cDmhe4SsrYIjLUKn1xpHZybmOqCWwB0zQvsjdEHtkg==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.25.2", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.2.tgz", + "integrity": "sha512-MpM6LUVTXAzOvN4KbjzU/q5smzryuoNjlriAIx+06RpecwCkL9JpenNzpKd2YMzLJFOdPqBpuub6eVRP5IgiSA==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.25.2", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.2.tgz", + "integrity": "sha512-5eRPrTX7wFyuWe8FqEFPG2cU0+butQQVNcT4sVipqjLYQjjh8a8+vUTfgBKM88ObB85ahsnTwF7PSIt6PG+QkA==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.25.2", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.2.tgz", + "integrity": "sha512-mLwm4vXKiQ2UTSX4+ImyiPdiHjiZhIaE9QvC7sw0tZ6HoNMjYAqQpGyui5VRIi5sGd+uWq940gdCbY3VLvsO1w==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.25.2", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.2.tgz", + "integrity": "sha512-6qyyn6TjayJSwGpm8J9QYYGQcRgc90nmfdUb0O7pp1s4lTY+9D0H9O02v5JqGApUyiHOtkz6+1hZNvNtEhbwRQ==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.25.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.2.tgz", + "integrity": "sha512-UHBRgJcmjJv5oeQF8EpTRZs/1knq6loLxTsjc3nxO9eXAPDLcWW55flrMVc97qFPbmZP31ta1AZVUKQzKTzb0g==", + "cpu": [ + "arm" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.25.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.2.tgz", + "integrity": "sha512-gq/sjLsOyMT19I8obBISvhoYiZIAaGF8JpeXu1u8yPv8BE5HlWYobmlsfijFIZ9hIVGYkbdFhEqC0NvM4kNO0g==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.25.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.2.tgz", + "integrity": "sha512-bBYCv9obgW2cBP+2ZWfjYTU+f5cxRoGGQ5SeDbYdFCAZpYWrfjjfYwvUpP8MlKbP0nwZ5gyOU/0aUzZ5HWPuvQ==", + "cpu": [ + "ia32" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.25.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.2.tgz", + "integrity": "sha512-SHNGiKtvnU2dBlM5D8CXRFdd+6etgZ9dXfaPCeJtz+37PIUlixvlIhI23L5khKXs3DIzAn9V8v+qb1TRKrgT5w==", + "cpu": [ + "loong64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.25.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.2.tgz", + "integrity": "sha512-hDDRlzE6rPeoj+5fsADqdUZl1OzqDYow4TB4Y/3PlKBD0ph1e6uPHzIQcv2Z65u2K0kpeByIyAjCmjn1hJgG0Q==", + "cpu": [ + "mips64el" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.25.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.2.tgz", + "integrity": "sha512-tsHu2RRSWzipmUi9UBDEzc0nLc4HtpZEI5Ba+Omms5456x5WaNuiG3u7xh5AO6sipnJ9r4cRWQB2tUjPyIkc6g==", + "cpu": [ + "ppc64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.25.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.2.tgz", + "integrity": "sha512-k4LtpgV7NJQOml/10uPU0s4SAXGnowi5qBSjaLWMojNCUICNu7TshqHLAEbkBdAszL5TabfvQ48kK84hyFzjnw==", + "cpu": [ + "riscv64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.25.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.2.tgz", + "integrity": "sha512-GRa4IshOdvKY7M/rDpRR3gkiTNp34M0eLTaC1a08gNrh4u488aPhuZOCpkF6+2wl3zAN7L7XIpOFBhnaE3/Q8Q==", + "cpu": [ + "s390x" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.25.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.2.tgz", + "integrity": "sha512-QInHERlqpTTZ4FRB0fROQWXcYRD64lAoiegezDunLpalZMjcUcld3YzZmVJ2H/Cp0wJRZ8Xtjtj0cEHhYc/uUg==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-arm64": { + "version": "0.25.2", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.2.tgz", + "integrity": "sha512-talAIBoY5M8vHc6EeI2WW9d/CkiO9MQJ0IOWX8hrLhxGbro/vBXJvaQXefW2cP0z0nQVTdQ/eNyGFV1GSKrxfw==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.25.2", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.2.tgz", + "integrity": "sha512-voZT9Z+tpOxrvfKFyfDYPc4DO4rk06qamv1a/fkuzHpiVBMOhpjK+vBmWM8J1eiB3OLSMFYNaOaBNLXGChf5tg==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-arm64": { + "version": "0.25.2", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.2.tgz", + "integrity": "sha512-dcXYOC6NXOqcykeDlwId9kB6OkPUxOEqU+rkrYVqJbK2hagWOMrsTGsMr8+rW02M+d5Op5NNlgMmjzecaRf7Tg==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.25.2", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.2.tgz", + "integrity": "sha512-t/TkWwahkH0Tsgoq1Ju7QfgGhArkGLkF1uYz8nQS/PPFlXbP5YgRpqQR3ARRiC2iXoLTWFxc6DJMSK10dVXluw==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.25.2", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.2.tgz", + "integrity": "sha512-cfZH1co2+imVdWCjd+D1gf9NjkchVhhdpgb1q5y6Hcv9TP6Zi9ZG/beI3ig8TvwT9lH9dlxLq5MQBBgwuj4xvA==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.25.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.2.tgz", + "integrity": "sha512-7Loyjh+D/Nx/sOTzV8vfbB3GJuHdOQyrOryFdZvPHLf42Tk9ivBU5Aedi7iyX+x6rbn2Mh68T4qq1SDqJBQO5Q==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.25.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.2.tgz", + "integrity": "sha512-WRJgsz9un0nqZJ4MfhabxaD9Ft8KioqU3JMinOTvobbX6MOSUigSBlogP8QB3uxpJDsFS6yN+3FDBdqE5lg9kg==", + "cpu": [ + "ia32" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.25.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.2.tgz", + "integrity": "sha512-kM3HKb16VIXZyIeVrM1ygYmZBKybX8N4p754bw390wGO3Tf2j4L2/WYL+4suWujpgf6GBYs3jv7TyUivdd05JA==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, "node_modules/@types/conventional-commits-parser": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/@types/conventional-commits-parser/-/conventional-commits-parser-5.0.1.tgz", @@ -574,6 +978,46 @@ "is-arrayish": "^0.2.1" } }, + "node_modules/esbuild": { + "version": "0.25.2", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.2.tgz", + "integrity": "sha512-16854zccKPnC+toMywC+uKNeYSv+/eXkevRAfwRD/G9Cleq66m8XFIrigkbvauLLlCfDL45Q2cWegSg53gGBnQ==", + "hasInstallScript": true, + "license": "MIT", + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=18" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.25.2", + "@esbuild/android-arm": "0.25.2", + "@esbuild/android-arm64": "0.25.2", + "@esbuild/android-x64": "0.25.2", + "@esbuild/darwin-arm64": "0.25.2", + "@esbuild/darwin-x64": "0.25.2", + "@esbuild/freebsd-arm64": "0.25.2", + "@esbuild/freebsd-x64": "0.25.2", + "@esbuild/linux-arm": "0.25.2", + "@esbuild/linux-arm64": "0.25.2", + "@esbuild/linux-ia32": "0.25.2", + "@esbuild/linux-loong64": "0.25.2", + "@esbuild/linux-mips64el": "0.25.2", + "@esbuild/linux-ppc64": "0.25.2", + "@esbuild/linux-riscv64": "0.25.2", + "@esbuild/linux-s390x": "0.25.2", + "@esbuild/linux-x64": "0.25.2", + "@esbuild/netbsd-arm64": "0.25.2", + "@esbuild/netbsd-x64": "0.25.2", + "@esbuild/openbsd-arm64": "0.25.2", + "@esbuild/openbsd-x64": "0.25.2", + "@esbuild/sunos-x64": "0.25.2", + "@esbuild/win32-arm64": "0.25.2", + "@esbuild/win32-ia32": "0.25.2", + "@esbuild/win32-x64": "0.25.2" + } + }, "node_modules/escalade": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", @@ -626,6 +1070,20 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, "node_modules/get-caller-file": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", @@ -636,6 +1094,18 @@ "node": "6.* || 8.* || >= 10.*" } }, + "node_modules/get-tsconfig": { + "version": "4.10.0", + "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.10.0.tgz", + "integrity": "sha512-kGzZ3LWWQcGIAmg6iWvXn0ei6WDtV26wzHRMwDSzmAbcXrTEXxHy6IehI6/4eT6VRKyMP1eF1VqwrVUmE/LR7A==", + "license": "MIT", + "dependencies": { + "resolve-pkg-maps": "^1.0.0" + }, + "funding": { + "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1" + } + }, "node_modules/git-raw-commits": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/git-raw-commits/-/git-raw-commits-4.0.0.tgz", @@ -1065,6 +1535,15 @@ "node": ">=8" } }, + "node_modules/resolve-pkg-maps": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz", + "integrity": "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==", + "license": "MIT", + "funding": { + "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1" + } + }, "node_modules/semver": { "version": "7.7.1", "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz", @@ -1143,6 +1622,34 @@ "dev": true, "license": "MIT" }, + "node_modules/tsc": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/tsc/-/tsc-2.0.4.tgz", + "integrity": "sha512-fzoSieZI5KKJVBYGvwbVZs/J5za84f2lSTLPYf6AGiIf43tZ3GNrI1QzTLcjtyDDP4aLxd46RTZq1nQxe7+k5Q==", + "license": "MIT", + "bin": { + "tsc": "bin/tsc" + } + }, + "node_modules/tsx": { + "version": "4.19.3", + "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.19.3.tgz", + "integrity": "sha512-4H8vUNGNjQ4V2EOoGw005+c+dGuPSnhpPBPHBtsZdGZBk/iJb4kguGlPWaZTZ3q5nMtFOEsY0nRDlh9PJyd6SQ==", + "license": "MIT", + "dependencies": { + "esbuild": "~0.25.0", + "get-tsconfig": "^4.7.5" + }, + "bin": { + "tsx": "dist/cli.mjs" + }, + "engines": { + "node": ">=18.0.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + } + }, "node_modules/typescript": { "version": "5.8.3", "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz", diff --git a/package.json b/package.json index bad1811..00ec099 100644 --- a/package.json +++ b/package.json @@ -11,5 +11,9 @@ "devDependencies": { "commitlint": "^19.8.0", "husky": "^9.1.7" + }, + "dependencies": { + "tsc": "^2.0.4", + "tsx": "^4.19.3" } } diff --git a/src/main/java/com/uncreativebunch/magicmod/datagen/DataGenerator.java b/src/main/java/com/uncreativebunch/magicmod/datagen/DataGenerator.java new file mode 100644 index 0000000..f5e2a80 --- /dev/null +++ b/src/main/java/com/uncreativebunch/magicmod/datagen/DataGenerator.java @@ -0,0 +1,18 @@ +package com.uncreativebunch.magicmod.datagen; + +import com.uncreativebunch.magicmod.MagicMod; +import net.fabricmc.fabric.api.datagen.v1.DataGeneratorEntrypoint; +import net.fabricmc.fabric.api.datagen.v1.FabricDataGenerator; +import net.minecraft.recipe.RecipeManager; + +public class DataGenerator implements DataGeneratorEntrypoint { + @Override + public void onInitializeDataGenerator(FabricDataGenerator dataGenerator) { + FabricDataGenerator.Pack pack = dataGenerator.createPack(); + + MagicMod.LOGGER.info("Hello from the data generator!"); + + // Add providers to the pack here. + pack.addProvider(StickTagRecipeProvider::new); + } +} diff --git a/src/main/java/com/uncreativebunch/magicmod/datagen/StickTagRecipeProvider.java b/src/main/java/com/uncreativebunch/magicmod/datagen/StickTagRecipeProvider.java new file mode 100644 index 0000000..7c3da6d --- /dev/null +++ b/src/main/java/com/uncreativebunch/magicmod/datagen/StickTagRecipeProvider.java @@ -0,0 +1,32 @@ +package com.uncreativebunch.magicmod.datagen; + +import com.uncreativebunch.magicmod.MagicMod; +import net.fabricmc.fabric.api.datagen.v1.FabricDataOutput; +import net.fabricmc.fabric.api.datagen.v1.provider.FabricRecipeProvider; +import net.minecraft.data.recipe.RecipeExporter; +import net.minecraft.data.recipe.RecipeGenerator; +import net.minecraft.registry.RegistryWrapper; + +import java.util.concurrent.CompletableFuture; + +public class StickTagRecipeProvider extends FabricRecipeProvider { + public StickTagRecipeProvider(FabricDataOutput output, CompletableFuture registriesFuture) { + super(output, registriesFuture); + } + + @Override + protected RecipeGenerator getRecipeGenerator(RegistryWrapper.WrapperLookup lookup, RecipeExporter exporter) { + return new RecipeGenerator(lookup, exporter) { + @Override + public void generate() { + MagicMod.LOGGER.info("Hello from the recipe provider!"); + MagicMod.LOGGER.info("This cannot scan recipes - apparently they don't exist in this context."); + } + }; + } + + @Override + public String getName() { + return "StickTagRecipeProvider"; + } +} diff --git a/src/main/resources/data/magic_mod/recipe/acacia_fence.json b/src/main/resources/data/magic_mod/recipe/acacia_fence.json new file mode 100644 index 0000000..87b304d --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/acacia_fence.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"misc","group":"wooden_fence","key":{"#":"#magic_mod:sticks","W":"minecraft:acacia_planks"},"pattern":["W#W","W#W"],"result":{"count":3,"id":"minecraft:acacia_fence"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/acacia_fence_gate.json b/src/main/resources/data/magic_mod/recipe/acacia_fence_gate.json new file mode 100644 index 0000000..b5e2551 --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/acacia_fence_gate.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"redstone","group":"wooden_fence_gate","key":{"#":"#magic_mod:sticks","W":"minecraft:acacia_planks"},"pattern":["#W#","#W#"],"result":{"count":1,"id":"minecraft:acacia_fence_gate"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/acacia_sign.json b/src/main/resources/data/magic_mod/recipe/acacia_sign.json new file mode 100644 index 0000000..0dc5eaf --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/acacia_sign.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"misc","group":"wooden_sign","key":{"#":"minecraft:acacia_planks","X":"#magic_mod:sticks"},"pattern":["###","###"," X "],"result":{"count":3,"id":"minecraft:acacia_sign"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/activator_rail.json b/src/main/resources/data/magic_mod/recipe/activator_rail.json new file mode 100644 index 0000000..ce4af62 --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/activator_rail.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"misc","key":{"#":"minecraft:redstone_torch","S":"#magic_mod:sticks","X":"minecraft:iron_ingot"},"pattern":["XSX","X#X","XSX"],"result":{"count":6,"id":"minecraft:activator_rail"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/armor_stand.json b/src/main/resources/data/magic_mod/recipe/armor_stand.json new file mode 100644 index 0000000..376e0ed --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/armor_stand.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"misc","key":{"/":"#magic_mod:sticks","_":"minecraft:smooth_stone_slab"},"pattern":["///"," / ","/_/"],"result":{"count":1,"id":"minecraft:armor_stand"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/arrow.json b/src/main/resources/data/magic_mod/recipe/arrow.json new file mode 100644 index 0000000..62a004a --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/arrow.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"equipment","key":{"#":"#magic_mod:sticks","X":"minecraft:flint","Y":"minecraft:feather"},"pattern":["X","#","Y"],"result":{"count":4,"id":"minecraft:arrow"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/bamboo_fence.json b/src/main/resources/data/magic_mod/recipe/bamboo_fence.json new file mode 100644 index 0000000..62b51b0 --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/bamboo_fence.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"misc","group":"wooden_fence","key":{"#":"#magic_mod:sticks","W":"minecraft:bamboo_planks"},"pattern":["W#W","W#W"],"result":{"count":3,"id":"minecraft:bamboo_fence"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/bamboo_fence_gate.json b/src/main/resources/data/magic_mod/recipe/bamboo_fence_gate.json new file mode 100644 index 0000000..b4a23a6 --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/bamboo_fence_gate.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"redstone","group":"wooden_fence_gate","key":{"#":"#magic_mod:sticks","W":"minecraft:bamboo_planks"},"pattern":["#W#","#W#"],"result":{"count":1,"id":"minecraft:bamboo_fence_gate"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/bamboo_sign.json b/src/main/resources/data/magic_mod/recipe/bamboo_sign.json new file mode 100644 index 0000000..08a2cec --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/bamboo_sign.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"misc","group":"wooden_sign","key":{"#":"minecraft:bamboo_planks","X":"#magic_mod:sticks"},"pattern":["###","###"," X "],"result":{"count":3,"id":"minecraft:bamboo_sign"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/birch_fence.json b/src/main/resources/data/magic_mod/recipe/birch_fence.json new file mode 100644 index 0000000..15e00f1 --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/birch_fence.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"misc","group":"wooden_fence","key":{"#":"#magic_mod:sticks","W":"minecraft:birch_planks"},"pattern":["W#W","W#W"],"result":{"count":3,"id":"minecraft:birch_fence"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/birch_fence_gate.json b/src/main/resources/data/magic_mod/recipe/birch_fence_gate.json new file mode 100644 index 0000000..7ea94ca --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/birch_fence_gate.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"redstone","group":"wooden_fence_gate","key":{"#":"#magic_mod:sticks","W":"minecraft:birch_planks"},"pattern":["#W#","#W#"],"result":{"count":1,"id":"minecraft:birch_fence_gate"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/birch_sign.json b/src/main/resources/data/magic_mod/recipe/birch_sign.json new file mode 100644 index 0000000..a7c7a48 --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/birch_sign.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"misc","group":"wooden_sign","key":{"#":"minecraft:birch_planks","X":"#magic_mod:sticks"},"pattern":["###","###"," X "],"result":{"count":3,"id":"minecraft:birch_sign"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/black_banner.json b/src/main/resources/data/magic_mod/recipe/black_banner.json new file mode 100644 index 0000000..aa6523d --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/black_banner.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"misc","group":"banner","key":{"#":"minecraft:black_wool","|":"#magic_mod:sticks"},"pattern":["###","###"," | "],"result":{"count":1,"id":"minecraft:black_banner"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/blue_banner.json b/src/main/resources/data/magic_mod/recipe/blue_banner.json new file mode 100644 index 0000000..91dc4fb --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/blue_banner.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"misc","group":"banner","key":{"#":"minecraft:blue_wool","|":"#magic_mod:sticks"},"pattern":["###","###"," | "],"result":{"count":1,"id":"minecraft:blue_banner"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/bow.json b/src/main/resources/data/magic_mod/recipe/bow.json new file mode 100644 index 0000000..3a382ae --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/bow.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"equipment","key":{"#":"#magic_mod:sticks","X":"minecraft:string"},"pattern":[" #X","# X"," #X"],"result":{"count":1,"id":"minecraft:bow"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/brown_banner.json b/src/main/resources/data/magic_mod/recipe/brown_banner.json new file mode 100644 index 0000000..87abd99 --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/brown_banner.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"misc","group":"banner","key":{"#":"minecraft:brown_wool","|":"#magic_mod:sticks"},"pattern":["###","###"," | "],"result":{"count":1,"id":"minecraft:brown_banner"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/brush.json b/src/main/resources/data/magic_mod/recipe/brush.json new file mode 100644 index 0000000..a8d1f29 --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/brush.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"equipment","key":{"#":"minecraft:copper_ingot","I":"#magic_mod:sticks","X":"minecraft:feather"},"pattern":["X","#","I"],"result":{"count":1,"id":"minecraft:brush"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/campfire.json b/src/main/resources/data/magic_mod/recipe/campfire.json new file mode 100644 index 0000000..fbd9057 --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/campfire.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"misc","key":{"C":"#minecraft:coals","L":"#minecraft:logs","S":"#magic_mod:sticks"},"pattern":[" S ","SCS","LLL"],"result":{"count":1,"id":"minecraft:campfire"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/cherry_fence.json b/src/main/resources/data/magic_mod/recipe/cherry_fence.json new file mode 100644 index 0000000..d406720 --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/cherry_fence.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"misc","group":"wooden_fence","key":{"#":"#magic_mod:sticks","W":"minecraft:cherry_planks"},"pattern":["W#W","W#W"],"result":{"count":3,"id":"minecraft:cherry_fence"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/cherry_fence_gate.json b/src/main/resources/data/magic_mod/recipe/cherry_fence_gate.json new file mode 100644 index 0000000..4766613 --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/cherry_fence_gate.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"redstone","group":"wooden_fence_gate","key":{"#":"#magic_mod:sticks","W":"minecraft:cherry_planks"},"pattern":["#W#","#W#"],"result":{"count":1,"id":"minecraft:cherry_fence_gate"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/cherry_sign.json b/src/main/resources/data/magic_mod/recipe/cherry_sign.json new file mode 100644 index 0000000..f7a26c5 --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/cherry_sign.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"misc","group":"wooden_sign","key":{"#":"minecraft:cherry_planks","X":"#magic_mod:sticks"},"pattern":["###","###"," X "],"result":{"count":3,"id":"minecraft:cherry_sign"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/crimson_fence.json b/src/main/resources/data/magic_mod/recipe/crimson_fence.json new file mode 100644 index 0000000..10d365b --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/crimson_fence.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"misc","group":"wooden_fence","key":{"#":"#magic_mod:sticks","W":"minecraft:crimson_planks"},"pattern":["W#W","W#W"],"result":{"count":3,"id":"minecraft:crimson_fence"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/crimson_fence_gate.json b/src/main/resources/data/magic_mod/recipe/crimson_fence_gate.json new file mode 100644 index 0000000..de61e10 --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/crimson_fence_gate.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"redstone","group":"wooden_fence_gate","key":{"#":"#magic_mod:sticks","W":"minecraft:crimson_planks"},"pattern":["#W#","#W#"],"result":{"count":1,"id":"minecraft:crimson_fence_gate"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/crimson_sign.json b/src/main/resources/data/magic_mod/recipe/crimson_sign.json new file mode 100644 index 0000000..b96692f --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/crimson_sign.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"misc","group":"wooden_sign","key":{"#":"minecraft:crimson_planks","X":"#magic_mod:sticks"},"pattern":["###","###"," X "],"result":{"count":3,"id":"minecraft:crimson_sign"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/crossbow.json b/src/main/resources/data/magic_mod/recipe/crossbow.json new file mode 100644 index 0000000..6672984 --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/crossbow.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"equipment","key":{"#":"#magic_mod:sticks","$":"minecraft:tripwire_hook","&":"minecraft:iron_ingot","~":"minecraft:string"},"pattern":["#&#","~$~"," # "],"result":{"count":1,"id":"minecraft:crossbow"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/cyan_banner.json b/src/main/resources/data/magic_mod/recipe/cyan_banner.json new file mode 100644 index 0000000..2310bde --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/cyan_banner.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"misc","group":"banner","key":{"#":"minecraft:cyan_wool","|":"#magic_mod:sticks"},"pattern":["###","###"," | "],"result":{"count":1,"id":"minecraft:cyan_banner"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/dark_oak_fence.json b/src/main/resources/data/magic_mod/recipe/dark_oak_fence.json new file mode 100644 index 0000000..634f0b6 --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/dark_oak_fence.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"misc","group":"wooden_fence","key":{"#":"#magic_mod:sticks","W":"minecraft:dark_oak_planks"},"pattern":["W#W","W#W"],"result":{"count":3,"id":"minecraft:dark_oak_fence"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/dark_oak_fence_gate.json b/src/main/resources/data/magic_mod/recipe/dark_oak_fence_gate.json new file mode 100644 index 0000000..681ebc6 --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/dark_oak_fence_gate.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"redstone","group":"wooden_fence_gate","key":{"#":"#magic_mod:sticks","W":"minecraft:dark_oak_planks"},"pattern":["#W#","#W#"],"result":{"count":1,"id":"minecraft:dark_oak_fence_gate"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/dark_oak_sign.json b/src/main/resources/data/magic_mod/recipe/dark_oak_sign.json new file mode 100644 index 0000000..2e4dde8 --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/dark_oak_sign.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"misc","group":"wooden_sign","key":{"#":"minecraft:dark_oak_planks","X":"#magic_mod:sticks"},"pattern":["###","###"," X "],"result":{"count":3,"id":"minecraft:dark_oak_sign"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/diamond_axe.json b/src/main/resources/data/magic_mod/recipe/diamond_axe.json new file mode 100644 index 0000000..e34d2cd --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/diamond_axe.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"equipment","key":{"#":"#magic_mod:sticks","X":"#minecraft:diamond_tool_materials"},"pattern":["XX","X#"," #"],"result":{"count":1,"id":"minecraft:diamond_axe"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/diamond_hoe.json b/src/main/resources/data/magic_mod/recipe/diamond_hoe.json new file mode 100644 index 0000000..ecca33c --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/diamond_hoe.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"equipment","key":{"#":"#magic_mod:sticks","X":"#minecraft:diamond_tool_materials"},"pattern":["XX"," #"," #"],"result":{"count":1,"id":"minecraft:diamond_hoe"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/diamond_pickaxe.json b/src/main/resources/data/magic_mod/recipe/diamond_pickaxe.json new file mode 100644 index 0000000..590063a --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/diamond_pickaxe.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"equipment","key":{"#":"#magic_mod:sticks","X":"#minecraft:diamond_tool_materials"},"pattern":["XXX"," # "," # "],"result":{"count":1,"id":"minecraft:diamond_pickaxe"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/diamond_shovel.json b/src/main/resources/data/magic_mod/recipe/diamond_shovel.json new file mode 100644 index 0000000..006ec0c --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/diamond_shovel.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"equipment","key":{"#":"#magic_mod:sticks","X":"#minecraft:diamond_tool_materials"},"pattern":["X","#","#"],"result":{"count":1,"id":"minecraft:diamond_shovel"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/diamond_sword.json b/src/main/resources/data/magic_mod/recipe/diamond_sword.json new file mode 100644 index 0000000..6c89ef7 --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/diamond_sword.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"equipment","key":{"#":"#magic_mod:sticks","X":"#minecraft:diamond_tool_materials"},"pattern":["X","X","#"],"result":{"count":1,"id":"minecraft:diamond_sword"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/fishing_rod.json b/src/main/resources/data/magic_mod/recipe/fishing_rod.json new file mode 100644 index 0000000..d6139e8 --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/fishing_rod.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"equipment","key":{"#":"#magic_mod:sticks","X":"minecraft:string"},"pattern":[" #"," #X","# X"],"result":{"count":1,"id":"minecraft:fishing_rod"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/golden_axe.json b/src/main/resources/data/magic_mod/recipe/golden_axe.json new file mode 100644 index 0000000..77b27b1 --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/golden_axe.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"equipment","key":{"#":"#magic_mod:sticks","X":"#minecraft:gold_tool_materials"},"pattern":["XX","X#"," #"],"result":{"count":1,"id":"minecraft:golden_axe"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/golden_hoe.json b/src/main/resources/data/magic_mod/recipe/golden_hoe.json new file mode 100644 index 0000000..5c0e10e --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/golden_hoe.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"equipment","key":{"#":"#magic_mod:sticks","X":"#minecraft:gold_tool_materials"},"pattern":["XX"," #"," #"],"result":{"count":1,"id":"minecraft:golden_hoe"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/golden_pickaxe.json b/src/main/resources/data/magic_mod/recipe/golden_pickaxe.json new file mode 100644 index 0000000..987d1d1 --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/golden_pickaxe.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"equipment","key":{"#":"#magic_mod:sticks","X":"#minecraft:gold_tool_materials"},"pattern":["XXX"," # "," # "],"result":{"count":1,"id":"minecraft:golden_pickaxe"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/golden_shovel.json b/src/main/resources/data/magic_mod/recipe/golden_shovel.json new file mode 100644 index 0000000..64f1abe --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/golden_shovel.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"equipment","key":{"#":"#magic_mod:sticks","X":"#minecraft:gold_tool_materials"},"pattern":["X","#","#"],"result":{"count":1,"id":"minecraft:golden_shovel"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/golden_sword.json b/src/main/resources/data/magic_mod/recipe/golden_sword.json new file mode 100644 index 0000000..889f83f --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/golden_sword.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"equipment","key":{"#":"#magic_mod:sticks","X":"#minecraft:gold_tool_materials"},"pattern":["X","X","#"],"result":{"count":1,"id":"minecraft:golden_sword"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/gray_banner.json b/src/main/resources/data/magic_mod/recipe/gray_banner.json new file mode 100644 index 0000000..32cfbb0 --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/gray_banner.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"misc","group":"banner","key":{"#":"minecraft:gray_wool","|":"#magic_mod:sticks"},"pattern":["###","###"," | "],"result":{"count":1,"id":"minecraft:gray_banner"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/green_banner.json b/src/main/resources/data/magic_mod/recipe/green_banner.json new file mode 100644 index 0000000..982eb20 --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/green_banner.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"misc","group":"banner","key":{"#":"minecraft:green_wool","|":"#magic_mod:sticks"},"pattern":["###","###"," | "],"result":{"count":1,"id":"minecraft:green_banner"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/grindstone.json b/src/main/resources/data/magic_mod/recipe/grindstone.json new file mode 100644 index 0000000..2640aa5 --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/grindstone.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"misc","key":{"#":"#minecraft:planks","-":"minecraft:stone_slab","I":"#magic_mod:sticks"},"pattern":["I-I","# #"],"result":{"count":1,"id":"minecraft:grindstone"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/iron_axe.json b/src/main/resources/data/magic_mod/recipe/iron_axe.json new file mode 100644 index 0000000..104f956 --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/iron_axe.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"equipment","key":{"#":"#magic_mod:sticks","X":"#minecraft:iron_tool_materials"},"pattern":["XX","X#"," #"],"result":{"count":1,"id":"minecraft:iron_axe"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/iron_hoe.json b/src/main/resources/data/magic_mod/recipe/iron_hoe.json new file mode 100644 index 0000000..6c04779 --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/iron_hoe.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"equipment","key":{"#":"#magic_mod:sticks","X":"#minecraft:iron_tool_materials"},"pattern":["XX"," #"," #"],"result":{"count":1,"id":"minecraft:iron_hoe"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/iron_pickaxe.json b/src/main/resources/data/magic_mod/recipe/iron_pickaxe.json new file mode 100644 index 0000000..11aad90 --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/iron_pickaxe.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"equipment","key":{"#":"#magic_mod:sticks","X":"#minecraft:iron_tool_materials"},"pattern":["XXX"," # "," # "],"result":{"count":1,"id":"minecraft:iron_pickaxe"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/iron_shovel.json b/src/main/resources/data/magic_mod/recipe/iron_shovel.json new file mode 100644 index 0000000..bd3b4a5 --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/iron_shovel.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"equipment","key":{"#":"#magic_mod:sticks","X":"#minecraft:iron_tool_materials"},"pattern":["X","#","#"],"result":{"count":1,"id":"minecraft:iron_shovel"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/iron_sword.json b/src/main/resources/data/magic_mod/recipe/iron_sword.json new file mode 100644 index 0000000..28a9409 --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/iron_sword.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"equipment","key":{"#":"#magic_mod:sticks","X":"#minecraft:iron_tool_materials"},"pattern":["X","X","#"],"result":{"count":1,"id":"minecraft:iron_sword"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/item_frame.json b/src/main/resources/data/magic_mod/recipe/item_frame.json new file mode 100644 index 0000000..a66e0f5 --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/item_frame.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"misc","key":{"#":"#magic_mod:sticks","X":"minecraft:leather"},"pattern":["###","#X#","###"],"result":{"count":1,"id":"minecraft:item_frame"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/jungle_fence.json b/src/main/resources/data/magic_mod/recipe/jungle_fence.json new file mode 100644 index 0000000..ade5641 --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/jungle_fence.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"misc","group":"wooden_fence","key":{"#":"#magic_mod:sticks","W":"minecraft:jungle_planks"},"pattern":["W#W","W#W"],"result":{"count":3,"id":"minecraft:jungle_fence"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/jungle_fence_gate.json b/src/main/resources/data/magic_mod/recipe/jungle_fence_gate.json new file mode 100644 index 0000000..eb9bc55 --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/jungle_fence_gate.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"redstone","group":"wooden_fence_gate","key":{"#":"#magic_mod:sticks","W":"minecraft:jungle_planks"},"pattern":["#W#","#W#"],"result":{"count":1,"id":"minecraft:jungle_fence_gate"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/jungle_sign.json b/src/main/resources/data/magic_mod/recipe/jungle_sign.json new file mode 100644 index 0000000..3766a7e --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/jungle_sign.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"misc","group":"wooden_sign","key":{"#":"minecraft:jungle_planks","X":"#magic_mod:sticks"},"pattern":["###","###"," X "],"result":{"count":3,"id":"minecraft:jungle_sign"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/ladder.json b/src/main/resources/data/magic_mod/recipe/ladder.json new file mode 100644 index 0000000..1032bb4 --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/ladder.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"misc","key":{"#":"#magic_mod:sticks"},"pattern":["# #","###","# #"],"result":{"count":3,"id":"minecraft:ladder"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/lever.json b/src/main/resources/data/magic_mod/recipe/lever.json new file mode 100644 index 0000000..17dc000 --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/lever.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"redstone","key":{"#":"minecraft:cobblestone","X":"#magic_mod:sticks"},"pattern":["X","#"],"result":{"count":1,"id":"minecraft:lever"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/light_blue_banner.json b/src/main/resources/data/magic_mod/recipe/light_blue_banner.json new file mode 100644 index 0000000..bfd9af4 --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/light_blue_banner.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"misc","group":"banner","key":{"#":"minecraft:light_blue_wool","|":"#magic_mod:sticks"},"pattern":["###","###"," | "],"result":{"count":1,"id":"minecraft:light_blue_banner"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/light_gray_banner.json b/src/main/resources/data/magic_mod/recipe/light_gray_banner.json new file mode 100644 index 0000000..ac09e5c --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/light_gray_banner.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"misc","group":"banner","key":{"#":"minecraft:light_gray_wool","|":"#magic_mod:sticks"},"pattern":["###","###"," | "],"result":{"count":1,"id":"minecraft:light_gray_banner"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/lime_banner.json b/src/main/resources/data/magic_mod/recipe/lime_banner.json new file mode 100644 index 0000000..69fcb5b --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/lime_banner.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"misc","group":"banner","key":{"#":"minecraft:lime_wool","|":"#magic_mod:sticks"},"pattern":["###","###"," | "],"result":{"count":1,"id":"minecraft:lime_banner"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/magenta_banner.json b/src/main/resources/data/magic_mod/recipe/magenta_banner.json new file mode 100644 index 0000000..0b84dc0 --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/magenta_banner.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"misc","group":"banner","key":{"#":"minecraft:magenta_wool","|":"#magic_mod:sticks"},"pattern":["###","###"," | "],"result":{"count":1,"id":"minecraft:magenta_banner"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/mangrove_fence.json b/src/main/resources/data/magic_mod/recipe/mangrove_fence.json new file mode 100644 index 0000000..9cabed2 --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/mangrove_fence.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"misc","group":"wooden_fence","key":{"#":"#magic_mod:sticks","W":"minecraft:mangrove_planks"},"pattern":["W#W","W#W"],"result":{"count":3,"id":"minecraft:mangrove_fence"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/mangrove_fence_gate.json b/src/main/resources/data/magic_mod/recipe/mangrove_fence_gate.json new file mode 100644 index 0000000..f5ffa01 --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/mangrove_fence_gate.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"redstone","group":"wooden_fence_gate","key":{"#":"#magic_mod:sticks","W":"minecraft:mangrove_planks"},"pattern":["#W#","#W#"],"result":{"count":1,"id":"minecraft:mangrove_fence_gate"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/mangrove_sign.json b/src/main/resources/data/magic_mod/recipe/mangrove_sign.json new file mode 100644 index 0000000..7de6297 --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/mangrove_sign.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"misc","group":"wooden_sign","key":{"#":"minecraft:mangrove_planks","X":"#magic_mod:sticks"},"pattern":["###","###"," X "],"result":{"count":3,"id":"minecraft:mangrove_sign"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/oak_fence.json b/src/main/resources/data/magic_mod/recipe/oak_fence.json new file mode 100644 index 0000000..e37970a --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/oak_fence.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"misc","group":"wooden_fence","key":{"#":"#magic_mod:sticks","W":"minecraft:oak_planks"},"pattern":["W#W","W#W"],"result":{"count":3,"id":"minecraft:oak_fence"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/oak_fence_gate.json b/src/main/resources/data/magic_mod/recipe/oak_fence_gate.json new file mode 100644 index 0000000..bd0d6f4 --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/oak_fence_gate.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"redstone","group":"wooden_fence_gate","key":{"#":"#magic_mod:sticks","W":"minecraft:oak_planks"},"pattern":["#W#","#W#"],"result":{"count":1,"id":"minecraft:oak_fence_gate"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/oak_sign.json b/src/main/resources/data/magic_mod/recipe/oak_sign.json new file mode 100644 index 0000000..d2e9b8d --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/oak_sign.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"misc","group":"wooden_sign","key":{"#":"minecraft:oak_planks","X":"#magic_mod:sticks"},"pattern":["###","###"," X "],"result":{"count":3,"id":"minecraft:oak_sign"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/orange_banner.json b/src/main/resources/data/magic_mod/recipe/orange_banner.json new file mode 100644 index 0000000..9dc48b5 --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/orange_banner.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"misc","group":"banner","key":{"#":"minecraft:orange_wool","|":"#magic_mod:sticks"},"pattern":["###","###"," | "],"result":{"count":1,"id":"minecraft:orange_banner"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/painting.json b/src/main/resources/data/magic_mod/recipe/painting.json new file mode 100644 index 0000000..08eab06 --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/painting.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"misc","key":{"#":"#magic_mod:sticks","X":"#minecraft:wool"},"pattern":["###","#X#","###"],"result":{"count":1,"id":"minecraft:painting"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/pale_oak_fence.json b/src/main/resources/data/magic_mod/recipe/pale_oak_fence.json new file mode 100644 index 0000000..e706806 --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/pale_oak_fence.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"misc","group":"wooden_fence","key":{"#":"#magic_mod:sticks","W":"minecraft:pale_oak_planks"},"pattern":["W#W","W#W"],"result":{"count":3,"id":"minecraft:pale_oak_fence"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/pale_oak_fence_gate.json b/src/main/resources/data/magic_mod/recipe/pale_oak_fence_gate.json new file mode 100644 index 0000000..97978ee --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/pale_oak_fence_gate.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"redstone","group":"wooden_fence_gate","key":{"#":"#magic_mod:sticks","W":"minecraft:pale_oak_planks"},"pattern":["#W#","#W#"],"result":{"count":1,"id":"minecraft:pale_oak_fence_gate"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/pale_oak_sign.json b/src/main/resources/data/magic_mod/recipe/pale_oak_sign.json new file mode 100644 index 0000000..6b92c1b --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/pale_oak_sign.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"misc","group":"wooden_sign","key":{"#":"minecraft:pale_oak_planks","X":"#magic_mod:sticks"},"pattern":["###","###"," X "],"result":{"count":3,"id":"minecraft:pale_oak_sign"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/pink_banner.json b/src/main/resources/data/magic_mod/recipe/pink_banner.json new file mode 100644 index 0000000..42a5018 --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/pink_banner.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"misc","group":"banner","key":{"#":"minecraft:pink_wool","|":"#magic_mod:sticks"},"pattern":["###","###"," | "],"result":{"count":1,"id":"minecraft:pink_banner"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/powered_rail.json b/src/main/resources/data/magic_mod/recipe/powered_rail.json new file mode 100644 index 0000000..d404fcf --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/powered_rail.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"misc","key":{"#":"#magic_mod:sticks","R":"minecraft:redstone","X":"minecraft:gold_ingot"},"pattern":["X X","X#X","XRX"],"result":{"count":6,"id":"minecraft:powered_rail"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/purple_banner.json b/src/main/resources/data/magic_mod/recipe/purple_banner.json new file mode 100644 index 0000000..ba162a1 --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/purple_banner.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"misc","group":"banner","key":{"#":"minecraft:purple_wool","|":"#magic_mod:sticks"},"pattern":["###","###"," | "],"result":{"count":1,"id":"minecraft:purple_banner"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/rail.json b/src/main/resources/data/magic_mod/recipe/rail.json new file mode 100644 index 0000000..15d460a --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/rail.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"misc","key":{"#":"#magic_mod:sticks","X":"minecraft:iron_ingot"},"pattern":["X X","X#X","X X"],"result":{"count":16,"id":"minecraft:rail"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/red_banner.json b/src/main/resources/data/magic_mod/recipe/red_banner.json new file mode 100644 index 0000000..879ca7e --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/red_banner.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"misc","group":"banner","key":{"#":"minecraft:red_wool","|":"#magic_mod:sticks"},"pattern":["###","###"," | "],"result":{"count":1,"id":"minecraft:red_banner"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/redstone_torch.json b/src/main/resources/data/magic_mod/recipe/redstone_torch.json new file mode 100644 index 0000000..a79b4fc --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/redstone_torch.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"redstone","key":{"#":"#magic_mod:sticks","X":"minecraft:redstone"},"pattern":["X","#"],"result":{"count":1,"id":"minecraft:redstone_torch"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/soul_campfire.json b/src/main/resources/data/magic_mod/recipe/soul_campfire.json new file mode 100644 index 0000000..8f52022 --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/soul_campfire.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"misc","key":{"#":"#minecraft:soul_fire_base_blocks","L":"#minecraft:logs","S":"#magic_mod:sticks"},"pattern":[" S ","S#S","LLL"],"result":{"count":1,"id":"minecraft:soul_campfire"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/soul_torch.json b/src/main/resources/data/magic_mod/recipe/soul_torch.json new file mode 100644 index 0000000..3e33976 --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/soul_torch.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"misc","key":{"#":"#magic_mod:sticks","S":"#minecraft:soul_fire_base_blocks","X":["minecraft:coal","minecraft:charcoal"]},"pattern":["X","#","S"],"result":{"count":4,"id":"minecraft:soul_torch"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/spruce_fence.json b/src/main/resources/data/magic_mod/recipe/spruce_fence.json new file mode 100644 index 0000000..12871ec --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/spruce_fence.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"misc","group":"wooden_fence","key":{"#":"#magic_mod:sticks","W":"minecraft:spruce_planks"},"pattern":["W#W","W#W"],"result":{"count":3,"id":"minecraft:spruce_fence"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/spruce_fence_gate.json b/src/main/resources/data/magic_mod/recipe/spruce_fence_gate.json new file mode 100644 index 0000000..9e2b78a --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/spruce_fence_gate.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"redstone","group":"wooden_fence_gate","key":{"#":"#magic_mod:sticks","W":"minecraft:spruce_planks"},"pattern":["#W#","#W#"],"result":{"count":1,"id":"minecraft:spruce_fence_gate"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/spruce_sign.json b/src/main/resources/data/magic_mod/recipe/spruce_sign.json new file mode 100644 index 0000000..5ca1eac --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/spruce_sign.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"misc","group":"wooden_sign","key":{"#":"minecraft:spruce_planks","X":"#magic_mod:sticks"},"pattern":["###","###"," X "],"result":{"count":3,"id":"minecraft:spruce_sign"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/stone_axe.json b/src/main/resources/data/magic_mod/recipe/stone_axe.json new file mode 100644 index 0000000..c995c0f --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/stone_axe.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"equipment","key":{"#":"#magic_mod:sticks","X":"#minecraft:stone_tool_materials"},"pattern":["XX","X#"," #"],"result":{"count":1,"id":"minecraft:stone_axe"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/stone_hoe.json b/src/main/resources/data/magic_mod/recipe/stone_hoe.json new file mode 100644 index 0000000..329e54e --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/stone_hoe.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"equipment","key":{"#":"#magic_mod:sticks","X":"#minecraft:stone_tool_materials"},"pattern":["XX"," #"," #"],"result":{"count":1,"id":"minecraft:stone_hoe"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/stone_pickaxe.json b/src/main/resources/data/magic_mod/recipe/stone_pickaxe.json new file mode 100644 index 0000000..b353fa1 --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/stone_pickaxe.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"equipment","key":{"#":"#magic_mod:sticks","X":"#minecraft:stone_tool_materials"},"pattern":["XXX"," # "," # "],"result":{"count":1,"id":"minecraft:stone_pickaxe"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/stone_shovel.json b/src/main/resources/data/magic_mod/recipe/stone_shovel.json new file mode 100644 index 0000000..7cc7e83 --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/stone_shovel.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"equipment","key":{"#":"#magic_mod:sticks","X":"#minecraft:stone_tool_materials"},"pattern":["X","#","#"],"result":{"count":1,"id":"minecraft:stone_shovel"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/stone_sword.json b/src/main/resources/data/magic_mod/recipe/stone_sword.json new file mode 100644 index 0000000..3231435 --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/stone_sword.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"equipment","key":{"#":"#magic_mod:sticks","X":"#minecraft:stone_tool_materials"},"pattern":["X","X","#"],"result":{"count":1,"id":"minecraft:stone_sword"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/torch.json b/src/main/resources/data/magic_mod/recipe/torch.json new file mode 100644 index 0000000..3daf531 --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/torch.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"misc","key":{"#":"#magic_mod:sticks","X":["minecraft:coal","minecraft:charcoal"]},"pattern":["X","#"],"result":{"count":4,"id":"minecraft:torch"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/tripwire_hook.json b/src/main/resources/data/magic_mod/recipe/tripwire_hook.json new file mode 100644 index 0000000..e892deb --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/tripwire_hook.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"redstone","key":{"#":"#minecraft:planks","I":"minecraft:iron_ingot","S":"#magic_mod:sticks"},"pattern":["I","S","#"],"result":{"count":2,"id":"minecraft:tripwire_hook"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/warped_fence.json b/src/main/resources/data/magic_mod/recipe/warped_fence.json new file mode 100644 index 0000000..811d8f6 --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/warped_fence.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"misc","group":"wooden_fence","key":{"#":"#magic_mod:sticks","W":"minecraft:warped_planks"},"pattern":["W#W","W#W"],"result":{"count":3,"id":"minecraft:warped_fence"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/warped_fence_gate.json b/src/main/resources/data/magic_mod/recipe/warped_fence_gate.json new file mode 100644 index 0000000..0ac5649 --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/warped_fence_gate.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"redstone","group":"wooden_fence_gate","key":{"#":"#magic_mod:sticks","W":"minecraft:warped_planks"},"pattern":["#W#","#W#"],"result":{"count":1,"id":"minecraft:warped_fence_gate"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/warped_sign.json b/src/main/resources/data/magic_mod/recipe/warped_sign.json new file mode 100644 index 0000000..12520c3 --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/warped_sign.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"misc","group":"wooden_sign","key":{"#":"minecraft:warped_planks","X":"#magic_mod:sticks"},"pattern":["###","###"," X "],"result":{"count":3,"id":"minecraft:warped_sign"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/white_banner.json b/src/main/resources/data/magic_mod/recipe/white_banner.json new file mode 100644 index 0000000..0d3f8f8 --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/white_banner.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"misc","group":"banner","key":{"#":"minecraft:white_wool","|":"#magic_mod:sticks"},"pattern":["###","###"," | "],"result":{"count":1,"id":"minecraft:white_banner"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/wooden_axe.json b/src/main/resources/data/magic_mod/recipe/wooden_axe.json new file mode 100644 index 0000000..df2137d --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/wooden_axe.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"equipment","key":{"#":"#magic_mod:sticks","X":"#minecraft:wooden_tool_materials"},"pattern":["XX","X#"," #"],"result":{"count":1,"id":"minecraft:wooden_axe"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/wooden_hoe.json b/src/main/resources/data/magic_mod/recipe/wooden_hoe.json new file mode 100644 index 0000000..c186307 --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/wooden_hoe.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"equipment","key":{"#":"#magic_mod:sticks","X":"#minecraft:wooden_tool_materials"},"pattern":["XX"," #"," #"],"result":{"count":1,"id":"minecraft:wooden_hoe"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/wooden_pickaxe.json b/src/main/resources/data/magic_mod/recipe/wooden_pickaxe.json new file mode 100644 index 0000000..b2ffcf7 --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/wooden_pickaxe.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"equipment","key":{"#":"#magic_mod:sticks","X":"#minecraft:wooden_tool_materials"},"pattern":["XXX"," # "," # "],"result":{"count":1,"id":"minecraft:wooden_pickaxe"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/wooden_shovel.json b/src/main/resources/data/magic_mod/recipe/wooden_shovel.json new file mode 100644 index 0000000..eb54791 --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/wooden_shovel.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"equipment","key":{"#":"#magic_mod:sticks","X":"#minecraft:wooden_tool_materials"},"pattern":["X","#","#"],"result":{"count":1,"id":"minecraft:wooden_shovel"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/wooden_sword.json b/src/main/resources/data/magic_mod/recipe/wooden_sword.json new file mode 100644 index 0000000..4863f06 --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/wooden_sword.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"equipment","key":{"#":"#magic_mod:sticks","X":"#minecraft:wooden_tool_materials"},"pattern":["X","X","#"],"result":{"count":1,"id":"minecraft:wooden_sword"}} \ No newline at end of file diff --git a/src/main/resources/data/magic_mod/recipe/yellow_banner.json b/src/main/resources/data/magic_mod/recipe/yellow_banner.json new file mode 100644 index 0000000..4ee0bb8 --- /dev/null +++ b/src/main/resources/data/magic_mod/recipe/yellow_banner.json @@ -0,0 +1 @@ +{"type":"minecraft:crafting_shaped","category":"misc","group":"banner","key":{"#":"minecraft:yellow_wool","|":"#magic_mod:sticks"},"pattern":["###","###"," | "],"result":{"count":1,"id":"minecraft:yellow_banner"}} \ No newline at end of file diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index ab67dc3..043e864 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -20,6 +20,9 @@ ], "client": [ "com.uncreativebunch.magicmod.MagicModClient" + ], + "fabric-datagen": [ + "com.uncreativebunch.magicmod.datagen.DataGenerator" ] }, "mixins": [ diff --git a/src/scripts/convertStickRecipes.ts b/src/scripts/convertStickRecipes.ts new file mode 100644 index 0000000..6d7dbe3 --- /dev/null +++ b/src/scripts/convertStickRecipes.ts @@ -0,0 +1,48 @@ +/** + * This script requires that you copy all of Minecraft's vanilla recipes into a + * folder named "recipe" within the same directory. + * + * You will also need to have NodeJS installed along with Typescript and tsx + * to run this script. + * + * Replace the values for the search and replace keys below this to search + * for and replace all of the correct ingredients. + */ + +/** The key to search for. This should almost always be a vanilla Minecraft item/tag id. */ +const searchKey = 'minecraft:stick'; +/** This is what replaces the search key. */ +const replaceKey = '#magic_mod:sticks'; + + +import * as fs from 'node:fs'; +import * as path from "node:path"; + +const targetDirectory = path.join(__dirname, '/recipe'); +console.log(`Target directory: ${targetDirectory}`); +fs.readdirSync(targetDirectory, { withFileTypes: false }).forEach(fileName => { + console.log(`File path: ${fileName}`); + fs.readFile(path.join(targetDirectory, fileName), 'utf8', (err, data) => { + if (err) { + console.error(err); + return; + } + + // Parse the json data. + const recipe = JSON.parse(data); + const ingredientKeys: { [key: string]: string } = recipe.key; + if (ingredientKeys) { + Object.keys(ingredientKeys).forEach(ingredientKey => { + if (ingredientKeys[ingredientKey] === searchKey) { + ingredientKeys[ingredientKey] = replaceKey; + //output the new file with the same name in a "processed" folder. + const newFilePath = __dirname + '/recipe/processed/' + fileName; + console.log("writing file to path " + newFilePath); + if (!fs.existsSync(path.dirname(newFilePath))) + fs.mkdirSync(path.dirname(newFilePath)); + fs.writeFileSync(newFilePath, JSON.stringify(recipe), { flag: ''}); + } + }); + } + }); +}); \ No newline at end of file