「签到系统」指令

360影视 国产动漫 2025-03-09 17:22 2

摘要:从下到上,第1个设为脉冲 无条件 红石控制,其余全部设为连锁 无条件 保持开启

指令解析请前往视频观看,建议将指令看懂再进行复制

1.前置指令

/give @s command_block

/gamerule commandblockoutput false

/scoreboard objectives add 签到 dummy

/scoreboard objectives add 签到时间 dummy

以上均可在聊天栏输入

2.然后,搭建一个用来签到的建筑

3.本体指令

在按钮后面放置5个命令方块

从下到上,第1个设为脉冲 无条件 红石控制,其余全部设为连锁 无条件 保持开启

execute as @p if score @s 签到 matches 1.. run title @s title §e§l你已经§c签到过了

execute as @p if score @s 签到 matches 1.. run titleraw @s subtitle {"rawtext":[{"text":"§d§l还需要§e"},{"score":{"name":"签到机器人","objective":"签到时间"}},{"text":"§d秒才能签到"}]}

execute as @p if score @s 签到 matches ..0 run 奖品指令

例:give @s 物品ID 数量

scoreboard players add @s 计分板名称 数量

execute as @p if score @s 签到 matches ..0 run title @s title §a§l签到§d成功

execute as @p if score @s 签到 matches ..0 run scoreboard players set @s 签到 1

4.后台指令

建议放置于指令区,方便管理

(1)指令链1---签到刷新

从上到下,第1个设为循环 无条件 保持开启,其余全部设为连锁 有条件 保持开启

execute if score 签到机器人 签到时间 matches ..0 run scoreboard objectives remove 签到

scoreboard objectives add 签到 dummy

title @a title §b▎ §e§l签到刷新了§r§b ▎

title @a subtitle §e您可到§c主城§e进行签到

scoreboard players set 签到机器人 签到时间 下次签到时间(多少秒就是多少)

(2)签到扣除时间计算及防出bug设置

从上到下,

第1个设为循环 无条件 保持开启(延迟20)

第2个设为连锁 无条件 保持开启

scoreboard players remove 签到 签到秒 1

/scoreboard players add @a 签到 0

来源:王者荣耀御君(李白)

相关推荐