*聊天栏输入#货币,现在小编就来说说关于我的世界服务器规划?下面内容希望能帮助到你,我们来一起看看吧!

我的世界服务器规划(我的世界服务器建设计划02:在线时间统计及货币系统)

我的世界服务器规划

*聊天栏输入

#货币

/scoreboard objectives add 金币 dummy §l§e金币

/scoreboard objectives add 银币 dummy §l§f银币

/scoreboard objectives add 铜币 dummy §l§g铜币

#时间

/scoreboard objectives add hour dummy §l§a时

/scoreboard objectives add minute dummy §l§b分

/scoreboard objectives add second dummy §l§c秒

¥dummy后可写可不写,dummy前可改

*命令方块输入

#添加时间

@秒

重保 20

execute @a ~ ~ ~ scoreboard players add @s 秒 1

¥20为20延迟,重保为重复,保持开启

#时间转换及给予货币

@秒变分

重保

execute @a[scores={秒=60..}] ~ ~ ~ tag @s add 60schange1min

连保

execute @a[tag=60schange1min] ~ ~ ~ scoreboard players remove @s 秒 60

execute @a[tag=60schange1min] ~ ~ ~ scoreboard players add @s 分 1

execute @a[tag=60schange1min] ~ ~ ~ scoreboard players add @s 铜币 execute @a[tag=60schange1min] ~ ~ ~ scoreboard players add @s 铜币 4

execute @a[tag=60schange1min] ~ ~ ~ tag @s remove 60schange1min

¥连保为连续,保持开启

@分变时

重保

execute @a[scores={分=60..}] ~ ~ ~ tag @s add 60minchange1h

连保

execute @a[tag=60minchange1h] ~ ~ ~ scoreboard players remove @s 分 60

execute @a[tag=60minchange1h] ~ ~ ~ scoreboard players add @s 时 1

execute @a[tag=60minchange1h] ~ ~ ~ scoreboard players add @s 银币 4

execute @a[tag=60minchange1h] ~ ~ ~ scoreboard players add @s 金币 3

execute @a[tag=60minchange1h] ~ ~ ~ tag @s remove 60minchange1h

#货币转换

@铜变银

重保

execute @a[scores={铜币=64}] ~ ~ ~ tag @s add ctgy

连保

execute @a[scores={铜币=64},tag=ctgy] ~ ~ ~ scoreboard players add @s 银币 1

execute @a[scores={铜币=64},tag=ctgy] ~ ~ ~ scoreboard players remove @s 铜币 64

execute @a[tag=ctgy] ~ ~ ~ tag @s remove ctgy

¥连保有为连锁,保持开启,有条件

@银变金

重保

execute @a[scores={银币=64}] ~ ~ ~ tag @s add cygj

连保

execute @a[scores={银币=64},tag=cygj] ~ ~ ~ scoreboard players add 金币 1

execute @a[scores={银币=64},tag=cygj] ~ ~ ~ scoreboard players remove 银币 64

execute @a[tag=cygj] ~ ~ ~ tag @s remove cygj

#信息显示

titleraw @a actionbar {"rawtext":[{"text":"玩家:§b"},{"selector":"*"},{"text":"\n§r在线时间: §a"},{"score":{"name":"*","objective":"时"}},{"text":"§a小时"},{"score":{"name":"*","objective":"分"}},{"text":"§a分钟"},{"score":{"name":"*","objective":"秒"}},{"text":"§a秒"},{"text":"\n§r钱财: §e"},{"score":{"name":"*","objective":"金币"}},{"text":"§e金币"},{"score":{"name":"*","objective":"银币"}},{"text":"§e银币"},{"score":{"name":"*","objective":"铜币"}},{"text":"§e铜币"}]}

¥此为JSON

请搭配视频食用

,