Move farmers delight to bworld
This commit is contained in:
@@ -86,7 +86,7 @@ to every player near it.
|
||||
|
||||
## Showing an Item
|
||||
|
||||
A block with `item_display` draws one item lying on top of it, like the food on Farmer's Delight's cutting board:
|
||||
A block with `item_display` draws one item lying on top of it, like the food on cutting board:
|
||||
|
||||
```json
|
||||
"item_display": { "surface": 1 }
|
||||
@@ -95,7 +95,7 @@ A block with `item_display` draws one item lying on top of it, like the food on
|
||||
`surface` is the height in pixels the item lies at, 0 to 16. The server script sets the item:
|
||||
|
||||
```ts
|
||||
ctx.world.set_block_item(x, y, z, { id: "farmersdelight:cabbage", count: 1 });
|
||||
ctx.world.set_block_item(x, y, z, { id: "bworld:cabbage", count: 1 });
|
||||
const shown = ctx.world.get_block_item(x, y, z); // a copy, or undefined
|
||||
ctx.world.set_block_item(x, y, z, undefined); // shows nothing
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user