Minecraft wiki entry for ability, associated text: On success, Sets the player ability into the specified ability. If value: Boolean isn't specified, returns whether the player has the specified ability. If ability: Ability isn't specified, returns what abilities the player has.