{"_id":"@dxxxxy/prismarine-block","_rev":"1-296458646e6060ae987b9f1259a5aff1","name":"@dxxxxy/prismarine-block","dist-tags":{"latest":"1.17.1"},"versions":{"1.16.3":{"name":"@dxxxxy/prismarine-block","version":"1.16.3","keywords":["prismarine","minecraft","block","js"],"author":{"name":"Romain Beaumont","email":"romain.rom1@gmail.com"},"license":"MIT","_id":"@dxxxxy/prismarine-block@1.16.3","maintainers":[{"name":"dxxxxy","email":"introsdream@gmail.com"}],"homepage":"https://github.com/PrismarineJS/prismarine-block#readme","bugs":{"url":"https://github.com/PrismarineJS/prismarine-block/issues"},"dist":{"shasum":"eb299c3f16597b0ac911fb4e734d521f7ad4793e","tarball":"https://registry.npmjs.org/@dxxxxy/prismarine-block/-/prismarine-block-1.16.3.tgz","fileCount":14,"integrity":"sha512-OodiFZ85fGwhMGIdN+oY90zQAQCeXjrR56A2fyFfuF6D3b9/Yan1zwJZzxQpTVJWqSmSLlQ3+GPGjUhqmKSctA==","signatures":[{"sig":"MEYCIQCXuoi+ahwmi17/1wDQlO2YTg5EjExkpGs++H/1erc7kgIhALqq63OdQm/NL39MwaCdajdTFq851UyX7e0IbKAPIvSC","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":48747},"main":"index.js","types":"./index.d.ts","gitHead":"f024e5f767c8899f371ca9f8845323dbeb3b3bff","scripts":{"fix":"standard --fix","lint":"standard","test":"mocha --reporter spec --exit","pretest":"npm run lint"},"_npmUser":{"name":"dxxxxy","email":"introsdream@gmail.com"},"repository":{"url":"git+https://github.com/PrismarineJS/prismarine-block.git","type":"git"},"_npmVersion":"8.6.0","description":"Represent a minecraft block with its associated data","directories":{},"_nodeVersion":"18.0.0","dependencies":{"minecraft-data":"^3.0.0","prismarine-nbt":"^2.0.0","prismarine-chat":"^1.5.0","prismarine-item":"^1.10.1","prismarine-biome":"^1.1.0","@dxxxxy/prismarine-registry":"^1.5.0"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^10.0.0","expect":"^29.1.0","standard":"^16.0.4","minecraft-wrap":"^1.4.0","prismarine-block":"file:","minecraft-protocol":"^1.30.0"},"_npmOperationalInternal":{"tmp":"tmp/prismarine-block_1.16.3_1684788978075_0.4478445449659192","host":"s3://npm-registry-packages"}},"1.17.1":{"name":"@dxxxxy/prismarine-block","version":"1.17.1","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":"^29.1.0","minecraft-protocol":"^1.30.0","minecraft-wrap":"^1.4.0","mocha":"^10.0.0","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"},"types":"./index.d.ts","gitHead":"52fda556ca39d5d3848ddea297c1409b615301d8","homepage":"https://github.com/PrismarineJS/prismarine-block#readme","_id":"@dxxxxy/prismarine-block@1.17.1","_nodeVersion":"18.0.0","_npmVersion":"8.6.0","dist":{"integrity":"sha512-C64qaSyf4OrBsqbt8rjbIWjtTjcnucMEBaCtfAihvjCAj/3GoxNfhu0vI0uYjn1gQqD02aUgdAZQoy79eN5mLA==","shasum":"25ddbcc0b41c4b9be9f4dda3f2dc43ece0c4180b","tarball":"https://registry.npmjs.org/@dxxxxy/prismarine-block/-/prismarine-block-1.17.1.tgz","fileCount":15,"unpackedSize":53985,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDUQ/AInwjptK9XlZZt4X0ed2XVgbfzAXAFMFDFlv82ZQIgNd4YGahSoTNTkSp17YiuxsVhVqZXxiit619yV4yCffo="}]},"_npmUser":{"name":"dxxxxy","email":"introsdream@gmail.com"},"directories":{},"maintainers":[{"name":"dxxxxy","email":"introsdream@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/prismarine-block_1.17.1_1720914316762_0.0022724023115141545"},"_hasShrinkwrap":false}},"time":{"created":"2023-05-22T20:56:18.011Z","modified":"2024-07-13T23:45:17.183Z","1.16.3":"2023-05-22T20:56:18.289Z","1.17.1":"2024-07-13T23:45:17.004Z"},"bugs":{"url":"https://github.com/PrismarineJS/prismarine-block/issues"},"author":{"name":"Romain Beaumont","email":"romain.rom1@gmail.com"},"license":"MIT","homepage":"https://github.com/PrismarineJS/prismarine-block#readme","keywords":["prismarine","minecraft","block","js"],"repository":{"type":"git","url":"git+https://github.com/PrismarineJS/prismarine-block.git"},"description":"Represent a minecraft block with its associated data","maintainers":[{"name":"dxxxxy","email":"introsdream@gmail.com"}],"readme":"# prismarine-block\r\n[![NPM version](https://img.shields.io/npm/v/prismarine-block.svg)](http://npmjs.com/package/prismarine-block)\r\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)\r\n\r\nRepresent a minecraft block with its associated data\r\n\r\n## Usage\r\n\r\n```js\r\nconst registry = require('prismarine-registry')('1.8')\r\nconst Block = require('prismarine-block')(registry)\r\n\r\nconst stoneBlock = new Block(registry.blocksByName.stone, registry.biomesByName.plains, /* meta */ 0)\r\n\r\nconsole.log(stoneBlock)\r\n\r\n// can you harvest stone with an iron pickaxe?\r\nconsole.log(stoneBlock.canHarvest(257))\r\n\r\n// how many milliseconds does it takes in usual conditions? (on ground, not in water and not in creative mode)\r\nconsole.log(stoneBlock.digTime(257))\r\n\r\n```\r\n\r\n## API\r\n\r\nSee [doc/API.md](doc/API.md)\r\n\r\n## History\r\n\r\n### 1.17.1\r\n* [Export Block class declaration (#91)](https://github.com/PrismarineJS/prismarine-block/commit/06ef318525aa92b57b400e0ee899231a4a737bec) (thanks @IceTank)\r\n* [Bump standard from 16.0.4 to 17.1.0 (#83)](https://github.com/PrismarineJS/prismarine-block/commit/00cb8a9a6b810f1bcf7a6482b9a25554d7c39a70) (thanks @dependabot[bot])\r\n* [use nmd supportFeature (#60)](https://github.com/PrismarineJS/prismarine-block/commit/83a74fc3877197a6383665f7e121081e54f36e86) (thanks @u9g)\r\n* [Add command gh workflow allowing to use release command in comments (#90)](https://github.com/PrismarineJS/prismarine-block/commit/e9955a02d44570111ad0f72c52e61c3b1f5be72f) (thanks @rom1504)\r\n\r\n### 1.17.0\r\n\r\n* Support for multi-sided signs (thanks @PondWader)\r\n\r\n### 1.16.3\r\n\r\n* really\r\n\r\n### 1.16.2\r\n\r\n* correct\r\n\r\n### 1.16.1\r\n\r\n* fix mcdata dep\r\n\r\n### 1.15.0\r\n\r\n* Effect names were normalized\r\n* Metadata to 0 by default\r\n\r\n### 1.14.1\r\n\r\n* Legacy version fixes\r\n\r\n### 1.14.0\r\n\r\n* Add .stateId, .fromProperties, .getProps for all versions\r\n\r\n### 1.13.1\r\n\r\n* Change blockEntity version handling\r\n\r\n### 1.13.0\r\n\r\n* Add sign block entity implementation\r\n\r\n### 1.12.0\r\n\r\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`.\r\n* block entity support\r\n\r\n### 1.11.0\r\n\r\n* support bedrock\r\n\r\n### 1.10.3\r\n\r\n* use normalized enchant rather than custom format (@u9g #41)\r\n\r\n### 1.10.2\r\n\r\n* remove debug code\r\n\r\n### 1.10.1\r\n\r\n* Fix ternary operator for bedrock name check\r\n\r\n### 1.10.0\r\n\r\n* 1.17.0 support (thanks @Archengius and @the9g)\r\n\r\n### 1.9.0\r\n\r\n* added `block.getProperties()` type definitions.\r\n* added instant breaking support\r\n* added `Block.fromProperties()` constructor.\r\n\r\n### 1.8.0\r\n\r\n* Efficiency fix on versions below 1.13\r\n\r\n### 1.7.3\r\n\r\n* Fix effectLevel not working in digTime. (@Naomi-alt)\r\n\r\n### 1.7.2\r\n\r\n* add testing for shapes, make it more robust to missing data\r\n\r\n### 1.7.1\r\n\r\n* fix canHarvest when no harvestTools required (thanks @Garfield100)\r\n\r\n### 1.7.0\r\n\r\n* Add getProperties (thanks @Karang)\r\n\r\n### 1.6.0\r\n\r\n* Add enchantments and effects to dig time computation (thanks @Karang)\r\n\r\n### 1.5.1\r\n\r\n* Make Block.fromStateId work for all versions\r\n\r\n### 1.5.0\r\n\r\n* Fix block metadata for 1.13+\r\n\r\n### 1.4.0\r\n\r\n* add block shapes (thanks @Karang)\r\n\r\n### 1.3.0\r\n\r\n* add typescript definitions (thanks @IdanHo)\r\n\r\n### 1.2.0\r\n\r\n* Prevent data from being shared to avoid conflicts across multiple versions (thanks @hornta)\r\n\r\n### 1.1.1\r\n\r\n* use the minStateId if passing the blockType\r\n\r\n### 1.1.0\r\n\r\n* add block state id feature (for >= 1.13)\r\n\r\n### 1.0.1\r\n\r\n* bump mcdata\r\n\r\n### 1.0.0\r\n\r\n* bump dependencies\r\n\r\n### 0.1.0\r\n\r\n* Import from mineflayer\r\n","readmeFilename":"README.md"}