メインコンテンツまでスキップ

Movement Menu Config

The movement_menu_config defines a grid-based menu where players navigate using their movement keys (W, A, S, D).

Configuration

id: "navigation_grid"
popupId: "movement_menu"
width: 3
height: 3
startX: 1
startY: 1
useSeating: true # Spawns a chair to block real movement
slots:
- x: 0
y: 1
onSelect:
- !ref "play_tick_sound"
onClick:
- !ref "select_item_trigger"

How it works

  1. Immersive Seating: If useSeating is enabled, the player is placed on an invisible ArmorStand.
  2. Input Interception: The extension listens for STEER_VEHICLE packets from the client.
  3. Grid Navigation: Moving forward/backward or left/right updates the cursor's (X, Y) coordinates in the grid.
  4. Feedback: Each movement can trigger onSelect actions, and jumping (Space) triggers onClick.