跳到正文

No Nether Star PVP

作者:Drypted

一个 Minecraft Fabric 服务端模组,用于在手持物品(默认为下界之星)时禁用 PvP

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

NoNetherStarPVP Mod


Overview

The NoNetherStarPVP 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

  • Fabric 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:

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

Configurations for different scenarios

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

    • enablePvP: true
    • useInverseLogic: true
    • onlyTargetCheck: false
    • pvpDisableItemID: minecraft:nether_star

{
  "enablePvP": true,
  "useInverseLogic": true,
  "onlyTargetCheck": false,
  "pvpDisableItemID": "minecraft:nether_star"
}
  • Case 2: PvP is enabled for all players except the players holding the Nether Star. Player holding nether star can hit any player.
    • enablePvP: true
    • useInverseLogin: false
    • onlyTargetCheck: true
    • pvpDisableItemID: minecraft:nether_star

{
  "enablePvP": true,
  "useInverseLogic": false,
  "onlyTargetCheck": true,
  "pvpDisableItemID": "minecraft:nether_star"
}

Changelog

  • v1.0.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. Also rename

常见问题

No Nether Star PVP 支持哪些 Minecraft 版本?

No Nether Star PVP 支持 Minecraft Java 版 1.21,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

No Nether Star PVP 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

Drypted 的其他作品

查看全部 →