介绍
Set Bonuses
This 1.17.1 Fabric mod requires [Fabric API]().
It was written by CodedSakura
for the Summer 2021 ServJam.
It includes in itself Polymer
and Server Translations API.
Set Bonuses adds fully configurable enchantments and set bonuses.
Config
Located in config/SetBonuses.json.
Root:
enchantments:
> enabled: boolean = true
> list: ConfigEnchantment[] = []
setBonuses:
> enabled: boolean = true
> list: ConfigSetBonus[] = []
ConfigEnchantment
enabled: boolean = true
id: string [Required!]
levels: int = 1 – amount of enchantment levels
toggleable: boolean = true – weather the player can toggle the enchantment using MMB
treasue: boolean = false – is treasure enchant
cursed: boolean = false – is cursed enchant
forEnchantedBook: boolean = true – can be gotten in an enchantment table
forRandomSelection: boolean = true – can be gotten by villager trading
slots: string[] = ["HEAD", "CHEST", "LEGS", "FEET"] – on what slots it will work
target: string = "ARMOR" – on what can be applied
(valid values: "ARMOR", "ARMOR_HEAD", "ARMOR_CHEST", "ARMOR_LEGS", "ARMOR_FEET")
rarity: string = "UNCOMMON" – (valid values: "COMMON", "UNCOMMON", "RARE", "VERY_RARE")
power: – level scaling in enchantment table
> base: int = 5 – base level
> delta: int = 5 – level range
> increment: int = 5 – increase to base per level
stacking: string = "MAX" – "MAX" – highest, "ADDITIVE" – sum, "MULTIPLICATIVE" – product
effect: [] = [] – array of potion effects
> id: string [Required!]
> duration: int = 210
> ambient: boolean = false
> showParticles: boolean = false
> showIcon: boolean = true
materials: string[] = [] – empty array means any item, otherwise functions as whitelist
(valid values: "LEATHER", "CHAIN", "IRON", "GOLD", "DIAMOND", "TURTLE", "NETHERITE")
ConfigSetBonus
enabled: boolean = true
effect: [] = [] – array of potion effects
> id: string [Required!]
> duration: int = 210
> ambient: boolean = false
> showParticles: boolean = false
> showIcon: boolean = true
toughness: float = 0 – added toughness per piece
protection: float = 0 – added protection per piece
knockbackResistance: float = 0 – added knockback resistance per piece
partial: string = "OFF" – "OFF" – only if all 4 pieces, "REDUCED_3" – reduced by half if 3 of 4 pieces
"MISSING_CHEST" – 4 pieces or mismatched chest piece
material: string [Required!] – (valid values: "LEATHER", "CHAIN", "IRON", "GOLD", "DIAMOND", "NETHERITE")
Thanks
Many thanks to the helpful people over at the ServJam discord and Fabric Server-Side Development discord!
Without your help I couldn’t have rushed it last evening to completion it wouldn’t be where it ended up being!
Special shout-outs to (in no particular order) BradBot_1#2042, TheEpicBlock_TEB#0452, Patbox#4687, Potatoboy#3053 and SpaceClouds42#2255!
常见问题
Set Bonuses 支持哪些 Minecraft 版本?
Set Bonuses 支持 Minecraft Java 版 1.17.1–1.18,共 2 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。
Set Bonuses 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。
CodedSakura 的其他作品
查看全部 →BlossomLib
Library mod for Blossom-series Fabric mods
BlossomTpa
Blossom-series /tpa command and utilities
FabricTPA
A server-side Fabric mod that adds /tpa command-set
BlossomHomes
Blossom-series /home command and utilities
评论
登录后评论和评分