Skip to content
BasaltSoftware
Bedrock 1.26.60

Site colour

Discord
Esc

    ↑↓ moveEnter openEsc close

    Keyboard shortcuts
    Ctrl K
    Search the whole site, from any page
    /
    Jump to the sidebar search, or search the whole site where there isn't one
    Enter
    Open the top search result
    Esc
    Clear the search, or close this panel
    ?
    Show these shortcuts
    Players

    InputPermissionCategory

    1 min read · 3 sections
    On this page

    Enum in @minecraft/server

    Groups of a player’s controls that can be turned off.

    import { InputPermissionCategory } from '@minecraft/server';
    import { InputPermissionCategory } from '@minecraft/server';
    const value: InputPermissionCategory = InputPermissionCategory.Camera;
    console.log(value); // 1
    import { InputPermissionCategory } from '@minecraft/server';
    const value = InputPermissionCategory.Camera;
    console.log(value); // 1
    Name Value Description
    Camera 1
    Movement 2
    LateralMovement 4
    Sneak 5
    Jump 6
    Mount 7
    Dismount 8
    MoveForward 9
    MoveBackward 10
    MoveLeft 11
    MoveRight 12

    PlayerInputPermissions.isPermissionCategoryEnabled, PlayerInputPermissions.setPermissionCategory, Player.setInputPermissions, PlayerInputPermissionCategoryChangeAfterEvent.category