enjarai / do-a-barrel-roll

Microsoft flight simulator for Minecraft elytras.
https://www.curseforge.com/minecraft/mc-mods/do-a-barrel-roll
GNU General Public License v3.0
94 stars 29 forks source link
fabric-mod fabricmc-mod fabricmc-mods minecraft-mod

discord-plural kofi-singular

On Fabric:

fabric-api fabric-api

Modrinth CurseForge

Do a Barrel Roll is a lightweight, fully clientside mod that changes elytra flight to be more fun and semi-realistic. It achieves this by redesigning movement with a completely unlocked camera orientation in mind, allowing for full pitch, yaw and roll control in flight.

Some subtle and less subtle modifiers are also applied to the camera, including but not limited to smoothing and banking.

Controls

The default controls are as follows, but can be modified:

Configuration

The mod can be configured in-game using ModMenu and YACL. Once you install both of these, you can access the config screen by finding the mod in the mods list and pressing the config button.

A wide range of options are available, including custom mouse behavior, elytra activation restrictions and changing values of modifiers like banking, sensitivity and more.

Server-side features

Visual aspects of the mod (playermodel roll in particular) can be synced between clients by installing it on the server-side as well. Everything is still fully compatible with both vanilla clients and servers. All the following configurations are valid:

Disclaimers

This mod does not actually modify the flight physics themselves, so in most cases it shouldn't trigger anticheat. However, doing things like loop de loops looks to the server like rapid camera movement and may get you flagged. Use at your own risk.

Versions prior to 2.8.3 may not be suitable for use on multiplayer servers due to lax server-side restrictions

Credits

Based on the Cool Elytra Roll mod by Jorbon, specifically it's "realistic mode".

Originally ported to Forge by MehVahdJukaar.

Mod icon by Mizeno.

For server admins

Thrusting

The mod includes a "thrusting" feature that is probably considered cheating by most servers, as it lets users accelerate without using fireworks.

This feature is disabled by default on servers as of 2.8.3.

If you want to allow players to use this feature on your server you can, depending on your server platform, use one of the methods below. These configurations will be respected by any clients using version 2.4.0 or later of the mod. The pre-1.20 Forge versions do not support thrusting and other server-side featuers, so they will not be affected by any of these options.

For Fabric and Forge servers

Fabric or Forge server owners can install the mod on their server and, while in the world, use the "Server" tab on the config screen to configure it. (recommended)

For Bukkit/Spigot servers

On platforms that support Bukkit plugins, you can use the DABRCS plugin to configure the mod.

For other server platforms

On servers that have no official support, you'll have to create a custom plugin or mod to send a packet to the client at login on the do_a_barrel_roll:handshake channel with the following layout:

Type Value
integer 1
string {"allowThrusting": true}

Any client that has DABR installed will respond on the same channel with a packet like this:

Type Value
integer [protocol version]
boolean [success]

Other features

The server config includes a few other features to configure server-side behaviour, including:

These options can all be configured via the same methods as the allowThrusting option.

It is also possible to allow specific players to bypass configured restrictions by giving them level 2 operator status or the do_a_barrel_roll.ignore_config permission.