跳到正文

JAWMS Integrations

作者:Mahghuuuls

Integration of JAWMS with other mods

收藏

介绍

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

Adds optional compatibility between Just Another Wizardry Mana System and other mods. Each integration activates only when its mod is installed and can be disabled independently.

Included Integrations

Currently includes integrations for:

AI usage disclaimer: This mod was developed with AI-agent assistance using this agent workflow. The project owner reviewed the work during development.

For Mod Developers

This project is not intended to be the only source of JAWMS integrations. It uses the same public JAWMS API available to developers creating their own addons.

Quality Tools

Adds configurable JAWMS qualities to Electroblob’s Wizardry mage armor, including maximum mana, mana regeneration, Spell Efficiency, school-specific Spell Efficiency, and post-cast regeneration delay.

Built-In Qualities

These positive qualities can appear on official Electroblob Wizardry mage armor by default:

  • Manawoven: Increases maximum mana by 5%.
  • Meditative: Increases mana regeneration by 5%.
  • Efficient Casting: Adds 5 Spell Efficiency, improving mana-cost efficiency for spells from every school.
  • Swift Recovery: Reduces the delay before mana begins regenerating after casting by 10%.
  • Magic Focus: Adds 8 Magic Spell Efficiency, improving mana-cost efficiency for Magic spells.
  • Fire Focus: Adds 8 Fire Spell Efficiency, improving mana-cost efficiency for Fire spells.
  • Ice Focus: Adds 8 Ice Spell Efficiency, improving mana-cost efficiency for Ice spells.
  • Lightning Focus: Adds 8 Lightning Spell Efficiency, improving mana-cost efficiency for Lightning spells.
  • Necromancy Focus: Adds 8 Necromancy Spell Efficiency, improving mana-cost efficiency for Necromancy spells.
  • Earth Focus: Adds 8 Earth Spell Efficiency, improving mana-cost efficiency for Earth spells.
  • Sorcery Focus: Adds 8 Sorcery Spell Efficiency, improving mana-cost efficiency for Sorcery spells.
  • Healing Focus: Adds 8 Healing Spell Efficiency, improving mana-cost efficiency for Healing spells.

For Modpack Creators

Modpack authors can create additional Quality Tools qualities using JAWMS attributes. Add the following names to the attributes array of a quality in the Quality Tools configuration:

  • jawmsintegrations.max_mana_flat: flat maximum mana. The amount must be a whole number.
  • jawmsintegrations.max_mana_percent: percentage maximum mana.
  • jawmsintegrations.mana_regen_flat: flat mana regeneration.
  • jawmsintegrations.mana_regen_percent: percentage mana regeneration.
  • jawmsintegrations.spell_efficiency: global Spell Efficiency.
  • jawmsintegrations.spell_efficiency_magic: Magic Spell Efficiency.
  • jawmsintegrations.spell_efficiency_fire: Fire Spell Efficiency.
  • jawmsintegrations.spell_efficiency_ice: Ice Spell Efficiency.
  • jawmsintegrations.spell_efficiency_lightning: Lightning Spell Efficiency.
  • jawmsintegrations.spell_efficiency_necromancy: Necromancy Spell Efficiency.
  • jawmsintegrations.spell_efficiency_earth: Earth Spell Efficiency.
  • jawmsintegrations.spell_efficiency_sorcery: Sorcery Spell Efficiency.
  • jawmsintegrations.spell_efficiency_healing: Healing Spell Efficiency.
  • jawmsintegrations.mana_regen_delay_reduction_flat: flat post-cast mana-regeneration-delay reduction in seconds.
  • jawmsintegrations.mana_regen_delay_reduction_percent: percentage post-cast mana-regeneration-delay reduction.

Use attribute operation 0. Positive mana and regeneration values are bonuses, while negative values are penalties. Positive delay-reduction values shorten the delay, while negative values lengthen it. Spell Efficiency values cannot be negative, and percentage delay reduction cannot exceed 100.

For example, this gives a quality a +10% maximum-mana modifier:

"attributes": [
  {
    "name": "jawmsintegrations.max_mana_percent",
    "amount": 10,
    "operation": 0
  }
]

Ancient Spellcraft

Reworks selected mana-related baubles to use JAWMS mana. This includes:

  • Lesser and Greater Mana Rings, which add flat maximum mana.
  • Majestic Mana Charm, which adds percentage maximum mana.
  • Crystal Ring, which adds Spell Efficiency.
  • Everfull Flask of Mana, which stores and regenerates mana for offhand use.
  • Ring of Dagorim, which can consume ordinary mana flasks when the wearer is low on mana.

CraftTweaker

Adds a server-authoritative ZenScript API for reading coherent JAWMS mana state, setting or restoring mana, exact consumption, bounded draining, and starting the current post-cast regeneration delay.

Just Another Food System

Pack makers can give foods bonuses to maximum mana, mana regeneration, Spell Efficiency, and the delay before mana starts regenerating after a cast. Bonuses last while the food is active. The pack maker chooses which foods grant them and how much each food gives.

For Modpack Creators

In config/jafs/foods.json, add JAWMS properties to a food definition’s modifiers array. Each modifier takes a property ID, an operation, and an amount. Prefix each property below with jawmsintegrations:.

  • Maximum mana (max_mana). Use flat for whole mana or percent for a percentage change.
  • Mana regeneration (mana_regen). Use flat for mana per second or percent for a percentage change.
  • Post-cast regeneration delay (mana_regen_delay). Use flat for seconds or percent for a percentage change. Negative values shorten the delay and positive values lengthen it.
  • Spell Efficiency (spell_efficiency). Use flat for non-negative points across all schools.
  • School Spell Efficiency. Use flat for non-negative points with spell_efficiency_magic, spell_efficiency_fire, spell_efficiency_ice, spell_efficiency_lightning, spell_efficiency_necromancy, spell_efficiency_earth, spell_efficiency_sorcery, or spell_efficiency_healing.

For percent, an amount of 10 means 10%. Percentage reductions can go down to -100. Positive amounts increase maximum mana or regeneration, and negative amounts reduce them.

This example apple grants +20 maximum mana and a 10% shorter post-cast regeneration delay for five minutes. Add the object to your existing food list, or add its modifiers to the apple definition you already use.

{
  "id": "mana_apple",
  "match": [{"item": "minecraft:apple", "meta": 0}],
  "fullDuration": 300,
  "priority": 0,
  "modifiers": [
    {"property": "jawmsintegrations:max_mana", "operation": "flat", "amount": 20},
    {"property": "jawmsintegrations:mana_regen_delay", "operation": "percent", "amount": -10}
  ]
}

Just Another Stamina System

Wizardry wand spells spend stamina alongside mana, including addon spells cast through a wand. Scrolls remain stamina-free.

The default base costs are 12 stamina per successful single cast and 8 stamina per second of continuous casting. Normal stamina rules apply, and continuous spells stop when stamina runs out. You can tune the costs or turn off spell stamina in the config.

Configuration And Installation

The generated jawmsintegrations.cfg can enable or tune each installed integration. Changes require a restart.

JAWMS is required. Use JAWMS 1.1.1 or newer on Cleanroom. Install the addon on both the client and server.

Source code

常见问题

JAWMS Integrations 支持哪些 Minecraft 版本?

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

JAWMS Integrations 怎么安装?

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

评论

登录后评论和评分

Mahghuuuls 的其他作品

查看全部 →