Block visuals
This commit is contained in:
@@ -172,6 +172,9 @@ ctx.options.key_inventory; // the key the player has bound, like Minecraft's Opt
|
||||
|
||||
`ctx.player`, `ctx.world` and `ctx.options` only work once the player is in the world, not during `setup`.
|
||||
|
||||
To draw blocks that move, like a shaft that turns, register a [visual](../blocks/visuals.md) with
|
||||
`ctx.render.register_visual`.
|
||||
|
||||
The key mappings are `key_forward`, `key_back`, `key_left`, `key_right`, `key_jump`, `key_sprint`, `key_sneak`,
|
||||
`key_inventory`, `key_drop` and `key_chat`. A screen that should close on the inventory key, like the recipe viewer's,
|
||||
checks `g.key_pressed(ctx.options.key_inventory)` and calls `ctx.ui.close()`, the way JEI checks `keyInventory`.
|
||||
|
||||
Reference in New Issue
Block a user