-
Notifications
You must be signed in to change notification settings - Fork 73
Custom Upgrades
Luke100000 edited this page Dec 16, 2023
·
5 revisions
Using datapacks, you can declare any item as an upgrade.
An example datapack can be found here: https://github.com/Luke100000/ImmersiveAircraft/raw/1.19.2/wiki/example_data_pack.zip
Generally, the structure is:
- data
- namespace
- aircraft_upgrades
- aircraft_base_upgrades
- pack.mcmeta
Where aircraft_upgrades are upgrades applied to the item namespace:file_name. So, for a vanilla item, use the namespace minecraft.
You can also modify base stats of aircraft with aircraft_base_upgrades, e.g. a file biplane.json in the immersive_aircraft namespace.
The content of the file is a mapping between stats and a relative improvement, usually between -1 and inf.
- strength - general engine power, thus affects acceleration and max speed
- acceleration - modifies how fast the engine/aircraft reaches the desired speed
- durability - affects the amount of damage received
- wind - controls how much the wind and whether affects the aircraft
- friction - air friction controls the max speed
- fuel - fuel consumption factor
As a reference, here are the inbuilt ones: https://github.com/Luke100000/ImmersiveAircraft/tree/1.19.2/common/src/main/resources/data/immersive_aircraft/aircraft_upgrades