一个自定义的空投补给模组
专为我的整合包开发
在此模组中,您可以自定义希望空投补给的时间以及想要投放的战利品箱。
目前有两种类型的空投补给(医疗型:medic、军事型:ammo)和三个等级(基础、中级、高级)。您可以根据需要自定义空投补给。
此模组需配合数据包使用才能完全生效,是一款面向整合包作者的模组。
配置文件
标准配置文件位于 config/airdrop_supply-common.toml
配置选项
所有配置选项如下(均为整数):
AIRDROP_SPREAD_RANGE = 空投补给扩散的最大距离,不得小于 10
AIRDROP_SPAWN_INTERVAL = 空投补给生成的频率,单位为刻,不得小于 100
AIRDROP_DESPAWN_TIME = 空投补给消失所需的时间,单位为刻,不得小于 100
MEDIC_AIRDROP_WEIGHT = 医疗类型空投补给的权重,不得小于 0
AMMO_AIRDROP_WEIGHT = 军事类型空投补给的权重,不得小于 0。
NO_AIRDROP_WEIGHT = 无空投补给的权重,不得小于零。
请注意,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。
不同等级的权重计算方式如下:权重 = BASE_WEIGHT + DAY * MULTIPLE_WEIGHT(累计权重)
权重小于 1 表示该等级不会出现空投补给。
数据包
此模组的数据包需包含六个战利品表,数据包的创建和使用方法此处不作说明。
您可以查看模组 data/airdrop_supply/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 对应高级军事空投补给的战利品表
空投补给召唤命令
格式:/airdrop x y z (空投等级)(空投类型)
仅在主世界有效。
A custom Airdrop Supply mod
Developed specifically for my modpacks
In this mod, you can customize the time you want to drop supplies and the loot box you want to drop
There are currently two types (medical drop: medic, military drop: ammo) and three levels (basic, medium, advanced) of Airdrop Supply. You can customize the Airdrop Supply according to your needs.
This mod needs to be used with a Datapack to be fully effective and is a mod for modpack authors.
Configuration file
A standard configuration file is at config/airdrop_supply-common.toml
Configuration Options
All configuration options are as follows (all integers) :
AIRDROP_SPREAD_RANGE = Maximum distance of airdrop supply spread, not less than 10
AIRDROP_SPAWN_INTERVAL = how often airdrop supplies appear, in ticks, not less than 100
AIRDROP_DESPAWN_TIME = how long it takes for airdrop supplies to disappear, in ticks, not less than 100
MEDIC_AIRDROP_WEIGHT = Weight of medical type of airdrop supply, not less than 0
AMMO_AIRDROP_WEIGHT = Weight of military type airdrop supply, not less than 0.
NO_AIRDROP_WEIGHT = No drop supply weight, not less than zero.
Please note that the sum of MEDIC_AIRDROP_WEIGHT and AMMO_AIRDROP_WEIGHT should be greater than 1. Otherwise it will crash.
BASIC_BASE_WEIGHT = the base weight of a normal airdrop supply, not less than 0.
BASIC_MULTIPLE_WEIGHT = the weight of the normal airdrop supply, not less than 0.
MEDIUM_BASE_WEIGHT = the base weight of the intermediate airdrop supply, not less than -10000
MEDIUM_MULTIPLE_WEIGHT = the weight of the intermediate airdrop supply, not less than -10000
ADVANCED_BASE_WEIGHT = the base weight of the advanced airdrop supply, not less than -10000
ADVANCED_MULTIPLE_WEIGHT = the weight of an advanced drop supply, not less than -10000.
Weights for different levels are calculated as follows: Weight = BASE_WEIGHT + DAY * MULTIPLE_WEIGHT (added weight)
Weight less than 1 means that airdrop supply will not appear at that level.
Datapack.
This mod Datapack needs to include six loot tables, how to make and use the Datapack is not described here.
You can check the mod's data/airdrop_supply/loot_tables, which contains the six loot tables.
Among them:
airdrop_supply/medic_basic corresponds to the loot tables for normal medical airdrop supplies
airdrop_supply/medic_medium corresponds to the loot tables of the intermediate medical airdrop supplies.
airdrop_supply/medic_advanced corresponds to the loot table of an advanced medical airdrop supplies.
airdrop_supply/ammo_basic corresponds to the loot table of a normal military airdrop supply.
airdrop_supply/ammo_medium corresponds to the loot table of an intermediate military airdrop supplies.
airdrop_supply/ammo_advanced corresponds to the loot table of an advanced military airdrop supplies.
Airdrop Supply Summoning Commands
Format: /airdrop x y z (Airdrop level) (Airdrop type)
Valid only in overworld.
评论 0
登录后参与评分
还没有评论,来抢沙发吧