Abilities is a mechanism that allows to set some flags (allow/disallow actions) or values (fly speed, walk speed) for the player. Inner Core provides an interface to the underlying Abilities implementation. Not all of the abilities are well tested, some may not work at all.
Abilities may be of two types: boolean and float. The appropriate setter is invoked automatically when you call Player.setAbility function. To keep types consistent, two functions, Player.getFloatAbility and Player.getBooleanAbility are used to retrieve value in the required form.
You can find the list of all the abilities with their default values available in Minecraft 1.11.4 below. If you find out more information about some of the abilities, feel free to contribute (See Contributing).
Whether the player can attack mobs
Native.PlayerAbility.ATTACK_MOBS = true
Whether the player can attack other players
Native.PlayerAbility.ATTACK_PLAYERS = true
Whether the player can place blocks
Native.PlayerAbility.BUILD = true
Whether the player can operate doors, levers, etc.
Native.PlayerAbility.DOORS_AND_SWITCHES = true
Specifies whether the player is flying at the moment or not
Native.PlayerAbility.FLYING = false
The speed at which the player flies in Creative
Native.PlayerAbility.FLYSPEED = 0.1
Whether the player can break blocks instantly. Normally only true in Creative.
Native.PlayerAbility.INSTABUILD = false
True if the player is immune to all damage and harmful effects except for void damage. (damage caused by the /kill command is void damage)
Native.PlayerAbility.INVULNERABLE = false
Whether lightning appears in thunderstorms
Native.PlayerAbility.LIGHTNING = false
Specifies whether the player has the ability to fly or not
Native.PlayerAbility.MAYFLY = false
Whether the player can destroy blocks
Native.PlayerAbility.MINE = true
If true, disables chat so that you cannot send messages
Native.PlayerAbility.MUTED = false
If true, player can pass through the walls
Native.PlayerAbility.NOCLIP = false
Whether the player can interact with chests and other containers
Native.PlayerAbility.OPEN_CONTAINERS = true
Whether the player can use operator commands
Native.PlayerAbility.OPERATOR_COMMANDS = true
Whether the player can use teleportation commands
Native.PlayerAbility.TELEPORT = true
The speed at which the player walks
Native.PlayerAbility.WALKSPEED = 0.05
True, if player can use worldbuilder command (education edition only)
Native.PlayerAbility.WORLDBUILDER = false
Generated using TypeDoc