Скачать In Combat — Minecraft Моды — MetaMods
In Combat

In Combat

Активный

Установок

0

Последнее обновление

3 недели назад

Версии

1.20.1
Клиент и сервер
Fabric
Приключенческие
Игровые механики
Утилиты

In Combat

Icon image

Installation

Requires

Forge via Sinytra Connector

Features

Getting "In Combat" \ The player will become in combat when taking damage or having various status effects. This is all configurable.

When "In Combat" \ The player will have HUD element indicating that they are in combat.

When the player is in combat the following rules may apply.

  • Death on disconnect
  • Disable natural regeneration (disabled by default)

Configuration \ Basicly everything is configurable inside the mod.

General

  • "In Combat" duration (default = 300 ticks (15 seconds))
  • Disable natural regeneration (default = false)
  • Always "In Combat" (default = false)
  • Can become "In Combat" while in creative (default = false)
  • Which damage sources should set the player "In Combat"
    • All (default = false)
    • Player (default = true)
    • Any Entity (default = true)
    • Fire (default = true)
    • Fall Damage (default = false)
    • Dragon Breath (default = true)
  • If effects should set the player "In Combat" (default = true)
  • A list of all the effects that set the player "In Combat"

HUD Renderer

  • Should the HUD render (default = true)
  • X Offset (default = 0)
  • Y Offset (default = 0)

Mod Integrations

  • A config option to enable/disable each mod integration

    Mod Integrations

    Waystones

  • Prevents teleporting while in combat

Suggest integrations in the Discord!

Technical Info

Anyone can check if the player is in combat using the in combat API. Add this project to your mod with the Modrinth Maven. Once added checks can be done like following

if(CombatCheck.isPlayerInCombat(PlayerEntity player)){
  //Your code goes here...
}
Участники проекта
EaglesEye

EaglesEye

Разработчик