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
@@ -162,12 +168,6 @@ The `player` object gives access to these functions:
162
168
-`create(template: any, location?: string): void`
163
169
Allows you to create data inside of the player. `template` should be a JavaScript object of the data to merge into the player behavior file at the given `location`. `location` should be a path separated by `'/'` to where you want the `template` to be created. For example: `minecraft:entity/description`. The default merge behaviour can optionally be overridden with `operation` which should be a function that takes default merge function `deepMerge`, the data at `location` (`oldData`) and the new data being merged in (`newData`). It should return the result of the custom merge. For example: `(deepMerge, oldData, newData) => newData` will overwrite the data at `location`.
164
170
165
-
-`lootTable(lootTable: any): string`
166
-
Returns a string that points to your defined loot table
167
-
168
-
-`recipe(recipe: any): void`
169
-
Creates a new recipe for items that use the custom component
170
-
171
171
#### Block
172
172
173
173
```ts
@@ -203,10 +203,10 @@ interface TemplateContext {
203
203
Trigger an event reponse whenever your component gets removed from this block
204
204
205
205
-`lootTable(lootTable: any): string`
206
-
Returns a string that points to your defined loot table
206
+
Creates a loot table for the block and returns a string that points to this loot table
207
207
208
208
-`recipe(recipe: any): void`
209
-
Creates a new recipe for blocks that use the custom component
209
+
Creates a new recipe for blocks that uses the custom component
0 commit comments