Mod

Project MMO: Iron's Spellbooks Compat (backport)

Quick rating

Project MMO: Iron's Spellbooks Compat (backport)

No reviews yet

A backported addon for Project MMO

Fantasy
Magic
RPG
Player Leveling
Skills & Abilities
Mod Addon
Mod Loaders
Forge
Minecraft

Community voices

Reviews

Versions
Loading versions…
Match includes

Click once to include, again to exclude, again to clear

Rating Any
Any 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0
Min
Max
Play Status
Reviews
Time Played
hrs+
Verified developers only
Has developer response
List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Delete this review?

This removes your review from the project. You can write a new review after.

Review submitted for moderation

Your review has been sent to moderators, who will check that it meets our guidelines before it appears publicly.

No reviews yet. Be the first to review this project!

Get it on

Available Platforms

About

Project Details

Type
Mod
Latest Version
pmmo_spellbooks_compat-1.19.2-1.0.6.jar

For authors

Embed Badge

If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.

Custom banner text
ModDex rating badge preview

Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.

Identifiers

Platform IDs

CurseForge ID

Resources

External Links

Source Issues Wiki Discord

About

Description


About:

This compatability mod allows you to add skill requirements to spells using datapacks. If a player doesn't meet the requirements then they can't cast the spell. It allows you to specify requirements on a per spell level basis as well. These requirements can be configured to only apply when casting from scrolls, spellbooks, and/or swords. You can also make it so these requirements prevent players from inscribing the spell into their spellbook entirely. There is also a config that allows you to award xp to a player when their spell heals another player. This enables healers/priest archetypes to actually be able to level a skill while supporting other players.

NOTE: There is no real support for the magic skill afaik, as that is for 1.20.1. This is just a backport.
I may continue on the mod in the future, but don't count on it.

Credit goes to the original mod creator, Silvertide

Original addon for 1.20.1 can be found here


Guide:

As soon as you load into your world, use the command /pmmo_irons_compat genSpellData to generate the datapack required to change the skill settings of the mod.

The datapack will appear in \curseforge\minecraft\Instances\(instance name)\saves\(world)\datapacks
and will contain everything you need. An easy way to access it from in-game is to press esc, then click on "Mods", then "Open mods folder" and navigate to your saves folder from there.

The .json files will look like this:
{
  "requirements": {},
  "default_requirements": {},
  "sources": [
    "scroll",
    "spellbook",
    "sword",
    "inscribe"
  ],
  "replace": true
}
and can be altered to give the desired requirements to your spells.

Here is an example you may use as a template:
{
  "requirements": {
    "1": {},
    "2": { "combat":  5},
    "3": { "combat":  15},
    "4": { "combat":  25},
    "5": { "combat":  50},
  },
  "default_requirements": {
    "combat": 10,
    "charisma": 2
  },
  "sources": [
    "scroll",
    "spellbook",
    "sword",
    "inscribe"
  ],
  "replace": true
}

The "requirements" section allows you to set requirements for specific spell levels. In the code I provided, level 1 spells has no requirements in order for you to cast them. The "requirements" section also overrides the "default_requirements" for level 1 spells with this configuration.
Any other spell level that doesn't have set requirements, will require you to be level 10 combat and level 2 charisma. You can have spells require multiple level requirements at a time, as an example for spells you would use with a bow could be combined with "archery".
You can add as many skill level requirements as you want for any spell level.

Example for "requirements" with multiple skill level requirements:
{
  "requirements": {
    "1": {},
    "2": { "archery":  5,"combat":  5}
    "3": { "archery":  15,"combat":  15},
    "4": { "archery":  25,"combat":  25,"charisma":  25},
    "5": { "archery":  50,"combat":  50,"charisma":  50,"alchemy":  50},
    
  },
  "default_requirements": {
    "combat": 10,
    "charisma": 2
  },
  "sources": [
    "scroll",
    "spellbook",
    "sword",
    "inscribe"
  ],
  "replace": true
}

The "sources" section allows you to specify when the requirements are needed.
As an example, if you were to remove the "inscribe" from underneath sources, you would have no level requirements in order to inscribe something.

The "replace" section is purely for datapack compatibility. If there are other datapacks changing anything related to the spells, then having it set to "replace": true will override anything that was loaded before this datapack generated by the mod. If multiple datapacks have this, the datapack that loads last will be the one to override.

The "default_requirements" sections isn't required to be included. If you only want the configured spell to have the same requirement across all levels, remove "requirements" and only use "default_requirements". Don't delete the "sources" section, as that is essentially what makes the entire .json work. If you don't want a spell to have level requirements, delete the .json instead.

Do note that instead of "magic" like in the 1.20.1 version of this addon, it's "combat" since datapack support for damage types first were added in 1.19.4, meaning that spells share XP with regular combat skills.
You could eventually replace "combat" with any skill name, but you will get only combat and endurance XP when you kill something with spells from Iron's Spells 'n Spellbooks regardless of the skill requirements on a spell.

After you've configured the .json files to your liking, save it and use the command /reload in-game to make the changes take effect.

Screenshots

Gallery

This project has no gallery images yet.

Versions

Files

Relations

Project Relations

More like this

Similar Mods

Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.

On ModDex

Community snapshot

0
Ratings
0
Followers
0
In stacks

By the numbers

Statistics

~1,000
Downloads
Last Updated
Created
Last synced
When ModDex last fetched and imported data for this project from CurseForge or Modrinth. High-traffic and active projects are checked more often.
Next pipeline sync