Skip to content

Commit afd297f

Browse files
committed
Updated docs #2
1 parent 35adcbd commit afd297f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

doc/API.md

+11
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@ Tells you if `heldItemType` is one of the right tool to harvest the block.
3131

3232
Parse the block state and return its properties.
3333

34+
#### getHash(prefixedName, states)
35+
36+
**(Bedrock Edition)** Returns an integer hash to represent the block state.
37+
38+
* `prefixedName` - The name of the block, including the `minecraft:` prefix (string).
39+
* `states` - A record of block state properties.
40+
3441
#### block.digTime(heldItemType, creative, inWater, notOnGround, enchantments = [], effects = {})
3542

3643
Tells you how long it will take to dig the block, in milliseconds.
@@ -75,6 +82,10 @@ Simplified block entity data using prismarine-nbt's simplify() function. Only fo
7582
Number which represents different things depending on the block.
7683
See http://www.minecraftwiki.net/wiki/Data_values#Data
7784

85+
#### block.hash
86+
87+
**(Bedrock Edition)** A hash uniquely representing the block name and its properties (number).
88+
7889
#### block.light
7990

8091
#### block.skyLight

0 commit comments

Comments
 (0)