{"name":"prismarine-recipe","version":"1.4.0","keywords":["minecraft","recipe"],"author":{"name":"Romain Beaumont","email":"romain.rom1@gmail.com"},"license":"MIT","_id":"prismarine-recipe@1.4.0","maintainers":[{"name":"rom1504","email":"romain.rom1@gmail.com"}],"homepage":"https://github.com/PrismarineJS/prismarine-recipe#readme","bugs":{"url":"https://github.com/PrismarineJS/prismarine-recipe/issues"},"dist":{"shasum":"c00e53a6928aa5d341f0c5616068dacbfcd988a4","tarball":"http://registry-npm.ywwl.com/prismarine-recipe/download/prismarine-recipe-1.4.0.tgz","fileCount":13,"integrity":"sha512-ciR4f2XDoR7qw7ILo56GKdBwMPoPJ7gRT0JANkz3VEyu2sA+nzvkUTGUnPKczcThy6cmuB/afWbcQZE6xIl8ig==","signatures":[{"sig":"MEUCIQCmNAmSjcYbfjwQWpq4HLkz68IOoynmL3IbQXMOxf3/2wIgL4NFjkVI1uXJa515LPZZHKfziJlHoBv3yEwN7Rx3gPs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/prismarine-recipe@1.4.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":15164,"size":4987,"noattachment":false,"key":"/prismarine-recipe/-/prismarine-recipe-1.4.0.tgz"},"main":"index.js","gitHead":"5c3c4f03321ba16ef3bb43896578c0f0dd71d0ca","scripts":{"fix":"standard --fix","lint":"standard","test":"mocha test/ && npm run lint"},"typings":"index.d.ts","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:b71a268e-0856-4b2c-95bb-ccfe613dfef2"}},"repository":{"url":"git+ssh://git@github.com/PrismarineJS/prismarine-recipe.git","type":"git"},"_npmVersion":"11.9.0","description":"Represent minecraft recipes","directories":{},"_nodeVersion":"24.14.0","_hasShrinkwrap":false,"devDependencies":{"mocha":"^10.2.0","standard":"^17.0.0"},"peerDependencies":{"prismarine-registry":"^1.4.0"},"_npmOperationalInternal":{"tmp":"tmp/prismarine-recipe_1.4.0_1774833437952_0.27898287457041904","host":"s3://npm-registry-packages-npm-production"},"readme":"# prismarine-recipe\n\n[![Build Status](https://github.com/PrismarineJS/prismarine-recipe/workflows/CI/badge.svg)](https://github.com/PrismarineJS/prismarine-recipe/actions?query=workflow%3A%22CI%22)\n\nRepresent minecraft recipes\n\n## Usage\n\n```js\nconst Recipe=require(\"prismarine-recipe\")(\"1.8\").Recipe;\n\nconsole.log(JSON.stringify(Recipe.find(5)[0],null,2)); // recipes for wood\n```\n\n## API\n\n### Recipe\n\n#### Recipe.find(itemType, [metadata])\n\nReturns a list of matching `Recipe` instances.\n\n * `itemType` - numerical id\n * `metadata` - metadata to match. `null` means match anything.\n\n#### recipe.result\n\nThe output item. It's a recipeItem :\n```js\n{\n  id:45,\n  metadata:3,\n  count:1\n}\n```\n\n#### recipe.inShape\n\nLooks like this:\n\n```js\n[\n  [recipeItem, recipeItem],\n  [recipeItem, recipeItem],\n  [recipeItem, recipeItem],\n]\n```\n\n#### recipe.outShape\n\nLooks the same as `inShape`. Only relevant for cake.\n\n#### recipe.ingredients\n\nList of shape-independent ingredients. Looks like this:\n\n```js\n[\n  recipeItem,\n  recipeItem\n]\n```\n\n#### recipe.requiresTable\n\nBoolean.\n\n#### recipe.delta\n\nMap of item type to how much more or less you will have after you use\nthe recipe.\n\nThis is what it looks like for the chest recipe:\n\n```js\n[\n  recipeItem,\n  recipeItem\n]\n```\n\n## History\n\n### 1.3.0\n\n* mcData to registry refactoring (@Epirito)\n* Fixed RecipeItemConstructor Type and default export (@psu-de)\n\n### 1.2.0\n\n* Bump mcdata\n\n### 1.1.0\n\n* typescript definitions (thanks @IdanHo)\n\n### 1.0.1\n\n* bump mcdata\n\n### 1.0.0\n\n* bump dependencies\n\n### 0.0.0\n\n* Import from mineflayer\n","publish_time":1774833438095,"_cnpm_publish_time":1774833438095,"dist-tags":{"latest":"1.5.0"}}