加载中...
简易签到系统

简易签到系统

前置

/scoreboard objectives add 签到 dummy

/scoreboard players set 签到奖励 签到 0

配置

阳光侦测器后接两个红石粉

(阳光侦测器用来检测游戏天是否天亮,两个红石粉用来过滤雨天)

1.普通无条件红石控制:tag @a remove 签到

2.连锁无条件:execute as @a run tellraw @s {"rawtext":[{"text":"§a "},{"selector":"@s"},{"text":" §e每日签到已刷新,您已经签到§r "},{"score":{"name":"@s","objective":"签到"}},{"text":" §e天了。"}]}

3.连锁有条件:execute as @a at @s run playsound random.orb @s ~ ~ ~ 100 1.5

4.连锁无条件:scoreboard players random 签到奖励 签到 10 30

主指令

钟接一个侦测器

(用于检测状态,也可以不用钟直接进行红石激活,用钟主要是用来增加互动)

1.普通无条件红石控制:tag @p[r=10] add 检测

2.连锁无条件:title @a[tag=签到,tag=检测] title §c签到失败

3.连锁有条件:title @a[tag=签到,tag=检测] subtitle §4不能重复签到

4.连锁有条件:execute as @a[tag=签到,tag=检测] at @s run playsound random.anvil_land @s ~ ~ ~ 100 1.5

5.连锁无条件:scoreboard players add @a[tag=!签到,tag=检测] 签到 1

6.连锁有条件:execute as @a[tag=!签到,tag=检测] run scoreboard players operation @s 金币 += 签到奖励 签到

(这里的金币可以改为你服务器里的经济计分板)

7.连锁有条件:title @a[tag=!签到,tag=检测] title §a签到成功

8.连锁有条件:execute as @a[tag=!签到,tag=检测] run titleraw @s subtitle {"rawtext":[{"text":"§e您已累计签到§6 "},{"score":{"name":"@s","objective":"签到"}},{"text":" §e天"}]}

9.连锁有条件:execute as @a[tag=!签到,tag=检测] at @s run playsound random.orb @s ~ ~ ~ 100 1.5

10.连锁有条件:execute as @a[tag=!签到,tag=检测] run tag @s add 签到

11.连锁无条件:tag @a remove 检测

使用

点击钟进行签到

CC BY-NC-SA 4.0 Deed | 署名-非商业性使用-相同方式共享
最后更新时间:2025-10-28 01:16:52