跳到正文

ManaTweaks

作者:nihiltres

Botania/CraftTweaker 附属模组,可操控物品栏中的魔力

收藏

介绍

介绍由机器翻译自 CurseForge 原页面,仅供参考。

ManaTweaks 添加了一些方法,允许 CraftTweaker 脚本操作玩家物品栏中的魔力:提供魔力、消耗魔力、用魔力修复耐久度,或通过盔甲减少魔力消耗。除非 CraftTweaker 脚本使用它,否则该模组不会执行任何操作。你必须安装 Botania、CraftTweaker 和 MTLib 才能使用此模组。

我创建了一个该模组的示例用法,即 Botania Materials,它在 CraftTweaker/ContentTweaker 中为 Tinker’s Construct 和 Construct’s Armory 实现了材料。

如果许可证中没有明确说明:你可以自由地在整合包中使用此模组。

完整文档位于 “Pages”部分,但作为快速概览,请参阅以下方法签名列表:

  • ManaHandler 模块:

    • ManaHandler.requestMana(IItemStack, IEntity, int, bool) : int
    • ManaHandler.requestMana(IEntity, int, bool) : int
    • ManaHandler.requestManaExact(IItemStack, IEntity, int, bool) : bool
    • ManaHandler.requestManaExact(IEntity, int, bool) : bool
    • ManaHandler.requestManaForTool(IItemStack, IEntity, int, bool) : int
    • ManaHandler.requestManaForTool(IEntity, int, bool) : int
    • ManaHandler.requestManaExactForTool(IItemStack, IEntity, int, bool) : bool
    • ManaHandler.requestManaExactForTool(IEntity, int, bool) : bool
    • ManaHandler.dispatchMana(IItemStack, IEntity, int, bool) : int
    • ManaHandler.dispatchMana(IEntity, int, bool) : int
    • ManaHandler.dispatchManaExact(IItemStack, IEntity, int, bool) : bool
    • ManaHandler.dispatchManaExact(IEntity, int, bool) : bool
    • ManaHandler.manaRepairEntitySlot(IEntity, IEntityEquipmentSlot, int, int) : bool
    • ManaHandler.manaRepairEntitySlot(IEntity, int, int, int) : bool
    • (player as IEntity).manaRepairSlot(IEntityEquipmentSlot, int, int) : bool
    • (player as IEntity).manaRepairSlot(int, int, int) : bool
    • ManaHandler.manaRepairStack(IItemStack, IEntity, int, int) : bool
    • (stack as IItemStack).manaRepair(IEntity, int, int) : bool
  • ManaDiscounter 模块:

    • ManaDiscounter.addDiscount(IItemStack, ManaDiscountFunction) : bool
    • ManaDiscounter.removeDiscount(IItemStack) : bool
  • PixieHandler 模块:

    • PixieHandler.spawnPixie(double, double, double, IEntity, IEntity, float, IPotionEffect...) : void
    • PixieHandler.spawnPixie(IBlockPos, IEntity, IEntity, float, IPotionEffect...) : void
    • PixieHandler.spawnPixie(double, double, double, IEntity, IEntity, @Optional float) : void
    • PixieHandler.spawnPixie(IBlockPos, IEntity, IEntity, @Optional float) : void
    • PixieHandler.spawnPixie(IEntity, IEntity) : void
  • DamageHelper 模块:

    • DamageHelper.isSafeDamageModification(IItemStack, int) : bool
    • DamageHelper.damage(IItemStack, int) : bool
    • DamageHelper.repair(IItemStack, int) : bool
    • (stack as IItemStack).canRepair(@Optional int) : bool
    • (stack as IItemStack).canDamage(@Optional int) : bool
    • (entityLivingBase as IEntity).canRepairSlot(IEntityEquipmentSlot, @Optional int) : bool
    • (entityLivingBase as IEntity).repairSlot(IEntityEquipmentSlot, @Optional int) : bool
    • (entityLivingBase as IEntity).canDamageSlot(IEntityEquipmentSlot, @Optional int) : bool
    • (entityLivingBase as IEntity).damageSlot(IEntityEquipmentSlot, @Optional int) : bool
    • (player as IEntity).canRepairSlot(int, @Optional int) : bool
    • (player as IEntity).repairSlot(int, @Optional int) : bool
    • (player as IEntity).canDamageSlot(int, @Optional int) : bool
    • (player as IEntity).damageSlot(int, @Optional int) : bool

常见问题

ManaTweaks 支持哪些 Minecraft 版本?

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

ManaTweaks 怎么安装?

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

评论

登录后评论和评分

nihiltres 的其他作品

查看全部 →