Airdrop Supply 模组现已更新,支持 Minecraft 1.20.1!
ReAirdrop Supply
这是一个空投模组。
此模组需配合数据包使用才能完全发挥作用,专为整合包创作者设计。
兼容列表
Xaero's minimap(小地图)

配置文件
所有配置选项如下(均为整数):
- AIRDROP_SPREAD_RANGE 空投箱的最大扩散距离,不小于 10。
- AIRDROP_SPAWN_INTERVAL 空投箱的出现频率,以刻(ticks)为单位计算,不小于 100。
- AIRDROP_DESPAWN_TIME 空投箱消失前的持续时间,以刻(ticks)为单位计算,不小于 100。
- MEDIC_AIRDROP_WEIGHT 医疗类空投箱权重,不小于 0。
- AMMO_AIRDROP_WEIGHT 弹药类空投箱权重,不小于 0。
- NO_AIRDROP_WEIGHT 无空投箱权重,不小于 0。
请注意,MEDIC_AIRDROP_WEIGHT 与 AMMO_AIRDROP_WEIGHT 之和必须大于 1,否则会导致崩溃。
- BASIC_BASE_WEIGHT 基础级空投箱基础权重,不小于 0。
- BASIC_MULTIPLE_WEIGHT 基础级空投箱倍率权重,不小于 0。
- MEDIUM_BASE_WEIGHT 中级空投箱基础权重,不小于 -10000。
- MEDIUM_MULTIPLE_WEIGHT 中级空投箱倍率权重,不小于 -10000。
- ADVANCED_BASE_WEIGHT 高级空投箱基础权重,不小于 -10000。
- ADVANCED_MULTIPLE_WEIGHT 高级空投箱倍率权重,不小于 -10000。
不同等级的权重计算公式为 Weight = BASE_WEIGHT + Day * MULTIPLE_WEIGHT
若权重小于 1,则该级别的空投箱不会出现。
数据包
本模组的数据包需包含六个战利品表(loot tables),数据包的创建与使用方法此处不作详述。
airdrop_supply/medic_basic 对应基础级医疗空投箱的战利品表。
airdrop_supply/medic_medium 对应中级医疗空投箱的战利品表。
airdrop_supply/medic_advanced 对应高级医疗空投箱的战利品表。
airdrop_supply/ammo_basic 对应基础级弹药空投箱的战利品表。
airdrop_supply/ammo_medium 对应中级弹药空投箱的战利品表。
airdrop_supply/ammo_advanced 对应高级弹药空投箱的战利品表。
请将战利品表的类型限制为 chest。
airdrop_supply/medic_basic 的一个简单示例,提供最多 4 个苹果。
{
"type": "minecraft:chest",
"pools": [
{
"rolls": {
"type": "minecraft:uniform",
"min": 1,
"max": 4
},
"bonus_rolls": 0,
"entries": [
{
"type": "minecraft:item",
"name": "minecraft:apple"
}
]
}
]
}
airdrop_supply/ammo_basic 的一个简单示例,提供 2 把铁剑,并可能提供一把钻石剑。
{
"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"
}
]
}
]
}
自定义通知
本模组的自定义通知可以通过自定义语言文件进行修改。标准语言文件如下,其中 "notification" 为所有通知文本的前缀:
{
"container.airdrop_supply.airdrop_supply": "空投补给箱",
"notification.airdrop_supply.airdrop_arrive": "%4$s 的空投补给箱已抵达 [%1$s]-[%2$s]-[%3$s]。",
"notification.airdrop_supply.airdrop_crash": "%1$s 的空投补给箱坠毁。",
"notification.airdrop_supply.airdrop_invalidate": "%4$s 在 [%1$s]-[%2$s]-[%3$s] 的空投补给箱已消失。",
"notification.airdrop_supply.airdrop_summoned": "%1$s 已呼叫空投补给箱,请耐心等待。",
"notification.airdrop_supply.airdrop_summoned_invalid_dimension": "%1$s 尝试在非主世界维度中呼叫空投补给箱。",
"notification.airdrop_supply.airdrop_location_set": "%3$s 已将空投地点固定于 [%1$s]-[%2$s]。",
"notification.airdrop_supply.airdrop_location_set_invalid_dimension": "%1$s 尝试在非主世界维度中设置空投地点。",
"notification.airdrop_supply.airdrop_location_unset": "%1$s 已取消固定的空投地点。",
"notification.airdrop_supply.airdrop_location_unset_invalid_dimension": "无法在此维度取消固定的空投地点。",
"item.airdrop_supply.airdrop_pager": "空投信标",
"item.airdrop_supply.airdrop_location_fixer": "空投定位器",
"item.airdrop_supply.airdrop_location_canceller": "空投取消器",
"block.airdrop_supply.airdrop_supply": "空投补给箱",
"creativetab.airdrop_supply.airdrop_supply": "空投补给"
}
- airdrop_arrive: 空投箱成功到达的通知。包含四个参数:空投箱的 x、y、z 坐标以及玩家名称。
- airdrop_crash: 因未选择空投箱而导致空投失败的通知。包含一个参数:玩家名称。
- airdrop_invalidate: 空投箱过期的通知。包含四个参数:空投箱的 x、y、z 坐标以及玩家名称。
- airdrop_summoned: 成功呼叫空投箱的通知。包含一个参数:玩家名称。
- airdrop_summoned_invalid_dimension: 因处于非主世界维度而导致空投呼叫失败的通知。手动呼叫的空投箱不会随机出现“无箱子”的情况。包含一个参数:玩家名称。
- airdrop_location_set: 成功设置空投地点的通知。包含三个参数:空投箱的 x、z 坐标以及玩家名称。
- airdrop_location_set_invalid_dimension: 因处于非主世界维度而导致空投地点设置失败的通知。包含一个参数:玩家名称。
- airdrop_location_unset: 成功取消空投地点设置的通知。包含一个参数:玩家名称。
- airdrop_location_unset_invalid_dimension: 因处于非主世界维度而导致空投地点取消失败的通知。无参数。
空投召唤命令
格式:/airdrop x y z airdrop_level airdrop_type
仅在主世界中有效
Airdrop Supply mod is now updated for Minecraft 1.20.1!
ReAirdrop Supply
This is an airdrop mod.
This mod needs to be used with a data pack to fully function and is designed for mod pack creators.
Compat list
Xaero's minimap

