本帖最后由 yueyueliang 于 2023-1-20 15:19 编辑
分享分享我用了一早上搞得玩家互传ooc
有的地方不好的可以提出,毕竟我只学了3个月左右的指令,我认为比较自豪的是我全程基本没看教程
珍贵的手稿
(这可是我上课偷偷写的
),很多东西实际做的时候都改了
指令部分:(我不会折叠所以就将就着看吧
)
主体部分:(全部为保持开启)
scoreboard players add @e[tag=冷却] 冷却 0
scoreboard players enable @a 同意
scoreboard players enable @a 拒绝
execute @e[tag=冷却,score_冷却=0] ~ ~ ~ /scoreboard players enable @a 传送
/execute @a ~ ~ ~ /scoreboard players operation @s uuid备 = @s uuid
scoreboard players tag @a[score_传送_min=1,tag=!传送] add 传送
execute @a[tag=传送,score_提示=0] ~ ~ ~ /tellraw @a [{"selector":"@a[tag=传送]","color":"red","bold":true,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"正在使用传送系统,冷却20秒","color":"gold","bold":true,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false}]
execute @a[tag=传送] ~ ~ ~ /scoreboard players add @e[tag=冷却] 冷却 1
execute @a[tag=!传送,tag=!被传送] ~ ~ ~ /scoreboard players operation @s uuid备 -= @a[tag=传送] 传送
execute @a[tag=!传送,score_uuid备=0,score_uuid备_min=0] ~ ~ ~ /scoreboard players tag @s add 被传送
execute @a[tag=被传送] ~ ~ ~ /scoreboard players reset @a 传送
/tellraw @a[tag=被传送,score_提示=0] [{"text":"<传送系统提示!>================================","color":"gold","bold":true,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"selector":"@a[tag=传送]","color":"red","bold":true,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"向你发来了传送请求!","color":"yellow","bold":true,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"【同意!】","color":"green","bold":true,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false,"clickEvent":{"action":"run_command","value":"/trigger 同意 set 1"}},{"text":"【拒绝!】","color":"dark_red","bold":true,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false,"clickEvent":{"action":"run_command","value":"/trigger 拒绝 set 1"}}]
scoreboard players add @a[score_提示=0] 提示 1
execute @a[tag=被传送,score_同意_min=1] ~ ~ ~ /tp @s @a[tag=传送]
execute @a[tag=被传送,score_同意_min=1] ~ ~ ~ /tellraw @a[tag=传送] [{"text":"你的传送请求被同意了!","color":"gold","bold":true,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false}]
tellraw @a[tag=被传送,score_同意_min=1] [{"text":"你同意了","color":"gold","bold":true,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"selector":"@a[tag=传送]","color":"red","bold":true,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"的传送请求!","color":"gold","bold":true,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false}]
execute @a[tag=被传送,score_同意_min=1] ~ ~ ~ /scoreboard players set @e[tag=冷却] 冷却 4000
execute @a[tag=被传送,score_拒绝_min=1] ~ ~ ~ /tellraw @a[tag=传送] [{"text":"你的传送请求被拒绝了!!!","color":"dark_red","bold":true,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false}]
/tellraw @a[tag=被传送,score_拒绝_min=1] [{"text":"你拒绝了","color":"dark_red","bold":true,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"selector":"@a[tag=传送]","color":"gold","bold":true,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"的传送请求!!","color":"dark_red","bold":true,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false}]
execute @a[score_拒绝_min=1,tag=被传送] ~ ~ ~ /scoreboard players set @e[tag=冷却] 冷却 4000
execute @e[tag=冷却,score_冷却_min=4000] ~ ~ ~ /scoreboard players tag @a remove 传送
{:chain_cb_side_2:} execute @e[tag=冷却,score_冷却_min=4000] ~ ~ ~ /scoreboard players tag @a remove 被传送
{:chain_cb_side_2:} execute @e[tag=冷却,score_冷却_min=4000] ~ ~ ~ /execute @a ~ ~ ~ /scoreboard players operation @s uuid备 = @s uuid
{:chain_cb_side_2:} execute @e[tag=冷却,score_冷却_min=4000] ~ ~ ~ /scoreboard players reset @a 同意
{:chain_cb_side_2:} execute @e[tag=冷却,score_冷却_min=4000] ~ ~ ~ /scoreboard players reset @a 拒绝
{:chain_cb_side_2:} execute @e[tag=冷却,score_冷却=0] ~ ~ ~ /scoreboard players set @a 提示 0
{:chain_cb_side_2:} execute @e[tag=冷却,score_冷却_min=4000] ~ ~ ~ /tellraw @a [{"text":"<传送系统> 传送系统冷却完毕!!","color":"gold","bold":true,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false}]
{:chain_cb_side_2:} execute @e[tag=冷却,score_冷却_min=1] ~ ~ ~ /scoreboard players set @a 提示 1
{:chain_cb_side_2:} execute @e[tag=冷却,score_冷却_min=4000] ~ ~ ~ /scoreboard players set @e[tag=冷却,score_冷却_min=4000] 冷却 0
{:chain_cb_side_2:} scoreboard players set @a 同意 0
{:chain_cb_side_2:} scoreboard players set @a 拒绝 0
scoreboard players add @e[tag=冷却] 冷却 0
ooc一键销毁部分(除了脉冲命令方块,其他都是保持开启)
/tellraw @a [{"text":"玩家互传ooc已销毁!!!","color":"dark_red","bold":true,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false}]
{:chain_cb_side_2:} scoreboard objectives remove uuid备
{:chain_cb_side_2:} scoreboard objectives remove 传送
{:chain_cb_side_2:} scoreboard objectives remove 冷却
{:chain_cb_side_2:} scoreboard objectives remove 同意
{:chain_cb_side_2:} scoreboard objectives remove 拒绝
{:chain_cb_side_2:} scoreboard objectives remove 提示
{:chain_cb_side_2:} kill @e[tag=冷却]
{:chain_cb_side_2:} fill ~ ~-1 ~ ~ ~41 ~ air
需求部分:
scoreboard objectives add 同意 trigger
{:chain_cb_side_2:} scoreboard objectives add 拒绝 trigger
{:chain_cb_side_2:} scoreboard objectives add 传送 trigger
{:chain_cb_side_2: }scoreboard objectives add uuid备 dummy
{:chain_cb_side_2:} scoreboard objectives add 冷却 dummy
{:chain_cb_side_2:} scoreboard objectives add 提示 dummy
{:chain_cb_side_2:} summon minecraft:armor_stand ~ ~ ~ {Tags:["冷却"]}
因为我太懒了,所以聊天消息部分用指令生成器做的,所以会很多
(生成器真的太标准了
)
顺便说说我一个懒癌晚期的人为啥要做这个
,那一天,我在服务器无知的说无权限tp太简单了
,某个人来找茬(是谁我就不说了(@飞翔的亀Tt )
),说,那你会做文件互传喽(具体我忘了,反正就是找茬,还用激将法),我很痛苦,所以我励志要打他的脸,然后我就做出来了
(我很早就想过做了,但是懒,不过这次要不是因为某个人(@飞翔的亀Tt ),我早就摆烂了
)
额,怎么说那,做出来之后发现没多难,只要理清思路就可以(就是麻烦
)
感觉成闲聊了(指令区的帖子更新的都好慢呀)(那啥 {:chain_cb_side_2:} 这个不是指令,不知道为啥命令方块图标加载不出来就成这样了
)
ooc:
注:uuid分配ooc是玩家互传前置(别问我为啥要分开,问就是懒
)
OOC:
此为前置:
uuid分配ooc.txt
(4.39 KB, 下载次数: 22)
主体:
[1.12.2]玩家互传2.0盒子版.txt
(27.06 KB, 下载次数: 28)
玩家互传-穷举.rar
(4.24 KB, 下载次数: 7)
(此为函数最大支持40人穷举,操作更加方便,优化也高于ooc待机时只有27命令)
分享分享我用了一早上搞得玩家互传ooc

