Set Bonuses

Set Bonuses

Mod

Fully configurable enchantments and set bonuses

Server EquipmentMagic

322 downloads
7 followers
Created3 years ago
Updated2 years ago

Follow Save
Set Bonuses has been archived. Set Bonuses will not receive any further updates unless the author decides to unarchive the project.
Host your Minecraft server on BisectHosting - get 25% off your first month with code MODRINTH.

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

Source

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

Source

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!

External resources



Project members

CodedSakura

Owner


Technical information

License
ISC
Client side
unsupported
Server side
required
Project ID