我的世界租借服务器(我的世界技巧教程 租赁服务器玩家间传送功能),哪吒游戏网给大家带来详细的我的世界租借服务器(我的世界技巧教程 租赁服务器玩家间传送功能)介绍,大家可以阅读一下,希望这篇我的世界租借服务器(我的世界技巧教程 租赁服务器玩家间传送功能)可以给你带来参考价值。
导读大家好,下面是小编给大家分享的我的世界技巧教程 租赁服务器玩家间传送功能,希望能帮到大家!
【本文转自我的世界官方论坛,原作者:一剑光寒十九州】
萌新学MC不易,请大佬们多多指点。
第一步:要建立几个计分板,并设置计分板初始分数
1、/scoreboard objectives add jinbi dummy金币
/scoreboard players set @a jinbi 100
建立一个“金币”的计分板,并设置初始分数为100(分数可以自定义)
2、/scoreboard objectives add tp trigger传送
/scoreboard players set @a tp 0
建立一个“传送”的计分板,并设置初始值为0
3、/scoreboard objectives add xhtp trigger相互传送
/scoreboard players set @a xhtp 0
建立一个“相互传送”的计分板我的世界租借服务器,并设置初始值为0
第二步:建立传送书
以下是腐竹自己服务器的指令书,偷懒直接copy
。
跟今天有关的是其中传送邀请和传送申请指令。
/give @p minecraft:written_book 1 0 {title:"传送书",author:God,pages:[
"{text:" 铲屎官生活指南",color:blue,bold:true,extra:[
{text:"\n "},
{text:"\n "},
{text:"\n返回主城",color:dark_green,bold:true,clickEvent:{action:run_command,value:"/trigger tp set 2"}},
{text:"\n "},
{text:"\n生存模式",color:red,bold:true,clickEvent:{action:run_command,value:"/trigger tp set 1"}},
{text:" 随机传送",color:dark_purple,bold:true,clickEvent:{action:run_command,value:"/trigger tp set 3"}},
{text:"\n "},
{text:"\n传送邀请",color:dark_aqua,bold:true,clickEvent:{action:run_command,value:"/trigger tp set 99"}},
{text:"传送申请",color:green,bold:true,clickEvent:{action:run_command,value:"/trigger tp set 98"}},
{text:"\n "},
{text:"\n喵神博彩",color:light_purple,bold:true,clickEvent:{action:run_command,value:"/trigger tp set 4"}},
{text:"\n "},
{text:"\n "},
{text:"\n其他设施陆续更新中。。",color:gray,bold:true}
]}"
]}
第三步:命令方块
最开始需要设置以下两个单独的循环开启的命令方块
1、/scoreboard players enable @a tp
允许玩家执行tp触发器
2、/scoreboard players enable @a xhtp
允许玩家执行xhtp触发器
1、传送邀请
方块序列1:
/testfor @p[score_tp_min=99,score_tp=99,score_jinbi_min=100,c=1]
检测一个tp分数为99、且金币大于等于100的玩家【循环 开启】
/tellraw @a {"text":"","extra":[
{"text":"【系统公告】","color":"red"},
{"text":"n ","color":"red"},{"selector":"@p[score_tp=99,score_tp_min=99,c=1]"},{"text":"发起了传送邀请","color":"dark_aqua"},
{"text":"n 传送费用","color":"dark_aqua","bold":"true"},{"text":"100金币","color":"yellow","bold":"true"},
{"text":"n 想前往的玩家请点击以下链接","color":"dark_aqua","hold":"true"},
{"text":"n 接受传送邀请","color":"green","underlined":"true","clickEvent":{"action":"run_command","value":"/trigger xhtp set 1"}}]}
命令执行后如上图 【连锁 条件 开启】
/scoreboard players remove @p[score_tp_min=99,score_tp=99,c=1] jinbi 100
扣除发起邀请玩家100金币【连锁 条件 开启】
/scoreboard players set @p[score_tp=99,score_tp_min=99,c=1] xhtp 2
设置发起邀请的玩家xhtp分数设置为2【连锁 条件 开启】
/scoreboard players set @a tp 0
设置所有玩家tp分数初始化【连锁 条件 开启】
方块序列2:
testfor @p[score_xhtp=1,score_xhtp_min=1,score_jinbi_min=100,c=1]
检测xhtp分数为1,金币大于等于100的玩家 【循环 开启】
总结:以上内容就是针对我的世界租借服务器(我的世界技巧教程 租赁服务器玩家间传送功能)详细阐释,如果您觉得有更好的建议可以提供给哪吒游戏网小编,我的世界租借服务器(我的世界技巧教程 租赁服务器玩家间传送功能)部分内容转载自互联网,有帮助可以收藏一下。