minecraft_如何在Minecraft中禁用玩家对玩家(PVP)的伤害

minecraft

minecraft

If you’re tired of accidentally killing your buddy while fighting enemies in close quarters, or your kids are screaming because one of them 8-bit-murdered the other again, this is the tutorial for you. Read on as we show you how to disable player vs. player damage in Minecraft once and for all.

如果您厌倦了在近距离与敌人战斗时不小心杀死好友的烦恼,或者您的孩子因为其中一个又一次被8位谋杀了另一个而大喊大叫,那么本教程适合您。 请继续阅读,因为我们向您展示了如何一劳永逸地在Minecraft中禁用玩家对玩家的伤害。

为什么您要这样做 (Why You Would Want To Do This)

If fighting your friends in Lord-of-the-Flies-style island combat is the whole reason you enjoy playing Minecraft, than this certainly isn’t the tutorial for you. If, however, you’re one of the many people who are annoyed by how easy it is to slash your buddies with your sword instead of the zombies that are attacking your base, you’ll find this useful.

如果您喜欢在“苍蝇之王”式的岛屿战斗中与朋友打架是您喜欢玩Minecraft的全部原因,那么这当然不是您的教程。 但是,如果您是用剑轻击好友而不是攻击基地的僵尸那么容易的人之一,那么您会发现这很有用。

Further, if you’re one of the many parents who are sick of the drama when one of your kids accidentally (or purposely) kills another one of your kids during a rowdy Minecraft adventure, this is definitely the tutorial for you. (If you’re one of those parents, by the way, and you want to learn more about the game your kids are obsessed with, we’ve got you covered.)

