Back to mods
PhLib project artwork

Modrinth · Minecraft mod

PhLib

Library for my (and your; idc) Hex Casting addons.

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which PhLib release should I use?

Updated 3 months ago
Latest stable file 0.1.4
Game version 1.20.1
Loader Fabric

PhLib 0.1.4 targets 1.20.1 with Fabric. Do not install it on the client. It must be installed on the dedicated server. 4 required mods need a matching file.

Where it goes

Is PhLib required on the client, server, or both?

Do not install it on the client. It must be installed on the dedicated server.

Client Not supported
Dedicated server Required
Loader for this release Fabric
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

This file is marked server-only.

What else does PhLib 0.1.4 need?

0.1.4. Change the file and its required mods may change too.

4 required mods need a matching file

Install Hex Casting, Fabric API, Patchouli, Cardinal Components API and 8 more first, but 4 required mods have no matching file for this setup. Do not mix loader builds to force a match. 11 come through another mod in the chain.

1 listed on this file 11 pulled in by those mods
Hex Casting Needed by PhLib 0.1.4
required
Matching file found Matched file: 0.11.4
Fabric API Needed by Hex Casting
pulled in
No matching file
Patchouli Needed by Hex Casting
pulled in
Matching file found Matched file: 1.20.1-80-fabric
Inline Needed by Hex Casting
pulled in
Matching file found Matched file: 1.20.1-1.2.2-fabric
Fabric Language Kotlin Needed by Hex Casting
pulled in
Matching file found Matched file: 1.13.7+kotlin.2.2.21
PAUCAL Needed by Hex Casting
pulled in
Matching file found Matched file: 0.6.0
Fabric API Needed by Patchouli
pulled in
No matching file
Cloth Config API Needed by Inline
pulled in
Matching file found Matched file: 11.1.136+fabric
Fabric API Needed by Inline
pulled in
Matching file found Matched file: 0.92.12+1.20.1

11 extra mods were pulled in by other dependencies. Indented rows show who needs each one. We only count dependency files that match this setup. A file for another loader does not fill the gap.

Before you install it

Add PhLib without breaking your instance.

Built for PhLib 0.1.4. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use 0.1.4. It targets 1.20.1 with Fabric; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    Install Hex Casting, Fabric API, Patchouli, Cardinal Components API and 8 more first, but 4 required mods have no matching file for this setup. Do not mix loader builds to force a match. 11 come through another mod in the chain.

  3. 03

    Put it on the correct side

    Do not install it on the client. It must be installed on the dedicated server.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside 0.1.4. It opens that exact file at the source.

About this project

What does PhLib add?

This is a library used for my Hex Casting addons. As a user, you should only install this mod as a dependency.

You only have two reasons to install this mod independently:

  • The map iotas used by Iotaworks are stored and defined in this mod, and are fully-functional. This mod will also convert map iotas created by Hexic as needed.
  • This mod adds the /gimmeiota command, which as a level 2 operator allows you to add any iota with arbitrary data to your staffcasting stack.
For developers
repositories {
    exclusiveContent {
        forRepository {
            maven("https://pool.net.eu.org/") { name = "pool maven" }
        }
        filter {
            includeGroup("org.eu.net.pool")
            includeGroup("poollovernathan.fabric")
        }
    }
}

dependencies {
    api("org.eu.net.pool:phlib:VERSION")
}

Features

In addition to the user features listed above, phlib exposes some utilities to Scala addon developers:

  • ne"qaq" becomes HexPattern.fromAngles("qaq", HexDir.NORTH_EAST)
  • Patterns.register allows using ??? as an anglesig or implementation without crashng the game
  • Patterns.mkAction, Patterns.mkConstAction, and Patterns.mkLiteral for creating common action types
  • propagateMishaps catches mishaps from some casting env and re-throws them outside using Scala magic (used in Lani's gambits )
  • Miscellaneous utility functions

Project description from Modrinth.

Pick your setup

PhLib by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

1 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

PhLib versions and loaders

5 of 5 releases match

Looking for an older file? The official Modrinth project page is in Resources.