Home›Java›Mods›Fightzone
Fightzone
ModsJava

Fightzone

Java mod listed for Minecraft 26.x. Downloads from the MC Java Mods app on Android.

by Buckydev · on Modrinth

A scriptable mod to control damage and death using a accessible scripting language. Using JEXL and fabric events to allow or deny damage on a scriptable…

⬇ Download on Modrinth

Fightzone

A JEXL scripting mod to determine how entities take damage. Using a script to match the condition and an action for how to apply.

Configuration

enabled: true # Controls if scripts are evaluated at all.
saveEnabled: false # Controls config file saving. Useful if you want to keep the config pretty
scripts: # A script has 3 parts
  - action: DENY # Must be any of `ALLOW`, `DENY`, `PASS`. Case-sensitive
    name: Player protection # A name to locate quickly
    # Every script element must start with a `!script`. This makes the element a jexl script
    # The YAML formatting style should not matter. Below is a literal block scalar, this is the easiest to use. 
    script: !script |
      target == 'minecraft:player'

  - action: DENY
    name: Wolf protection
    # If an attacker is a player and the target is a wolf, the damage is blocked
    script: !script |
      (attacker != null && attacker == 'minecraft:player' ) && target == 'minecraft:wolf'

Variable List

target

The identifier for the entity taking damage.

amount

The amount of damage applying to the entity.

damage_source

The identifier for the damage type being applied.

attacker

The identifier for the attacking entity, is usually null when it's environmental damage like fire.

event

A helper to differentiate between a death or damage event.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

File checked by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more