Skip to content

Cortex Plugin Brain-computer Interface integration for Minecraft with Cortex API

License

Notifications You must be signed in to change notification settings

kevinjycui/CortexPlugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cortex API plugin for Minecraft. Uses Emotiv's Cortex API to make in-game adjustments in accordance to the user's brain-computer interface metrics. Demonstrates secure WebSocket connection protocol used in Cortex V2.

Default Metrics and Attributes

Entity Attribute Attribute Generic Name Metric Metric Code Relationship
Player Movement Speed MOVEMENT_SPEED Excitement exc Direct
Player Knockback Resistance KNOCKBACK_RESISTANCE Relaxation rel Inverse
Player Max Health MAX_HEALTH Relaxation rel Direct
Player Attack Damage ATTACK_DAMAGE Focus foc Direct
Player Attack Speed ATTACK_SPEED Focus foc Direct
Monster Movement Speed MOVEMENT_SPEED Stress str Direct
Monster Follow Range FOLLOW_RANGE Stress str Direct
Monster Attack Damage ATTACK_DAMAGE Engagement eng Direct

*Affects only the player with the Brain-computer Interface and Monsters within a 50 block radius of said player

Screenshot

Configuration

Requirements

Download the latest stable release to your plugins directory of your server. Rename this file to CortexPlugin.jar. Add another directory plugins/CortexPlugin and create a file plugins/CortexPlugin/credentials.json containing the following (retrieved from your cortex account):

{
	"clientId": "your client ID here",
	"clientSecret": "your client secret here",
}

Your server directory should look like the following

.
├── plugins
│   ├── CortexPlugin
│   │   └── credentials.json
│   ├── CortexPlugin.jar
│   └── ...
└── ...

Run the server. You may have to accept the connection request from the Emotiv App on the first attempt. If a connection error occurs, try restarting the server.

Permissions

Permission Description
cortex.brainplayer Allows manual reset of which player the BCI refers to
cortex.connection.open Allows manual reopen of websocket connection
cortex.connection.close Allows manual close of websocket connection

About

Cortex Plugin Brain-computer Interface integration for Minecraft with Cortex API

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages