Logo
MINECRAFTBIBLE
Items
Items

All game items

Blocks
Blocks

Building blocks

Mobs
Mobs

Creatures & monsters

Biomes
Biomes

World biomes

Structures
Structures

Generated structures

Recipes
Recipes

Crafting guides

Advancements
Advancements

Achievements

Loot Tables
Loot Tables

Drop rates

Tags
Tags

Item groupings

All Versions
View all data →
Capes
Cape ArchiveNEW

Browse rare Minecon capes, OptiFine capes, and custom capes from players worldwide

Browse

Player Database
Player DatabasePopular

Search any player

Skin Browser
Skin Browser

Browse & download skins

Cape Gallery
Cape GalleryNEW

Minecon & OptiFine capes

Seed Vault
Seed Vault

Curated seeds

Learn

Guides
GuidesNew

Tutorials & tips

Blog
Blog

News & updates

Community

Community Hub
Community HubHub

Posts, discussions & more

All Versions
View community →
Seed Analyzer
Seed Analyzer

World seed analysis

Loot Explorer
Loot Explorer

Drop rates

Crafting Calculator
Crafting Calculator

Material planning

Enchant Calculator
Enchant Calculator

Probability math

Redstone Lab
Redstone Lab

Signal timing

Trading Profit
Trading Profit

Villager ROI

All Versions
View all tools →
Mods
Mods

Browse all mods

Plugins
Plugins

Server plugins

Resource Packs
Resource Packs

Textures & sounds

Shaders
Shaders

Visual enhancements

Datapacks
Datapacks

World logic

Scanner
Mod Intelligence

Scan & analyze any mod

All Versions
View all mods →
Loading...
IntroductionIntroductionVersion HistoryVersion HistoryGuidesGuidesBlog & NewsBlog & News
ItemsItemsBlocksBlocksMobsMobsRecipesRecipesBiomesBiomesStructuresStructuresAdvancementsAdvancementsLoot TablesLoot TablesTagsTags
ModsModsPluginsPluginsResource PacksResource PacksShadersShadersDatapacksDatapacks

MinecraftBible

The Ultimate Wiki

Logo
MINECRAFTBIBLE

The ultimate Minecraft reference. Every item, block, mob, and recipe documented with precision.

Community

  • Skin Browser
  • Cape Gallery
  • Seed Vault
  • Blog
  • Guides

Database

  • Items
  • Blocks
  • Mobs
  • Recipes
  • Biomes
  • Structures

Tools

  • Seed Analyzer
  • Mod Intelligence
  • Crafting Calculator
  • Enchant Calculator

Mods & Packs

  • Mods
  • Plugins
  • Resource Packs
  • Shaders
  • Datapacks

Site & Legal

  • About
  • Authors
  • Editorial Policy
  • Corrections
  • Contact
  • Privacy Policy
  • Terms of Service
  • DMCA
  • Sitemap

© 2026 MinecraftBible. Not affiliated with Mojang or Microsoft.

PrivacyTermsContact
In Combat
ModMIT

In Combat

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

234
Downloads
7
Followers
3 months ago
Updated
📦
5
Versions
game-mechanicsutilityfabric
Download Latestv1.0.4View on Modrinth

📖About In Combat

In Combat

banner image
discord_link_badge
Static Badge

Static Badge
Static Badge

Installation

Requires

  • oωo (owo-lib)
  • Fabric API

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...
}

👥 Team & Contributors

EaglesEye
EaglesEyeOwner

⚙️ Compatibility

Environment
✅ Client & Server
Loaders
fabric
Minecraft Versions
1.20.1

🔗 Links

Modrinth Page