Flying Carpet allows an enabled user to spawn and ride their own flying machine. The carpet consists of a floor rug, chair, code lock, and lantern. The lantern is used to take off and land.
There are two modes of operation depending on the permission granted to the user. The default mode requires low-grade fuel in the lantern in order to fly. The unlimited mode does not require fuel.
For the default mode, the user will receive notification via chat message as well as an audible water pump sound when fuel is low (1 low grade fuel). Each unit of low grade fuel gives you 10 minutes of flying time, which is the same rate of usage as the standard lantern. When you run out of fuel, the carpet will land itself immediately.
Note that that owner/admin can customize the skins for both the chair and the rug, set global fuel requirements and flying speed, and limit the number of carpets for each player (highly recommended).
You could set "Require Fuel to Operate : " to false, but it is recommended that you leave this setting true and use the flyingcarpet.unlimited permission instead if you want to remove the fuel requirement.

There are two modes of operation depending on the permission granted to the user. The default mode requires low-grade fuel in the lantern in order to fly. The unlimited mode does not require fuel.
For the default mode, the user will receive notification via chat message as well as an audible water pump sound when fuel is low (1 low grade fuel). Each unit of low grade fuel gives you 10 minutes of flying time, which is the same rate of usage as the standard lantern. When you run out of fuel, the carpet will land itself immediately.
Permissions
This plugin uses the permission system. To assign a permission, use oxide.grant <user or group> <name or steam id> <permission>. To remove a permission, use oxide.revoke <user or group> <name or steam id> <permission>.- flyingcarpet.use -- Allows player to spawn and fly a carpet using low grade fuel
- flyingcarpet.unlimited -- Removes the fuel requirement
- oxide.group add fc
- oxide.group add fcunlimited
- oxide.grant group fc flyingcarpet.use
- oxide.grant group fcunlimited flyingcarpet.unlimited
- oxide.usergroup add rfc1920 fc
- oxide.grant group default fc.unlimited
Chat Commands
- /fc -- Spawn a flying carpet
- /fcd -- Despawn a flying carpet (must be within 10 meters of the carpet)
- /fcc -- List the current number of carpets (Only useful if limit set higher than 1 per user)
- /fchelp -- List the available commands (above)
Configuration
The settings and options can be configured in the FlyingCarpet file under the config directory. The use of an editor and validator is recommended to avoid formatting issues and syntax errors.Note that that owner/admin can customize the skins for both the chair and the rug, set global fuel requirements and flying speed, and limit the number of carpets for each player (highly recommended).
You could set "Require Fuel to Operate : " to false, but it is recommended that you leave this setting true and use the flyingcarpet.unlimited permission instead if you want to remove the fuel requirement.
Flight School
- Type /fc to spawn a carpet.
- Jump on the carpet and set a code on the lock. Unlock after setting the code.
- Add low-grade fuel to the lantern (if running in default mode).
- Sit in the chair.
- Aim at the lantern and press 'E' to take off!
- From here on use, WASD, Shift (sprint), spacebar (up), and Ctrl (down) to fly.
- When ready to land, point at the lantern and press E again.
- Once on the ground, use the spacebar to dismount.
- Lock the carpet using the code lock to prevent others from using it.
- Use /fcd while standing next to the carpet to destroy it.
Localization
The default messages are in the FlyingCarpet file under the lang/en directory. To add support for another language, create a new language folder (e.g. de for German) if not already created, copy the default language file to the new folder and then customize the messages.Preview

Known Issues
- Lantern can be started or stopped by another player, which can cause the lantern cycle to be out of sync (off while flying).