In Combat

Quick rating

In Combat

No reviews yet

Detect when the player is in combat and prevent actions! Highly configurable & with mod integrations!

QoL & Tweaks
Mod Loaders
Fabric
Minecraft

Community voices

Reviews

Versions
Loading versions…
Match includes

Click once to include, again to exclude, again to clear

Rating Any
Any 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0
Min
Max
Play Status
Reviews
Time Played
hrs+
Verified developers only
Has developer response
List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Delete this review?

This removes your review from the project. You can write a new review after.

Review submitted for moderation

Your review has been sent to moderators, who will check that it meets our guidelines before it appears publicly.

No reviews yet. Be the first to review this project!

Get it on

Available Platforms

Compatibility

Supported Environments

Dev Environment
Client Required
Server Required

About

Project Details

Type
Mod
License
MIT License
Latest Version
in_combat-2.0.0+1.21.1.jar
Authors
CurseForge
Modrinth

For authors

Embed Badge

If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.

Custom banner text
ModDex rating badge preview

Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.

Identifiers

Platform IDs

CurseForge ID
Modrinth ID

Resources

External Links

About

Description

In Combat

banner image

discord_link_badge Static Badge

Static Badge Static Badge

Installation ⚙️

Requires

Features ✨

The Effects

  • There are 2 effects: Combat and Grace
  • Combat is the main effect applied when the player is in combat
  • Grace is an effect for modpack and mod developers to be used for creating safe areas

Becoming In Combat

There are 2 ways the player can become in combat:

  • Receiving damage
  • Dealing damage

When In Combat

  • A HUD element indicates that the player is in combat (see gallery)
  • The following restrictions can be enabled/disabled in the config:
    • Death on disconnect
    • Disable natural health regeneration
    • Disable block breaking
    • Disable block placing

Configuration ⚙️

There are many config options allowing for full customization.

Server Config

Combat Settings

  • In Combat duration
  • Should attacking entities put the player In Combat (with a blacklist)
  • The damage sources that will put the player In Combat:
    • All damage sources
    • Players
    • Entities
    • Fire damage
    • Fall damage
  • The restrictions while in combat:
    • Disable block breaking (with a whitelist)
    • Disable block placing (with a whitelist)
    • Kill the player on disconnect
    • Prevent natural health regeneration

Grace Settings

  • The restrictions while having Grace:
    • Disable block breaking (with a whitelist)
    • Disable block placing (with a whitelist)
    • Kill the player on disconnect
    • Prevent natural health regeneration
  • Heal while having Grace
  • Healing amount per tick while having Grace

Client Config

Configurable for Both Combat and Grace

  • Should the HUD be rendered
  • HUD icon X offset
  • HUD icon Y offset

In Combat API

There is an extensive API that allows mod developers to use many of the features of this mod.

In Combat

banner image discord_link_badge Static Badge

Static Badge Static Badge

Show 1.20.1 Description

Installation

Requires

Features ✨

Becoming "In Combat"

There are a few ways the player can become in combat

  • Receiving damage
  • Dealing damage
  • Having a specific status effect

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)
  • Disable block breaking/placing (disabled by default)

Configuration ⚙️

Basically everything is configurable inside the mod.

General
  • "In Combat" duration (default = 300 ticks -> 15 seconds)
  • Player should die on disconnect (default = true)
  • Disable natural regeneration (default = false)
  • Disable block breaking (default = false)
  • Block breaking whitelist
  • Disable block placing (default = false)
  • Block placing whitelist
  • 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"
    • Additional effects that the player gets when "In Combat"
    • Attacking sets the player "In Combat"
    • Attacked entities that do not 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

Spell Engine

  • Spells are cost free to cast while out of 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)){
  //Your code goes here...
}

Installation ⚙️

Requires

Features ✨

The Effects

  • There are 2 effects Combat and Grace
  • Combat is the main effect applied when the player is in combat
  • Grace is an effect for modpack and mod developers to be used for creating safe areas

Becoming In Combat

  • Receiving damage
  • Dealing damage

When In Combat

  • A HUD element to indicate that you are in combat (see gallery)
  • The following restrictions can be enabled/disabled in the config
    • Death on disconnect
    • Disable natural health regeneration
    • Disable block breaking/placing

Configuration ⚙️

There are many config options allowing for full customization.

Server Config
  • Combat Settings
  • In Combat duration
  • Should attacking entities put the player In Combat (with a blacklist)
  • sdfsdf
  • The damage sources that will put the player In Combat
    • All damage sources
    • Players
    • Entities
    • Fire damage
    • Fall damage
    • The restrictions while in combat
    • Disable block breaking (with a whitelist)
    • Disable block placing (with a whitelist)
    • Kill the player on disconnect
    • Prevent natural health regeneration
    • Grace Settings
    • The restrictions while having grace
    • Disable block breaking (with a whitelist)
    • Disable block placing (with a whitelist)
    • Kill the player on disconnect
    • Prevent natural health regeneration
    • Heal while having grace
    • Healing amount per tick while having grace
Client Config
  • Configurable for both Combat and Grace
  • Should the HUD be rendered
  • HUD icon x-offset
  • HUD icon y-offset

In Combat API

There is an extensive API that allows mod developers to use many of the features of this mod.

Screenshots

Gallery

  • The HUD when in combat
    The HUD when in combat
  • The HUD when in combat
    The HUD when in combat

Versions

Files

Relations

Project Relations

More like this

Similar Mods

Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.

On ModDex

Community snapshot

0
Ratings
0
Followers
0
In stacks

By the numbers

Statistics

<1,000
Total Downloads
CurseForge
<1,000
Modrinth
<1,000
Last Updated
CurseForge
Modrinth
Created
CurseForge
Modrinth
Last synced
When ModDex last fetched this project from CurseForge or Modrinth. Every project is re-checked on a schedule, and any project that ships a new file is synced automatically within hours of the release.
New file updates sync automatically
How syncing works