此外,如果您是一个厌倦了戏剧的父母之一,而您的一个孩子在吵闹的《我的世界》冒险中意外(或故意)杀死了另一个孩子,那么这绝对是您的指南。 (顺便说一下,(如果您是其中的父母之一,并且您想了解有关您孩子迷恋的游戏的更多信息, 我们将为您提供帮助 。)

Let’s put an end to friendly fire and help keep the peace in both your block worlds and your homes by turning off PVP damage in Minecraft. We’re going to look at two techniques for disabling PVP. The first is a simple toggle that has been available to people running Minecraft servers for ages; if you’re running a Minecraft server at home we suggest you use the first method. The second is for players who don’t run a local server but instead use the “open to LAN” feature to share their game with people on their local network.

让我们结束友好之火,并通过关闭Minecraft中的PVP伤害来帮助维持您的方块世界和房屋的和平。 我们将研究两种禁用PVP的技术。 第一个是一个简单的切换开关,该开关已经可供运行Minecraft服务器的人们使用了很长时间。 如果您在家中运行Minecraft服务器,建议您使用第一种方法。 第二种是针对不运行本地服务器而是使用“向局域网开放”功能与本地网络上的人员共享游戏的玩家。

Either way, when you’re done, you’ll no longer need to worry about accidentally hacking up your friends or your kids fighting over PVP damage.

无论哪种方式,当您完成操作时,您都不再需要担心会意外地破坏您的朋友或您的孩子以抗衡PVP损害。

如何在服务器上禁用PVP损坏 (How to Disable PVP Damage on a Server)

If you haven’t jumped into the world of running your own Minecraft server, and instead share your game with friends by opening your Minecraft game to the LAN, this section of the tutorial is for you.

如果您还没有开始运行自己的Minecraft服务器,而是通过在LAN上打开Minecraft游戏与朋友分享游戏,那么本部分将适合您。

Despite the fact that fans have been clamoring for a simple way to turn of PVP in a local LAN game for years, there is no simple toggle in the settings menu (like there is for, say, changing the game difficulty level). Nonetheless, there is a really clever way to hijack a feature in the game you’re likely not even using to accomplish exactly what you want: disabling PVP. This trick is a little more involved than the simple “pvp=false” toggle available to server users, but we think you’ll appreciate how clever it is.

尽管多年来粉丝一直在呼吁一种在本地LAN游戏中转换PVP的简单方法,但设置菜单中并没有简单的切换方法(例如,可以更改游戏难度等级)。 但是,有一种非常聪明的方法可以劫持游戏中您甚至可能根本不想要完成的功能:禁用PVP。 该技巧比服务器用户可以使用的简单“ pvp = false”切换要复杂得多,但是我们认为您会欣赏它的巧妙之处。

For years Minecraft has had a “scoreboard” feature built in. This function is used almost entirely by minigame makers and it’s quite possible you’ve been playing Minecraft since the beginning without ever seeing it. This scoreboard feature has two functions built in that we can use in order to turn PVP damage off in our game: the team flag and the friendly fire flag. By grouping all the players on our local game into a single team and then turning the friendly fire flag to off, we create a game-wide team where no team member can accidentally hurt another team member.

多年来,《我的世界》内置了“ 记分板 ”功能。迷你游戏制造商几乎完全使用了此功能,很可能您从一开始就玩《我的世界》而从未见过。 该计分板功能具有内置的两个功能,可用来关闭游戏中的PVP伤害:团队标志和友军射击标志。 通过将本地游戏中的所有玩家归为一个团队,然后关闭友好的火线标志,我们创建了一个游戏范围内的团队,其中没有任何团队成员会意外伤害到另一个团队成员。

Start up your LAN game and press “T” to open up the in-game console. Here are the exact commands you need to use, paired with an explanation of what you’re accomplishing with them. Any text in brackets is a variable you should change to fit your situation.

启动您的LAN游戏,然后按“ T”打开游戏中的控制台。 这是您需要使用的确切命令,并附有您要完成的命令的说明。 方括号中的任何文本都是变量,应根据情况进行更改。

First, run:

第一次运行:

/scoreboard teams add [teamname]

This command creates a team. The name of the team is irrelevant for our purposes (but it’s name must be 16 characters or less). If you’re at loss for a good team name “minecraft” fits the bill nicely.

此命令创建一个团队。 团队的名称与我们的目的无关(但名称不得超过16个字符)。 如果您因一个好的团队名称而茫然不知所措,那么“ minecraft”就非常合适。

After creating your team, add yourself to the team by entering the below command, replacing [teamname] with the team you created and [player] with your Minecraft username.:

创建团队后,通过输入以下命令将您自己添加到团队中,将[teamname]替换为您创建的团队,并将[player]替换为您的Minecraft用户名。:

/scoreboard teams join [teamname] [player]

Repeat this process for all the other players. The players do not need to be online when you use this command, but you do need to know their usernames.

对其他所有玩家重复此过程。 当您使用此命令时,玩家无需在线,但是您需要知道他们的用户名。

Lastly, run:

最后,运行:

/scoreboard teams option [teamname] friendlyfire false

This final command toggles the setting for the team so that friendly fire is not enabled. At this point no members of the team can accidentally hit other members of the team and deal PVP damage.

此最后命令切换团队的设置,以便不启用友好射击。 此时,团队中的任何成员都不能意外击中团队中的其他成员并造成PVP伤害。

You will need to use the join command to add each new player that joins your local game, or else the player that is not on the collective team will not be immune to PVP damage (and will still be able to deal PVP damage).

您将需要使用join命令添加每个加入本地游戏的新玩家,否则不在集体团队中的玩家将无法免受PVP伤害(并且仍然能够造成PVP伤害)。

While this method has a few more steps than the simple “pvp=false” toggle we saw in the previous server-centered section, it does have one advantage: you can turn the PVP setting off and on without restarting the server/game. If you and your friends decide that a little friendly brawl is in order, you can easily flip the “friendlyfire” flag back to “true”, enjoy some PVP, and then turn it back to “false”.

尽管此方法比在上一个以服务器为中心的部分中看到的简单的“ pvp = false”切换步骤多了一些步骤,但它确实具有一个优点:您可以在不重新启动服务器/游戏的情况下关闭和打开PVP设置。 如果您和您的朋友决定进行一次友好的吵架,您可以轻松地将“ friendlyfire”标志重新设置为“ true”,享受一些PVP,然后再将其重新设置为“ false”。



With a little tweak, all can be well in your Minecraft universe: no more accidentally killing your friend while you’re fighting the Ender Dragon and no more listening to your kids scream at each other when one of them takes a pixelated ax to the dome and loses all their experience levels.

稍作调整,一切都可以在您的Minecraft宇宙中顺利进行:在与Ender Dragon战斗时不会再无意中杀死您的朋友,也不会再有一个孩子将像素像素化的斧头放到圆顶上时听到您的孩子互相尖叫并失去了所有的经验水平。

翻译自: https://www.howtogeek.com/258805/how-to-disable-player-vs.-player-pvp-damage-in-minecraft/

minecraft

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值