1.0.0
Compatibility
Changes
Keyboard Detector Command Usage Guide
- /keyboarddetector iskeydown
Function: Detects whether a single key is pressed.
Usage: /keyboarddetector iskeydown <PlayerID> <KeyAscii>
Example: /keyboarddetector iskeydown @p 49
Detects if the player presses the '1' key.
When placed in a repeating command block:
Returns true and outputs a redstone signal while '1' is held.
Returns false with no redstone output when released.
=============================================================================
- /keyboarddetector matchgroup
Function: Detects simultaneous multi-key presses (keys are processed without mutual interference).
Usage: /keyboarddetector matchgroup <PlayerID> <KeyAscii1>,<KeyAscii2>,... <keepStatic>
Example: /keyboarddetector matchgroup @p 49,50,51 false
Detects if the player presses '1', '2', and '3' concurrently.
When placed in a repeating command block:
Returns true/redstone signal only when all specified keys are pressed simultaneously.
If <keepStatic> is set to true:
Maintains true/redstone signal after keys are released until manually reset.
=============================================================================
- /keyboarddetector flush
Function: Clears all stored key-press records (used when <keepStatic> is true).
Example:
After executing /keyboarddetector matchgroup @p 49,50,51 true in a loop:
Pressing/releasing '1','2','3' maintains a persistent signal.
Executing /keyboarddetector flush will:
Immediately terminate the redstone signal.
Reset detection until the next valid simultaneous key press.
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:mUSxbaxV:cKwwnsi3"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:mUSxbaxV:cKwwnsi3"
}

