ReAirdrop Supply
The ReAirdrop Supply modification adds an air supply system to Minecraft with regular drops of containers containing valuable resources. This project is primarily aimed at modpack creators and requires the use of a data pack for full functionality.
Compatibility
The mod is compatible with Xaero's minimap for convenient tracking of container drop locations.

Configuration Settings
All configuration parameters are represented as integers:
- AIRDROP_SPREAD_RANGE - maximum spread distance of containers (not less than 10)
- AIRDROP_SPAWN_INTERVAL - container spawn interval in ticks (not less than 100)
- AIRDROP_DESPAWN_TIME - time until container disappearance in ticks (not less than 100)
- MEDIC_AIRDROP_WEIGHT - weight of medical containers (not less than 0)
- AMMO_AIRDROP_WEIGHT - weight of ammunition containers (not less than 0)
- NO_AIRDROP_WEIGHT - weight of no container (not less than 0)
Important: The sum of MEDIC_AIRDROP_WEIGHT and AMMO_AIRDROP_WEIGHT must exceed 1, otherwise a crash will occur.
- BASIC_BASE_WEIGHT - base weight of basic containers (not less than 0)
- BASIC_MULTIPLE_WEIGHT - weight multiplier of basic containers (not less than 0)
- MEDIUM_BASE_WEIGHT - base weight of medium containers (not less than -10000)
- MEDIUM_MULTIPLE_WEIGHT - weight multiplier of medium containers (not less than -10000)
- ADVANCED_BASE_WEIGHT - base weight of advanced containers (not less than -10000)
- ADVANCED_MULTIPLE_WEIGHT - weight multiplier of advanced containers (not less than -10000)
Weight calculation formula: Weight = BASE_WEIGHT + Day × MULTIPLE_WEIGHT Weight less than 1 means containers of that level will not appear.
Data Pack
The mod requires a data pack with six loot tables:
airdrop_supply/medic_basic- table for basic medical containersairdrop_supply/medic_medium- table for medium medical containersairdrop_supply/medic_advanced- table for advanced medical containersairdrop_supply/ammo_basic- table for basic ammunition containersairdrop_supply/ammo_medium- table for medium ammunition containersairdrop_supply/ammo_advanced- table for advanced ammunition containers
All tables must be of type
chest.
Example for airdrop_supply/medic_basic, providing up to 4 apples:
{
"type": "minecraft:chest",
"pools": [
{
"rolls": {
"type": "minecraft:uniform",
"min": 1,
"max": 4
},
"bonus_rolls": 0,
"entries": [
{
"type": "minecraft:item",
"name": "minecraft:apple"
}
]
}
]
}
Example for airdrop_supply/ammo_basic, providing 2 iron swords and a possible diamond sword:
{
"type": "minecraft:chest",
"pools": [
{
"rolls": {
"type": "minecraft:uniform",
"min": 0,
"max": 1
},
"bonus_rolls": 0,
"entries": [
{
"type": "minecraft:item",
"name": "minecraft:diamond_sword"
}
]
},
{
"rolls": 2,
"entries": [
{
"type": "minecraft:item",
"name": "minecraft:iron_sword"
}
]
}
]
}
Custom Notifications
Notification texts can be customized through language files. Standard settings:
{
"container.airdrop_supply.airdrop_supply": "Air Supply Container",
"notification.airdrop_supply.airdrop_arrive": "%4$s's air supply container has arrived at [%1$s]-[%2$s]-[%3$s].",
"notification.airdrop_supply.airdrop_crash": "%1$s's air supply container has crashed.",
"notification.airdrop_supply.airdrop_invalidate": "%4$s's air supply container at [%1$s]-[%2$s]-[%3$s] disappeared.",
"notification.airdrop_supply.airdrop_summoned": "%1$s has called an air supply container. Please be patient.",
"notification.airdrop_supply.airdrop_summoned_invalid_dimension": "%1$s tries to summon an air supply container in invalid dimension.",
"notification.airdrop_supply.airdrop_location_set": "%3$s has fixed drop location at [%1$s]-[%2$s].",
"notification.airdrop_supply.airdrop_location_set_invalid_dimension": "%1$s tries to set drop location in invalid dimension.",
"notification.airdrop_supply.airdrop_location_unset": "%1$s has canceled fixed drop location.",
"notification.airdrop_supply.airdrop_location_unset_invalid_dimension": "Cannot cancel fixed drop location in this dimension.",
"item.airdrop_supply.airdrop_pager": "Air Supply Pager",
"item.airdrop_supply.airdrop_location_fixer": "Drop Location Fixer",
"item.airdrop_supply.airdrop_location_canceller": "Drop Location Canceller",
"block.airdrop_supply.airdrop_supply": "Air Supply Container",
"creativetab.airdrop_supply.airdrop_supply": "Air Supply"
}
Container Summon Command
Format: /airdrop x y z airdrop_level airdrop_type
Available only in the overworld