Configuration File
All configuration options are as follows (all are integers):
- AIRDROP_SPREAD_RANGE Maximum spread distance of airdrop boxes, not less than 10.
- AIRDROP_SPAWN_INTERVAL How often airdrop boxes appear, calculated in ticks, not less than 100.
- AIRDROP_DESPAWN_TIME How long before an airdrop box disappears, calculated in ticks, not less than 100.
- MEDIC_AIRDROP_WEIGHT Medic airdrop box weight, not less than 0.
- AMMO_AIRDROP_WEIGHT Ammo airdrop box weight, not less than 0.
- NO_AIRDROP_WEIGHT No airdrop box weight, not less than 0.
Please note, the sum of MEDIC_AIRDROP_WEIGHT and AMMO_AIRDROP_WEIGHT must be greater than 1, otherwise it will cause a crash.
- BASIC_BASE_WEIGHT Basic airdrop box base weight, not less than 0.
- BASIC_MULTIPLE_WEIGHT Basic airdrop box multiplier weight, not less than 0.
- MEDIUM_BASE_WEIGHT Medium airdrop box base weight, not less than -10000.
- MEDIUM_MULTIPLE_WEIGHT Medium airdrop box multiplier weight, not less than -10000.
- ADVANCED_BASE_WEIGHT Advanced airdrop box base weight, not less than -10000.
- ADVANCED_MULTIPLE_WEIGHT Advanced airdrop box multiplier weight, not less than -10000.
The weight calculation method for different levels is Weight = BASE_WEIGHT + Day * MULTIPLE_WEIGHT
A weight less than 1 means that level of airdrop box will not appear.
Data Pack
This mod's data pack needs to include six loot tables, the creation and use of data packs are not detailed here.
airdrop_supply/medic_basic corresponds to the loot table for basic medic airdrop boxes.
airdrop_supply/medic_medium corresponds to the loot table for medium medic airdrop boxes.
airdrop_supply/medic_advanced corresponds to the loot table for advanced medic airdrop boxes.
airdrop_supply/ammo_basic corresponds to the loot table for basic ammo airdrop boxes.
airdrop_supply/ammo_medium corresponds to the loot table for medium ammo airdrop boxes.
airdrop_supply/ammo_advanced corresponds to the loot table for advanced ammo airdrop boxes.
Please limit the type of loot table to chest.
A simple example of airdrop_supply/medic_basic, which provides 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"
}
]
}
]
}
A simple example of airdrop_supply/ammo_basic, which provides 2 iron swords and may provide a 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
Custom notifications for this mod can be modified through custom language files. The standard language file is as follows, with notification as the prefix for notifications.
{
"container.airdrop_supply.airdrop_supply": "Airdrop Supply Crate",
"notification.airdrop_supply.airdrop_arrive": "%4$s's airdrop supply crate has arrived at [%1$s]-[%2$s]-[%3$s].",
"notification.airdrop_supply.airdrop_crash": "%1$s's airdrop supply crate has crashed.",
"notification.airdrop_supply.airdrop_invalidate": "%4$s's airdrop supply crate at [%1$s]-[%2$s]-[%3$s] disappeared.",
"notification.airdrop_supply.airdrop_summoned": "%1$s has called an airdrop supply crate. Please be patient.",
"notification.airdrop_supply.airdrop_summoned_invalid_dimension": "%1$s tries to summon an airdrop supply crate in invalid dimension.",
"notification.airdrop_supply.airdrop_location_set": "%3$s has fixed airdrop location at [%1$s]-[%2$s].",
"notification.airdrop_supply.airdrop_location_set_invalid_dimension": "%1$s tries to set airdrop location in invalid dimension.",
"notification.airdrop_supply.airdrop_location_unset": "%1$s has canceled fixed airdrop location.",
"notification.airdrop_supply.airdrop_location_unset_invalid_dimension": "Cannot cancel fixed airdrop location in this dimension.",
"item.airdrop_supply.airdrop_pager": "Airdrop Pager",
"item.airdrop_supply.airdrop_location_fixer": "Airdrop Location Fixer",
"item.airdrop_supply.airdrop_location_canceller": "Airdrop Location Canceller",
"block.airdrop_supply.airdrop_supply": "Airdrop Supply Crate",
"creativetab.airdrop_supply.airdrop_supply": "Airdrop Supply"
}
- airdrop_arrive: Notification for successful airdrop box arrival. Four parameters are the airdrop box's x, y, z coordinates and player name.
- airdrop_crash: Notification for airdrop box failure due to no box being selected. The parameter is the player name.
- airdrop_invalidate: Notification for airdrop box expiration. Four parameters are the airdrop box's x, y, z coordinates and player name.
- airdrop_summoned: Notification for successful airdrop box call. The parameter is the player name.
- airdrop_summoned_invalid_dimension: Notification for airdrop box call failure due to being in a non-overworld dimension. A manually called airdrop box will not randomly result in no box. The parameter is the player name.
- airdrop_location_set: Notification for successful airdrop box location setting. Three parameters are the airdrop box's x, z coordinates and player name.
- airdrop_location_set_invalid_dimension: Notification for airdrop box location setting failure due to being in a non-overworld dimension. The parameter is the player name.
- airdrop_location_unset: Notification for successful airdrop box location unsetting. The parameter is the player name.
- airdrop_location_unset_invalid_dimension: Notification for airdrop box location unsetting failure due to being in a non-overworld dimension. No parameters.
Airdrop Summon Command
Format: /airdrop x y z airdrop_level airdrop_type
Only valid in the overworld
评论 0
登录后参与评分
还没有评论,来抢沙发吧