ReHurtTime 图标

ReHurtTime

作者:rebot | 分类:模组

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

Minecraft 版本: 1.20.1

平台: forge neoforge

标签: adventure game-mechanics mobs

资源介绍

ReHurtTime reworks Minecraft’s damage invulnerability mechanic in a lightweight and vanilla-friendly way.

By default, most damage sources bypass the standard invulnerability period, allowing entities to receive damage more consistently. Knockback is disabled by default for bypassed damage, preserving the original feel.

All settings can be adjusted in-game via the configuration screen.

Default Behavior

  • Players are protected by invulnerability time.
  • Environmental damage (fire, sweet berry bushes, etc.) is excluded.
  • Campfire damage does not bypass invulnerability.
  • Knockback is only applied when the last damage source has the minecraft:no_knockback tag.

Important: After updating to a new version, please reset the mod configuration (delete the config file or reset in-game) to apply the updated default predicates.

Advanced Configuration

Bypasses Invulnerability Predicate (Config: bypassesInvulnerabilityPredicate)

getEntityType(entity) != 'minecraft:player' 
&& !include(getSourceTags(source), 'neoforge:is_environment') 
&& getSourceType(source) != 'minecraft:campfire'

Applies Knockback Predicate (Config: appliesKnockbackPredicate)

include(getSourceTags(getLastDamageSource(entity)), 'minecraft:no_knockback')

Expression API

This mod uses AviatorScript for advanced customization.
Documentation: AviatorScript Wiki

Available variables:

LivingEntity entity, DamageSource source

Available methods:

String getEntityType(Entity entity), Set<String> getEntityTags(Entity entity)
String getSourceType(DamageSource source), Set<String> getSourceTags(DamageSource source)
String getItemType(ItemStack stack), Set<String> getItemTags(ItemStack stack)
DamageSource getLastDamageSource(Entity entity), Entity getEntity(DamageSource source)
Entity getDirectEntity(DamageSource source), ItemStack getWeaponItem(DamageSource source)

Logging (Config: logEnabled)

Set logEnabled to true to output detailed damage information to the console for debugging. You can also return a HashMap to fully customize the log format.

下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Synchro

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

查看详情
Alacrity | Just Enough Items (JEI) Support

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

查看详情
AREPEEGEE (RPG), an Origins Addon

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

查看详情
Cliented

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

查看详情