请选择 进入手机版 | 继续访问电脑版
楼主: Msure

[命令方块] 签到系统【连续签到天数/未签到天数显示、自动重置校准时间、连续签到奖励】

  [复制链接]

4

主题

18

帖子

9

积分

Lv.1 新手木匠

UID
18247
小麦
0
金锭
43
下界之星
0
发表于 2018-9-10 19:42:19 来自手机 | 显示全部楼层
真的可以用吗

0

主题

6

帖子

2

积分

Lv.1 新手木匠

UID
5738213
小麦
0
金锭
4
下界之星
0
发表于 2018-9-10 19:46:09 来自手机 | 显示全部楼层
123

0

主题

1

帖子

0

积分

Lv.1 新手木匠

UID
5344987
小麦
0
金锭
15
下界之星
0
发表于 2018-9-10 19:53:45 来自手机 | 显示全部楼层
...

0

主题

5

帖子

1

积分

Lv.1 新手木匠

UID
5697575
小麦
0
金锭
3
下界之星
0
发表于 2018-9-13 17:39:12 | 显示全部楼层
6666666

15

主题

214

帖子

70

积分

Lv.3 矿物能手

UID
5736389
小麦
1
金锭
147
下界之星
0
发表于 2018-9-15 10:09:49 | 显示全部楼层
rcb:/scoreboard players enable @a click
/give @a[score_click_min=1,score_sign=0] diamond 1 0
/execute @a[score_click_min=1,score_sign=0] ~ ~ ~ scoreboard players operation @p day1 = @p day
/execute @a[score_click_min=1,score_sign=0] ~ ~ ~ scoreboard players operation @p day1 -= @p day2
/scoreboard players set @a[score_click_min=1,score_sign=0,score_day1_min=2] day3 0
/scoreboard players add @a[score_click_min=1,score_sign=0] day3 1
/scoreboard players remove @a[score_click_min=1,score_sign=0] day1 1
/execute @a[score_day3=1,score_click_min=1,score_sign=0] ~ ~ ~ tellraw @p {"text":"","extra":[{"text":"签到成功!您之前有 ","color":"gold","bold":true},{"score":{"name":"@p","objective":"day1"},"color":"red","bold":true},{"text":" 天未签到。","color":"gold","bold":true}]}
/execute @a[score_day3_min=2,score_click_min=1,score_sign=0] ~ ~ ~ tellraw @p {"text":"","extra":[{"text":"签到成功!您已经连续签到 ","color":"gold","bold":true},{"score":{"name":"@p","objective":"day3"},"color":"green","bold":true},{"text":" 天。","color":"gold","bold":true}]}
/execute @a[score_click_min=1,score_sign_min=1] ~ ~ ~ tellraw @p {"text":"","extra":[{"text":"今天已经签过到了!当前连续签到天数: ","color":"red","bold":true},{"score":{"name":"@p","objective":"day3"},"color":"green","bold":true},{"text":" 天。","color":"red","bold":true}]}
/give @a[score_click_min=1,score_day3_min=7,score_day3=7,score_sign=0] diamond_block 1 0
/give @a[score_click_min=1,score_day3_min=15,score_day3=15,score_sign=0] 15天签到奖励,可在此继续插入命令方块自定义连续签到奖励
/execute @a[score_click_min=1,score_sign=0] ~ ~ ~ scoreboard players operation @p day2 = @p day
/scoreboard players set @a[score_click_min=1,score_sign=0] sign 1
/scoreboard players set @a[score_click_min=1] click 0
/gamemode
/testforblock ~ ~-1 ~ chain_command_block 1 {LastOutput:"{"extra":[{"color":"red","translate":"commands.generic.usage","with":[{"translate":"commands.gamemode.usage"}]}],"text":"[23:59:58] "}"}
cond:/scoreboard players set * sign 0
cond:/setblock ~ ~4 ~ minecraft:redstone_block
/testforblock ~ ~-4 ~ chain_command_block 1 {LastOutput:"{"extra":[{"color":"red","translate":"commands.generic.usage","with":[{"translate":"commands.gamemode.usage"}]}],"text":"[29:59:59] "}"}
cond:/setblock ~ ~2 ~ minecraft:air
icb:/scoreboard players add * day 1
复制代码
/summon falling_block ~ ~1.5 ~ {Time:1,Block:"minecraft:redstone_block",Motion:[0d,-1d,0d],Passengers:[{id:falling_block,Time:1,Block:"minecraft:activator_rail",Passengers:[{id:commandblock_minecart,Command:"blockdata ~ ~-2 ~ {auto:0b,Command:""}"},{id:commandblock_minecart,Command:"/scoreboard objectives add day dummy"},{id:commandblock_minecart,Command:"/scoreboard objectives add day1 dummy"},{id:commandblock_minecart,Command:"/scoreboard objectives add day2 dummy"},{id:commandblock_minecart,Command:"/scoreboard objectives add day3 dummy"},{id:commandblock_minecart,Command:"/scoreboard objectives add sign dummy"},{id:commandblock_minecart,Command:"/scoreboard objectives add click trigger"},{id:commandblock_minecart,Command:"setblock ~2 ~3 ~0 chain_command_block 1 replace {Command:"/scoreboard players tag @a[tag=!sign] add sign",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~2 ~0 chain_command_block 1 replace {Command:"/scoreboard players add @a[tag=!sign] sign 0",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~1 ~0 chain_command_block 1 replace {Command:"/scoreboard players add @a[tag=!sign] day3 0",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~0 ~0 chain_command_block 1 replace {Command:"/scoreboard players add @a[tag=!sign] day2 0",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~-1 ~0 chain_command_block 1 replace {Command:"/scoreboard players add @a[tag=!sign] day1 0",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~-2 ~0 repeating_command_block 1 replace {Command:"/scoreboard players set @a[tag=!sign] day 1",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~ ~1 ~ command_block 0 replace {auto:1b,Command:"fill ~ ~ ~ ~ ~-2 ~ air"}"},{id:commandblock_minecart,Command:"kill @e[type=commandblock_minecart,r=1]"}]}]}

