模组介绍 Mod Description
该模组的灵感来源于《英雄联盟》的极地大乱斗模式。由于近期我正在制作整合包,因此编写了此支持库。 请勿选择低于 1.0.2 的版本!
This mod was inspired by League's ARAM, and since I was working on a modpack anyway, I ended up writing this library to support it. Please do not choose any version below 1.0.2
它能做什么 What does it do
就像肉鸽游戏一样,当你完成某件事时,你可以在三个 BUFF 中选择一项来增强自己。
Just like in a roguelike game, upon completing a certain objective, you can choose one of three buffs to empower yourself.
关于指令 About Command
- (op)
- /hextech
- common(普通)
- rare(稀有)
- epic(史诗)
- legendary(传说)
本模组内置四种奖池,代表了海克斯的稀有度与强度,但并未内置任何海克斯。
This mod includes four built-in loot pools, which represent the rarity and power level of the Hextech enhancements, but it does not include any actual Hextech abilities itself.
- /hextech
- list 此命令可用于管理已选择的海克斯,并选择放弃其中一个。
This command allows users to manage their selected Hextech and choose to abandon one of them.
如何使用 How to use it
如果你只是一个普通玩家,请忽视。
If you are just a regular player, you can ignore this.
1. 导入依赖 import dependencies
implementation "io.github.ren-zaifei:hextech_lib:${Version}"
Vsersion:[
2. 继承 HCard 基类 Extend the HCard Base Class
public class exam extends HCard {
}
3. 重写方法 Override the Methods
//玩家选择时调用 Called when the player selects the card
@Override
public void applyEffect(Player player) {}
//玩家触发克隆事件时调用(玩家死亡重生等) Called when a player clone event occurs (e.g., player death and respawn)
@Override
public void reload(Player oldPlayer, Player newPlayer) {}
//玩家放弃海克斯时调用 Called when the player abandons the Hextech card
@Override
public void disconnect(Player player) {}
4. 创建实例 Create an Instance
private static final List<HCard> cards = new ArrayList<>();
public static void registerCard() {
createCards();
if (cards.isEmpty()) return;
for (HCard card : cards) {
HCardPool.registerHCard(card);
}
}
private static void createCards(){
cards.add(new exam(
ResourceLocation.fromNamespaceAndPath(xxx.MODID,"xxx"),
xxx.MODID+".card."+HCard.Rarity.COMMON+".xxx."+"title",
xxx.MODID+".card."+HCard.Rarity.COMMON+".xxx."+"description",
HCard.Rarity.COMMON,
Items.xxx.getDefaultInstance()
));
}
5. 在主类注册卡片进卡池 Register Cards in Your Main Class
public HextechLib(IEventBus modEventBus) {
modEventBus.addListener(this::commonSetup);
}
private void commonSetup(FMLCommonSetupEvent event) {
event.enqueueWork(xxx::registerCard);
}
你是这个资源的作者?登录后可认领此资源。
相似资源
一个用于收集生物掉落物的多区块模组。
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
查看物品与配方
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
适用于 MC 1.18+ 的 Effekseer 加载器
添加区块认领和玩家组队功能,并与 Xaero's Minimap 和 World Map 集成
评论 0
登录后参与评分
还没有评论,来抢沙发吧