1.12.2如何通过原版指令关闭多人游戏中玩家之间的友伤
把server.properties里的pvp设成false就好,不过指令改不了这个,只能在开服之前改
- /scoreboard teams add [队伍名称]
- /scoreboard teams join [队伍名称] @a
- /scoreboard teams option [队伍名称] friendlyfire false
基本上沒有直接關閉全體PVP的指令,但可透過記分板的隊伍來實現
創建隊伍:/scoreboard teams add <隊伍名稱> [顯示名稱]
ex:/scoreboard teams add team1 隊伍1
移除隊伍:/scoreboard teams remove <隊伍名稱>
ex:/scoreboard teams add team1
加入隊伍:/scoreboard teams join <隊伍名稱> [玩家]
ex:/scoreboard teams join team1 aaaa
(如果玩家欄位被省略
那麼就是代表輸入指令的玩家加入隊伍)
離開隊伍:/scoreboard teams leave <隊伍名稱> [玩家]
ex:/scoreboard teams leave team1 aaaa
關閉隊伍內PVP:/scoreboard teams option <隊伍名稱> friendlyfire false
ex:/scoreboard teams option team1 friendlyfire false
以上參考自巴哈姆特小坤kyob1010的小屋
https://home.gamer.com.tw/creationDetail.php?sn=2432829
創建隊伍:/scoreboard teams add <隊伍名稱> [顯示名稱]
ex:/scoreboard teams add team1 隊伍1
移除隊伍:/scoreboard teams remove <隊伍名稱>
ex:/scoreboard teams add team1
加入隊伍:/scoreboard teams join <隊伍名稱> [玩家]
ex:/scoreboard teams join team1 aaaa
(如果玩家欄位被省略
那麼就是代表輸入指令的玩家加入隊伍)
離開隊伍:/scoreboard teams leave <隊伍名稱> [玩家]
ex:/scoreboard teams leave team1 aaaa
關閉隊伍內PVP:/scoreboard teams option <隊伍名稱> friendlyfire false
ex:/scoreboard teams option team1 friendlyfire false
以上參考自巴哈姆特小坤kyob1010的小屋
https://home.gamer.com.tw/creationDetail.php?sn=2432829
/gamerule pvp 试试我记得可以规则里关的