1

主题

5

帖子

2

积分

Lv.1 新手木匠

UID
2754969
小麦
0
金锭
15
下界之星
0
发表于 2018-9-15 16:02:43 来自手机 | 显示全部楼层
ooc

2

主题

11

帖子

6

积分

Lv.1 新手木匠

UID
2825022
小麦
1
金锭
13
下界之星
0
发表于 2018-9-18 23:14:51 | 显示全部楼层
1111

0

主题

35

帖子

9

积分

Lv.1 新手木匠

UID
5541621
小麦
0
金锭
30
下界之星
0
发表于 2018-9-20 18:42:38 | 显示全部楼层
233

0

主题

60

帖子

17

积分

Lv.1 新手木匠

UID
3101595
小麦
1
金锭
18
下界之星
0
发表于 2018-9-27 19:50:58 | 显示全部楼层
233

2

主题

14

帖子

8

积分

Lv.1 新手木匠

UID
1993898
小麦
2
金锭
116
下界之星
0
发表于 2018-9-27 20:00:57 来自手机 | 显示全部楼层
666

35

主题

465

帖子

157

积分

Lv.4 怪物猎人

UID
5188282
小麦
2
金锭
616
下界之星
0
发表于 2018-9-27 20:15:39 | 显示全部楼层
这个现实时间读取真的牛逼。。。
不务正业的熊孩子

1

主题

5

帖子

2

积分

Lv.1 新手木匠

UID
5772615
小麦
0
金锭
12
下界之星
0
发表于 2018-9-28 06:54:26 | 显示全部楼层
赞一个

1

主题

16

帖子

9

积分

Lv.1 新手木匠

UID
97712
小麦
4
金锭
9
下界之星
0
发表于 2018-9-28 11:49:15 | 显示全部楼层
O O C? 哈哈 我看看

1

主题

15

帖子

6

积分

Lv.1 新手木匠

UID
5654164
小麦
1
金锭
103
下界之星
0
发表于 2018-9-28 11:49:53 来自手机 | 显示全部楼层
111

0

主题

6

帖子

2

积分

Lv.1 新手木匠

UID
2529577
小麦
0
金锭
0
下界之星
0
发表于 2018-9-28 22:05:14
666
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

返回顶部