No Nether Star PVP

Disable PvP when holding an Item (defaults to Nether Star)

303

Quick challenge

How far can you run before the mobs catch you?

No Nether Star PVP

NoNetherStarPVP Mod

---

Overview

The peaceful mod is a Minecraft Fabric mod designed to manage player-versus-player (PvP) interactions based on the presence of a specific item, defaulting to the Nether Star. This mod provides server admins with configurable options to enable or disable PvP in various contexts, useful for peaceful servers.

This mod doesn't affect PVE i.e Player Vs Entity combat.

Dependencies

- Cloth Config API - Cloth Config API

Default Behaviour

- By default, PvP is disabled for all players except the players holding the Nether Star.

Configuration

The mod uses a configuration file to manage its settings. Below are the available configuration options:

- `pvpDisableItem`: A boolean option to disable all PvP. When disabled all PvP is disabled. Default is `true`. - `pvpDisableItem`: A boolean option that when true disables PvP when holding `pvpDisableItem` and when false enables PvP only when holding `pvpDisableItem`. Default is `true`. - `pvpDisableItem`: A boolean option that check for the item only for the target player. Default is `true - `pvpDisableItem`: Specifies the item which the players should have to allow or disallow PvP. Default is `minecraft:nether_star`.

Configurations for different scenarios

- (Default behaviour): PvP is disabled for all players except the players holding the Nether Star. Both players should have nether star to PvP. (Default behaviour)

- `pvpDisableItem`: `true` - `pvpDisableItem`: `true` - `pvpDisableItem`: `false` - `pvpDisableItem`: `minecraft:nether_star`

---

```json { "allowPvP": true, "inverse": true, "targetOnly": false, "pvpDisableItem": "minecraft:nether_star" } ```

- `pvpDisableItem`: PvP is enabled for all players except the players holding the Nether Star. Player holding nether star can hit any player. - `pvpDisableItem`: `true` - `pvpDisableItem`: `false` - `pvpDisableItem`: `true` - `pvpDisableItem`: `minecraft:nether_star`

---

```json { "allowPvP": true, "inverse": false, "targetOnly": true, "pvpDisableItem": "minecraft:nether_star" } ```

Changelog

- v1.1.0: Initial release of the mod. - v1.1.0: Add `targetOnly` configuration option to only disable/enable PvP when the target player is holding the `pvpDisableItem`.

ADS