{"name":"prismarine-block","version":"1.23.0","description":"Represent a minecraft block with its associated data","main":"index.js","scripts":{"test":"mocha --reporter spec --exit","pretest":"npm run lint","fix":"standard --fix","lint":"standard"},"repository":{"type":"git","url":"git+https://github.com/PrismarineJS/prismarine-block.git"},"dependencies":{"minecraft-data":"^3.38.0","prismarine-biome":"^1.1.0","prismarine-chat":"^1.5.0","prismarine-item":"^1.10.1","prismarine-nbt":"^2.0.0","prismarine-registry":"^1.1.0"},"devDependencies":{"expect":"^30.0.5","minecraft-protocol":"^1.30.0","minecraft-wrap":"^1.4.0","mocha":"^11.0.1","prismarine-block":"file:","standard":"^17.1.0"},"keywords":["prismarine","minecraft","block","js"],"author":{"name":"Romain Beaumont","email":"romain.rom1@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/PrismarineJS/prismarine-block/issues"},"gitHead":"c52fba46b794429d89806bd63bb0e9de1be8f981","types":"./index.d.ts","_id":"prismarine-block@1.23.0","homepage":"https://github.com/PrismarineJS/prismarine-block#readme","_nodeVersion":"24.14.0","_npmVersion":"11.9.0","dist":{"integrity":"sha512-j2UoU4KbXMvNlBw+aLkMOnEuMayYefznUfbrfv1VIbckG3RA9LpNWltOMHXuOR5YkHp8uIZPOclj95XC88jgGw==","shasum":"8aaf8b3759a59853068e781488a4f12efb4f34cd","tarball":"http://registry-npm.ywwl.com/prismarine-block/download/prismarine-block-1.23.0.tgz","fileCount":15,"unpackedSize":61792,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/prismarine-block@1.23.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDXE0BxWTPO6xqfs7FCgJXieKAvAQb3XK6/7QtcgHKFYgIgL97uDOa+SmkUd93J0FZkY8QigMr4WYXT9zUmXMTJiHU="}],"size":15602,"noattachment":false,"key":"/prismarine-block/-/prismarine-block-1.23.0.tgz"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:9fe68f01-41f5-40dc-878d-b5019078c593"}},"directories":{},"maintainers":[{"name":"rom1504","email":"romain.rom1@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/prismarine-block_1.23.0_1774833484464_0.08289705772393252"},"_hasShrinkwrap":false,"readme":"# prismarine-block\n[![NPM version](https://img.shields.io/npm/v/prismarine-block.svg)](http://npmjs.com/package/prismarine-block)\n[![Build Status](https://github.com/PrismarineJS/prismarine-block/workflows/CI/badge.svg)](https://github.com/PrismarineJS/prismarine-block/actions?query=workflow%3A%22CI%22)\n\nRepresent a minecraft block with its associated data\n\n## Usage\n\n```js\nconst registry = require('prismarine-registry')('1.8')\nconst Block = require('prismarine-block')(registry)\n\nconst stoneBlock = new Block(registry.blocksByName.stone, registry.biomesByName.plains, /* meta */ 0)\n\nconsole.log(stoneBlock)\n\n// can you harvest stone with an iron pickaxe?\nconsole.log(stoneBlock.canHarvest(257))\n\n// how many milliseconds does it takes in usual conditions? (on ground, not in water and not in creative mode)\nconsole.log(stoneBlock.digTime(257))\n\n```\n\n## API\n\nSee [doc/API.md](doc/API.md)\n\n## History\n\n### 1.23.0\n* [Update CI to Node 24 (#121)](https://github.com/PrismarineJS/prismarine-block/commit/52aef3071c85f289c05e9c94efe1bfef2ec73563) (thanks @rom1504)\n* [Fix publish condition for npm-publish v4 (#120)](https://github.com/PrismarineJS/prismarine-block/commit/c6ba1377c8ea72a75a5b0d2862ce03a05485a82b) (thanks @rom1504)\n* [Switch to trusted publishing via OIDC (#119)](https://github.com/PrismarineJS/prismarine-block/commit/36a926f8c29311eb28266377b65a12d1efa04528) (thanks @rom1504)\n* [Change boundingBox to an enum (#117)](https://github.com/PrismarineJS/prismarine-block/commit/4ef6c9ee6f19970ae4390de02314358597686cd8) (thanks @linkle69)\n\n### 1.22.0\n* [Update sign blockEntity for 1.21.5 (#115)](https://github.com/PrismarineJS/prismarine-block/commit/a660e4a45c3afdd932d9b9311a93567c49e9c80e) (thanks @extremeheat)\n* [Bump expect from 29.7.0 to 30.0.5 (#114)](https://github.com/PrismarineJS/prismarine-block/commit/8e1eec194befe4a3d8c26a4a15d866f3fe9031eb) (thanks @dependabot[bot])\n* [node 22 (#108)](https://github.com/PrismarineJS/prismarine-block/commit/f2177e04d14165531521aabafd7dcef43eaa5a2c) (thanks @rom1504)\n* [Issue/102 (#103)](https://github.com/PrismarineJS/prismarine-block/commit/cd294605cbba4cc24559f7ee2fb0f5b60ab4fdd0) (thanks @tabbry)\n\n### 1.21.0\n* [Add isWaterlogged to API (#105)](https://github.com/PrismarineJS/prismarine-block/commit/bf84ca682255db995dfaba23e03209cc5af3ead6) (thanks @extremeheat)\n\n### 1.20.0\n* [Bump mocha from 10.8.2 to 11.0.1 (#104)](https://github.com/PrismarineJS/prismarine-block/commit/21e8ea2128df9bb90b59aa58fa491d6dd6031a3f) (thanks @dependabot[bot])\n* [Add support for Bedrock edition block hashes (#97)](https://github.com/PrismarineJS/prismarine-block/commit/bc8a7af40438d6d6c715fc8d1e1da8a087c588ad) (thanks @FreezeEngine)\n\n### 1.19.0\n* [Update npm-publish.yml](https://github.com/PrismarineJS/prismarine-block/commit/faed7f0390d3f4fd0b15e24193463ed111dbc69a) (thanks @rom1504)\n\n### 1.18.0\n* [Fix false value handling in fromProperties for post flatenning versions (#98)](https://github.com/PrismarineJS/prismarine-block/commit/1514a1dcd12984016a5fd360009dd3811ae54f66) (thanks @zardoy)\n* [fix version used in block entity (#99)](https://github.com/PrismarineJS/prismarine-block/commit/05aed2ecee7f427b332b0682618368e61c45e1eb) (thanks @rom1504)\n* [Allow two variations of syntax in fromString (#96)](https://github.com/PrismarineJS/prismarine-block/commit/52fda556ca39d5d3848ddea297c1409b615301d8) (thanks @Flonja)\n\n### 1.17.1\n* [Export Block class declaration (#91)](https://github.com/PrismarineJS/prismarine-block/commit/06ef318525aa92b57b400e0ee899231a4a737bec) (thanks @IceTank)\n* [Bump standard from 16.0.4 to 17.1.0 (#83)](https://github.com/PrismarineJS/prismarine-block/commit/00cb8a9a6b810f1bcf7a6482b9a25554d7c39a70) (thanks @dependabot[bot])\n* [use nmd supportFeature (#60)](https://github.com/PrismarineJS/prismarine-block/commit/83a74fc3877197a6383665f7e121081e54f36e86) (thanks @u9g)\n* [Add command gh workflow allowing to use release command in comments (#90)](https://github.com/PrismarineJS/prismarine-block/commit/e9955a02d44570111ad0f72c52e61c3b1f5be72f) (thanks @rom1504)\n\n### 1.17.0\n\n* Support for multi-sided signs (thanks @PondWader)\n\n### 1.16.3\n\n* really\n\n### 1.16.2\n\n* correct\n\n### 1.16.1\n\n* fix mcdata dep\n\n### 1.15.0\n\n* Effect names were normalized\n* Metadata to 0 by default\n\n### 1.14.1\n\n* Legacy version fixes\n\n### 1.14.0\n\n* Add .stateId, .fromProperties, .getProps for all versions\n\n### 1.13.1\n\n* Change blockEntity version handling\n\n### 1.13.0\n\n* Add sign block entity implementation\n\n### 1.12.0\n\n* Updated to support `prismarine-registry`. To use, instead of passing a string to prismarine-biome's default function export, pass an instance of `prismarine-registry`.\n* block entity support\n\n### 1.11.0\n\n* support bedrock\n\n### 1.10.3\n\n* use normalized enchant rather than custom format (@u9g #41)\n\n### 1.10.2\n\n* remove debug code\n\n### 1.10.1\n\n* Fix ternary operator for bedrock name check\n\n### 1.10.0\n\n* 1.17.0 support (thanks @Archengius and @the9g)\n\n### 1.9.0\n\n* added `block.getProperties()` type definitions.\n* added instant breaking support\n* added `Block.fromProperties()` constructor.\n\n### 1.8.0\n\n* Efficiency fix on versions below 1.13\n\n### 1.7.3\n\n* Fix effectLevel not working in digTime. (@Naomi-alt)\n\n### 1.7.2\n\n* add testing for shapes, make it more robust to missing data\n\n### 1.7.1\n\n* fix canHarvest when no harvestTools required (thanks @Garfield100)\n\n### 1.7.0\n\n* Add getProperties (thanks @Karang)\n\n### 1.6.0\n\n* Add enchantments and effects to dig time computation (thanks @Karang)\n\n### 1.5.1\n\n* Make Block.fromStateId work for all versions\n\n### 1.5.0\n\n* Fix block metadata for 1.13+\n\n### 1.4.0\n\n* add block shapes (thanks @Karang)\n\n### 1.3.0\n\n* add typescript definitions (thanks @IdanHo)\n\n### 1.2.0\n\n* Prevent data from being shared to avoid conflicts across multiple versions (thanks @hornta)\n\n### 1.1.1\n\n* use the minStateId if passing the blockType\n\n### 1.1.0\n\n* add block state id feature (for >= 1.13)\n\n### 1.0.1\n\n* bump mcdata\n\n### 1.0.0\n\n* bump dependencies\n\n### 0.1.0\n\n* Import from mineflayer\n","publish_time":1774833484606,"_cnpm_publish_time":1774833484606,"dist-tags":{"latest":"1.23.0"}}