Juicer visuals
This commit is contained in:
@@ -82,7 +82,9 @@ it's drawn on the ground (half a block across, a block's item a quarter), with i
|
||||
and it's placed by a matrix like a transformed model:
|
||||
|
||||
```ts
|
||||
const stack = block.get_client_data<ItemStack>("item");
|
||||
import { mat4 } from "gl-matrix";
|
||||
|
||||
const stack = block.get_client_data<ItemStack>("stack");
|
||||
if (stack) {
|
||||
const item = instances.item(stack);
|
||||
const lying = mat4.fromTranslation(mat4.create(), [0.5, 0.2, 0.5]);
|
||||
|
||||
Reference in New Issue
Block a user