Skip to content

Bundled Datapacks

Endor H edited this page Jan 14, 2024 · 8 revisions

The Aerobatic Elytra mod supports some configuration through datapacks. In order to promote these features, as well as provide templates, the mod includes some example bundled datapacks, which can be easily installed by using 2 commands, (available only for operators):

  • /aerobaticelytra datapack install <name> installs the specified datapack in the server, by extracting its files from the mod jar and copying them into the datapacks folder of the server.
  • /datapack enable <name> which is the vanilla command to enable the now available datapack.

Note

The exact <name> used by each command varies slightly. See the Quick installation blocks below for actual examples.

You can use the first command in single player worlds with cheats enabled to easily get yourself a local copy of these datapacks, or directly browse their source.

Bundled Datapacks

Add Aerobatic Elytra to Curios Back Slot

Name: add_aerobatic_elytra_to_curios_back_slot (Source)

Quick installation
/aerobaticelytra datapack install "Add aerobatic elytra to Curios back slot"
/datapack enable "file/aerobaticelytra - Add aerobatic elytra to Curios back slot"

This bundled datapack doesn't really tweak any of the mod features, but it enables compatibility with the Curios mod, allowing the Aerobatic Elytra to be equipped in the back Curios slot, simply by adding the Aerobatic Elytra to the corresponding tag.

Add Trail Length Upgrade Recipe

Name: add_trail_length_upgrade_recipe (Source)

Quick installation
/aerobaticelytra datapack install "Add trail length upgrade recipe"
/datapack enable "file/aerobaticelytra - Add trail length upgrade recipe"

Adds upgrade recipes to increase and decrease the Trail ability in Aerobatic Elytras, which modifies the length of their trails. By default, this ability can't be modified without commands, and is always 1.

This datapack showcases how to write simple upgrade recipes for existing abilities.

Generate Aerobatic Elytra in End Ships

Name: generate_aerobatic_elytra_in_end_ships (Source)

Quick installation
/aerobaticelytra datapack install "Generate aerobatic elytra in End ships"
/datapack enable "file/aerobaticelytra - Generate aerobatic elytra in End ships"

Replaces the generated vanilla Elytra from End Ships with Aerobatic Elytras, by modifying the loot table exposed by the mod.

Note

This datapack doesn't remove the existing crafting recipe for the Aerobatic Elytra, but there's another bundled datapack for that.

This example datapack makes Aerobatic Elytras only start to generate at 2000+ blocks from the End center with a 25% chance, and with a 70% at 4000+ blocks, but you may easily change the loot table yourself to your liking.

Tip

It's possible to give different abilities to the generated Elytras (works like any regular loot table), in order to make the abilities depend on luck as well.

Nerf Aerobatic Elytra with Upgrades

Name: nerf_aerobatic_elytra_with_upgrades (Source)

Quick installation
/aerobaticelytra datapack install "Nerf aerobatic elytra with upgrades"
/datapack enable "file/aerobaticelytra - Nerf aerobatic elytra with upgrades"

This datapack is an example of how you could nerf the Aerobatic Elytra item by making it less powerful by default and adding upgrade recipes to incrementally improve it, in order to be integrated in the progression system of a modpack.

The developer of this mod is not a personal fan of this kind of grind-to-upgrade gameplay many modpacks create, which is why by default this mod tries to stay simple with recipes, but it is possible to apply it to the Aerobatic Elytra, as showcased by this bundled datapack.

The changes made by this datapack are:

  • Reduce default Max Fuel to 40, Speed to 0.8 and Lift to 0 for crafted Elytras (by replacing the recipe)
  • Add recipe to increase Max Fuel by 20 up to 512 using Shulker Shells
  • Add recipe to increase Lift by 0.1 up to 0.6 using Phantom Membrane
  • Add recipe to increase Speed by 0.1 up to 1 using Blaze Powder
  • Add recipe to increase Aquatic (underwater flight ease) by 0.1 starting at 0.6 up to 1 using Hearts of the Sea
  • Add an overpowered elytra to the creative inventory so it's easier to simply start flying for creative players

Tip

You're not restrained to making the upgrades linear, as you can use almost any math expression (see LazuLib's Unicode Math expressions) to compute the new values from the current abilities of the elytra. You may also create upgrades that trade one ability for another, or straight downgrades.

Note

This datapack doesn't account for the previous datapack generating Aerobatic Elytras in End Ships, but you may easily tweak that one so the generated Elytras have balanced abilities.

Remove Aerobatic Elytra Recipe

Name: remove_aerobatic_elytra_recipe (Source)

Quick installation
/aerobaticelytra datapack install "Remove aerobatic elytra recipe"
/datapack enable "file/aerobaticelytra - Remove aerobatic elytra recipe"

Simply removes the ability to craft an Aerobatic Elytra from a vanilla Elytra, by replacing the default recipe with an invalid recipe.

Underwater Aerobatic Flight Vision & Breathing

Name: underwater_aerobatic_flight_vision_n_breathing (Source)

Quick installation
/aerobaticelytra datapack install "Underwater aerobatic flight vision & breathing"
/datapack enable "file/aerobaticelytra - Underwater aerobatic flight vision & breathing"

Creates two Effect Abilities for Aerobatic Elytras, one granting flight vision and the other water breathing, to players flying aerobatically while submerged in water. It also adds two upgrade recipes, in order to add this ability to Elytras that lack it.

This datapack serves as an example of how to create your own effect abilities, as well as upgrade recipes and localization for them.