Simple Damage Caps 图标

Simple Damage Caps

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 2.0-hotfix1
本资源为搬运资源,原资源地址: https://modrinth.com/mod/simple-damage-caps
资源信息

Minecraft 版本: 1.21.1

平台: neoforge

标签: utility

资源介绍

Overview

A member of the Minecraft Pack Development discord was looking for a mod to cap the amount of damage an entity could recieve in a single blow, and other mods on offer weren't configurable or customizable enough. As such I quickly threw together this mod allowing you to set per-entity damage caps with Neoforge's Datamaps.

Configuration

Configuration of the mod is entirely done through datapacks.

  • Three shortcut tags exist for pack devs who just want a simple damage cap and aren't interested in configuration via datamaps. Entity Types tagged with _#simpledamagecaps:default_flat_damagecap, _#simpledamagecaps:default_percentage_damagecap, and #simpledamagecaps:invincible will be able to take no more than 15 damage per hit, 5% of max health per hit, and no damage at all, respectively.
  • Damage types can be assigned to the damage type tag _#simpledamagecaps:bypasses_damage_cap_ in order to completely bypass the damage cap on all mobs. This defaults to damage types that bypass invulnerability (such as /kill and void damage) in vanilla.
  • Damage caps for individual entities and entity type tags can be assigned through two simple datamaps located in _{your_namespace}/data_maps/entitytype/. See the spoiler below for an example.
    
    /// damage_caps_flat.json
    {
      "values": [
          "minecraft:wither": 15,
          "#minecraft:raiders": 5,
          "{entity_or_entity_type_tag_in_quotes}": {damage cap here}
      ]
    }

/// damage_caps_percentage.json
{
"values": [
"minecraft:wither": 0.15,
"#minecraft:raiders": 0.05,
"{entity_or_entity_type_tag_in_quotes}": {damage cap as decimal percentage of max health)
}


## Ports  
Will only happen to the lastest "community consensus" modding version, at my discretion.
下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Enchanted Books Levels

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

查看详情
AccurateFPS+

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

查看详情
necessary by krosovo

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

查看详情
Nether Brick Fixes

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

查看详情