You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tells you how long it will take to dig the block, in milliseconds.
@@ -45,15 +59,19 @@ Numerical id.
45
59
46
60
#### block.name
47
61
62
+
Minecraft ID (string) of the block.
63
+
48
64
#### block.displayName
49
65
66
+
Display name of the block.
67
+
50
68
#### block.shapes
51
69
52
70
Array of bounding boxes representing the block shape. Each bounding box is an array of the form `[xmin, ymin, zmin, xmax, ymax, zmax]`. Depends on the type and state of the block.
53
71
54
72
#### block.entity
55
73
56
-
If this block is a block entity, this contains the NBT data for the entity
74
+
If this block is a block entity, this contains the NBT data for the entity.
57
75
58
76
#### block.blockEntity
59
77
@@ -64,6 +82,10 @@ Simplified block entity data using prismarine-nbt's simplify() function. Only fo
64
82
Number which represents different things depending on the block.
65
83
See http://www.minecraftwiki.net/wiki/Data_values#Data
66
84
85
+
#### block.hash
86
+
87
+
**(Bedrock Edition)** A hash uniquely representing the block name and its properties (number).
88
+
67
89
#### block.light
68
90
69
91
#### block.skyLight
@@ -93,7 +115,7 @@ Boolean, whether the block is considered diggable.
93
115
94
116
#### block.boundingBox
95
117
96
-
The shape of the block according to the physics engine's collision decection. Currently one of:
118
+
The shape of the block according to the physics engine's collision detection. Currently one of:
97
119
98
120
*`block` - currently, partially solid blocks, such as half-slabs and ladders, are considered entirely solid.
99
121
*`empty` - such as flowers and lava.
@@ -131,11 +153,12 @@ Sets the text for the sign, can be plaintext, or array of JSON or prismarine-cha
131
153
132
154
#### getSignText (): [string, string?]
133
155
134
-
Gets the plain text content of the sign, the first item of the array returned and the second is the back and will be undefined for versions that don't support writing on the back of signs.
156
+
Gets the plain text content of the sign. The first item of the array returned and the second is the back, which will be undefined for versions that don't support writing on the back of signs.
135
157
136
158
#### get .signText
137
159
138
-
Deprecated, returns a plaintext string containing the sign's text
160
+
Deprecated, returns a plaintext string containing the sign's text.
139
161
140
162
#### set .signText
141
-
Deprecated, sets the text for a sign's text, can be plaintext, or array of JSON or prismarine-chat instances
163
+
164
+
Deprecated, sets the text for a sign's text. Can be plaintext, or array of JSON or prismarine-chat instances.
0 commit comments