promotional bannermobile promotional banner
premium banner
A Fabric mod that detects players using Bedrock and, based on the platform, it adds tags to the player and executes commands on behalf of the player.

Description

A server-side mod for the Fabric mod loader that detects whether people are on Bedrock or not by using the Floodgate API. Based on their platform, the mod will attribute command tags to the player and execute custom commands as a player.

Configuration

After having installed the mod, launch the server and a config in the config folder by the name of bedrockdetector.json should appear. Here's an example of the config file:

{
  "java": {
    "tags": [
      "java"
    ],
    "commands": [
      "combatedit profile set combatedit:vanilla"
    ]
  },
  "bedrock": {
    "tags": [
      "bedrock"
    ],
    "commands": [
      "combatedit profile set combatedit:1_8_combat"
    ]
  }
}

Note: this was used in conjuction with the CombatEdit mod as an example to show off how you can change the combat method by swapping editions of the game.