跳到正文

Set Effects

作者:WhiseNT

This mod allows you to customize your own Armor Set by scripts.

收藏

截图

介绍

中文介绍正在准备中,下面暂时显示原文。

Set Effects Mod

Overview

Set Effects designed to provide developers with the tools to create fully customizable armor sets in Minecraft. By leveraging KubeJS scripting, this mod introduces a flexible and dynamic system for defining set..

Key Features

  • Implements an item-ID-based set bonus system
  • Fully supports three equipment slots:
    ▪️ HandSlots (Main/Off-hand items)
    ▪️ ArmorSlots (Helmet to Boots)
    ▪️ CuriosSlots (Curios items!)
  • For each Set,you can add the potioneffects,attributes,tooltips,and inject functions into some conditions like jump and attack.

For Developer

  • Create custom sets effortlessly by scripts.
  • Design unique set effects
  • Customize tooltip displays

Use Example

//You need import the SetEffects from Contentpacks.
const SetEffects = ContentPacks.getShared('server','com.whisent.seteffects')
//SetRangeManager can modify the effective range of the set
const SetRangeManager = SetEffects.setRangeManager
//SetEvents is the core of this mod,you can use SetEvents to create sets and modify them.
const SetEvents = SetEffects.setEvents

SetEvents.registry(event=>{
    event.create(["minecraft:leather_helmet","minecraft:leather_chestplate",
        "minecraft:leather_leggings","minecraft:leather_boots"],"leather")
        .setName('Leather Set')
        .addAttribute("minecraft:generic.max_health",uuid,10,'addition')
        .addPotionEffect('speed',0,false,false)
        .addAttribute("minecraft:generic.attack_speed",UUID.fromString('38663ac4-26e0-ea8c-f65f-edb9e930c57c'),0.3,'addition')
        .setCounts(4)
        .injectFallFunc((event,set)=>{
            event.setDistance(event.getDistance()-3)
        })

})
/**
 * For the sets had been registered,you can use modification event to edit.
 * getSet method will return a set instance
 * getSets method will return a Array<EffectiveSet>
 * getMaps method will return the SetsMap,which has all infomations of the Sets.
 */
SetEvents.modification(event=>{

})

常见问题

Set Effects 支持哪些 Minecraft 版本?

Set Effects 支持 Minecraft Java 版 1.20.1,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。

Set Effects 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

WhiseNT 的其他作品

查看全部 →