Warning: file_put_contents(/www/wwwroot/nmbt.106988770/cache/modrinth_versions_UgFKzdOy.json): Failed to open stream: Permission denied in /www/wwwroot/nmbt.106988770/resource_detail.php on line 53
Pentamana - 墨喵 Minecraft 资源
Pentamana 图标

Pentamana

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 2.0.0-beta.14
本资源为搬运资源,原资源地址: https://modrinth.com/mod/pentamana
资源信息

Minecraft 版本: 26.1 26.1.1 26.1.2

平台: fabric

标签: library magic

资源介绍

Pentamana

Pentamana is a library adds non-registered mana status for living entities.

Compound data: Parent tag.
 |- Float mana: Any
 \- Float mana_capacity: Any

Manabar.png

Configuration

config/pentamana/server.json:

{
  "manaCapacityBase": 20.0,
  "manaRegenerationBase": 0.0625
}

config/pentamana/client.json:

{
  "manaBarOffsetX": 0,
  "manaBarOffsetY": -69,
  "manaBarDirection": "right",
  "manaBarAlignment": "middle",
  "manaBarMaxStars": 20
}

Command

Server Command

The commands below require premission level 2 to execute.

  • /mana get Print mana supply. Returns mana supply in point.
  • /mana set Set mana supply. Returns modified mana supply in point.
  • /mana add Add mana supply. Returns modified mana supply in point.
  • /mana subtract Subtract mana supply. Returns modified mana supply in point.
  • /pentamana reload Reload server config file.
  • /pentamana set ... <...> Set server config and save to config file.
  • /pentamana reset [...] Set server config to default and save to config file.

Client Command

  • /manabar set ... <...> Set manabar config and save to config file.
  • /manabar reset [...] Set manabar config to default and save to config file.

Tutorial

Codes in this tutorial are licenced under CC-0.

Installation

gradle.properties:

pentamana_version=2.0.0-beta.14

build.gradle:

repositories {
    exclusiveContent {
        forRepository {
            maven {
                name = "Modrinth"
                url = "https://api.modrinth.com/maven"
            }
        }
        filter {
            includeGroup "maven.modrinth"
        }
    }
}

dependencies {
    implementation "maven.modrinth:pentamana:${project.pentamana_version}"
}

Consume mana

livingEntity.consumeMana(1.234f) // Return true if successful.

Change how mana capacity is calculated

ManaEvents.CALCULATE_CAPACITY.register((livingEntity, capacity) -> {
    float f = capacity.floatValue() // Base value.
    // TO-DO: Do your modifies to f.
    capacity.setValue(f);
    return InteractionResult.PASS;
})
  • ManaEvents.CALCULATE_CAPACITY
  • ManaEvents.CALCULATE_REGENERATION
  • ManaEvents.CALCULATE_CONSUMPTION
  • ManaEvents.CALCULATE_DAMAGE

Pentamana Extra uses this.

Get Casting Damage

livingEntity.getCastingDamageAgainst(entity, 1.234f)
下载与版本
评论(0)
请 登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

赞助作者

请 登录 后赞助作者。

🔥 相关推荐
Presence

价格:0 墨喵币
下载量:0

查看详情
DupePlusPlus

价格:0 墨喵币
下载量:0

查看详情
Konquest

价格:0 墨喵币
下载量:0

查看详情
PackWiz-ard

价格:0 墨喵币
下载量:0

查看详情