有的地方不好的可以提出,毕竟我只学了3个月左右的指令,我认为比较自豪的是我全程基本没看教程

珍贵的手稿


指令部分:(我不会折叠所以就将就着看吧

主体部分:(全部为保持开启)





















{:chain_cb_side_2:} execute @e[tag=冷却,score_冷却_min=4000] ~ ~ ~ /scoreboard players tag @a remove 被传送
{:chain_cb_side_2:} execute @e[tag=冷却,score_冷却_min=4000] ~ ~ ~ /execute @a ~ ~ ~ /scoreboard players operation @s uuid备 = @s uuid
{:chain_cb_side_2:} execute @e[tag=冷却,score_冷却_min=4000] ~ ~ ~ /scoreboard players reset @a 同意
{:chain_cb_side_2:} execute @e[tag=冷却,score_冷却_min=4000] ~ ~ ~ /scoreboard players reset @a 拒绝
{:chain_cb_side_2:} execute @e[tag=冷却,score_冷却=0] ~ ~ ~ /scoreboard players set @a 提示 0
{:chain_cb_side_2:} execute @e[tag=冷却,score_冷却_min=4000] ~ ~ ~ /tellraw @a [{"text":"<传送系统> 传送系统冷却完毕!!","color":"gold","bold":true,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false}]
{:chain_cb_side_2:} execute @e[tag=冷却,score_冷却_min=1] ~ ~ ~ /scoreboard players set @a 提示 1
{:chain_cb_side_2:} execute @e[tag=冷却,score_冷却_min=4000] ~ ~ ~ /scoreboard players set @e[tag=冷却,score_冷却_min=4000] 冷却 0
{:chain_cb_side_2:} scoreboard players set @a 同意 0
{:chain_cb_side_2:} scoreboard players set @a 拒绝 0

ooc一键销毁部分(除了脉冲命令方块,其他都是保持开启)

{:chain_cb_side_2:} scoreboard objectives remove uuid备
{:chain_cb_side_2:} scoreboard objectives remove 传送
{:chain_cb_side_2:} scoreboard objectives remove 冷却
{:chain_cb_side_2:} scoreboard objectives remove 同意
{:chain_cb_side_2:} scoreboard objectives remove 拒绝
{:chain_cb_side_2:} scoreboard objectives remove 提示
{:chain_cb_side_2:} kill @e[tag=冷却]
{:chain_cb_side_2:} fill ~ ~-1 ~ ~ ~41 ~ air
需求部分:

{:chain_cb_side_2:} scoreboard objectives add 拒绝 trigger
{:chain_cb_side_2:} scoreboard objectives add 传送 trigger
{:chain_cb_side_2: }scoreboard objectives add uuid备 dummy
{:chain_cb_side_2:} scoreboard objectives add 冷却 dummy
{:chain_cb_side_2:} scoreboard objectives add 提示 dummy
{:chain_cb_side_2:} summon minecraft:armor_stand ~ ~ ~ {Tags:["冷却"]}
因为我太懒了,所以聊天消息部分用指令生成器做的,所以会很多


顺便说说我一个懒癌晚期的人为啥要做这个





额,怎么说那,做出来之后发现没多难,只要理清思路就可以(就是麻烦

感觉成闲聊了(指令区的帖子更新的都好慢呀)(那啥 {:chain_cb_side_2:} 这个不是指令,不知道为啥命令方块图标加载不出来就成这样了

ooc:
注:uuid分配ooc是玩家互传前置(别问我为啥要分开,问就是懒

OOC:
此为前置:

主体:


漂亮记在小本本
这个非常有用
活到小,学到小
感谢分享支持一波
学会了,Mcbbs有你更精彩~
楼主辛苦了整理这么多,但是我不知道我一个1.18能不能用
是谁我不说(@飞翔的亀)
欸~真有你的
欸~真有你的
ASGORE_DREAMER 发表于 2022-5-10 20:07
楼主辛苦了整理这么多,但是我不知道我一个1.18能不能用
1.18的格式不一样用不了,等我有空看看能不能搞个高版本的


好多啊。记不清啊~
66666666666666666666666666
牛皮呀66666666666
楼主的字太好看了,我直接学习的事倍功半awa
飞翔的亀Tt 发表于 2022-5-10 20:20
版本1.1.2
1.9-1.10勉强用,可能有bug
听我说谢谢你,因为有你温暖了四季
看了以后,我感觉更深刻了!学不懂的,别学了
本来点进来想看看咋用这些东西,看了以后感觉还是算了吧。。。。
可以可以
感谢楼主分享,帮大忙了~
这么多字俯看的脑壳痛 lz牛皮
我擦太牛逼了 学到了
这个未免也太酷炫了吧!!
支持支持支持支持支持支持支持
其实可以这样,先将分别命名的两个盔甲架(指令隐身且无敌),分别传送的对应计分板玩家(比如甲的计分板是1,乙的计分板是0),然后将甲、乙玩家分别传送到对应盔甲架,同时甲计分板变为0,乙计分板变为1。就可以实现互传(当然如果要加时间的话,就弄随机数)
小晨指令红石 发表于 2022-7-15 17:37
其实可以这样,先将分别命名的两个盔甲架(指令隐身且无敌),分别传送的对应计分板玩家(比如甲的计分板是 ...
额,搞不懂,我那帖子里的实际上早就废弃了,ooc里的和帖子里的完全不一样,我只是懒得改帖子内容
细说命令生成器~
收藏夹吃灰
可以可以 拿走咯
啥币 不想教就别教 放两个乱码的文件 给狗看了都摇头 艹
yuanyimin 发表于 2023-1-19 06:21
啥币 你看看你发的什么狗屁文件 打开了都是乱码
兄弟,讲话文明一点
我发的文件是没有问题的,我刚才还特意下载看来,打开乱码是你自己的问题,别人都没有这种情况

笔记本打开乱码你可以换个别的软件浏览,记得用utf-8编码看
好耶!!!
6666666666666真的好用
好像很实用啊
666666666666666666666
精彩,太精彩了
水评论水评论水评论
这个1.12.2 的ooc主要是帮助私服玩家互传更加方便,这样可以极大增加交易性
6666666666666666
谢谢楼主,楼主厉害
完成任务
完成任务
6666666666666666666
建议分颜色隔开,更醒目