请选择 进入手机版 | 继续访问电脑版
查看: 229|回复: 0

[分享] 我的世界:数控转账指令 《2》

[复制链接]

53

主题

12

回帖

69

积分

Lv.3 矿物能手

UID
8961389
小麦
0
金锭
158
下界之星
0
发表于 2022-10-3 15:05:06 来自手机 | 显示全部楼层 |阅读模式 IP:浙江
三、转账

1.execute @a[scores={菜单=1..11},rx=-85] ~~~ scoreboard players operation @s 输入金额 *= 十 输入金额

2.execute @a[scores={菜单=1..9},rx=-85] ~~~ scoreboard players operation @s 输入金额 += @s 菜单

3.execute @a[scores={菜单=10},rx=-85] ~~~ scoreboard players reset @s 输入金额

4.execute @a[scores={菜单=11},rx=-85] ~~~ scoreboard players add @s 输入金额 0

5.execute @a[scores={菜单=1..11},rx=-85] ~~~ scoreboard players set @s 菜单 13

6.execute @a[scores={菜单=12,输入金额=1..},rx=-85] ~~~ scoreboard players set @s 菜单 15

7.execute @a[scores={菜单=16..20},rx=-88] ~~~ scoreboard players operation @s 输入金额 -= @s 金币

8.execute @a[scores={菜单=16..20,输入金额=1..},rx=-88] ~~~ title @s title §l§c金币不足!

9.execute @a[scores={菜单=16..20,输入金额=1..},rx=-88] ~~~ scoreboard players set @s 菜单 13

10.(连锁有条件保持开启)execute @a[scores={菜单=13,输入金额=1..},rx=-88] ~~~ scoreboard players reset @s 输入金额

11.execute @a[scores={菜单=16..20,输入金额=..0},rx=-88] ~~~ scoreboard players operation @s 输入金额 += @s 金币

12.execute @a[scores={输入金额=99999999..}] ~~~ scoreboard players reset @s 输入金额

13.execute @p[scores={菜单=16..20},rx=-88] ~~~ scoreboard players operation @a 转账玩家 -= @s 菜单

14.execute @p[scores={菜单=16..20},rx=-88] ~~~ scoreboard players operation @a[scores={转账玩家=-16}] 金币 += @s 输入金额

15.(连锁有条件保持开启)execute @p[scores={菜单=16..20},rx=-88] ~~~ scoreboard players operation @s 金币 -= @s 输入金额

16.tellraw @p[scores={转账玩家=-16}] {"rawtext":[{"text":"§l§f>§r>§l§7>§b玩家§f"},{"selector":"@p[scores={菜单=16..20},rx=-85]"},{"text":"§b向你转账了§f"},{"score":{"name":"@p[scores={菜单=16..20},rx=-85]","objective":"输入金额"}},{"text":"§e金币"}]}

17(连锁有条件保存开启)tellraw @p[scores={菜单=16..20},rx=-85] {"rawtext":[{"text":"§l§f>§r>§l§7>§b已成功向玩家§f"},{"selector":"@p[scores={转账玩家=-16}]"},{"text":"§b转账了§f"},{"score":{"name":"@a[scores={菜单=16..20}]","objective":"输入金额"}},{"text":"§e金币"}]}

18.execute @p[scores={菜单=16..20},rx=-88] ~~~ scoreboard players operation @a 转账玩家 += @s 菜单

19.execute @p[scores={菜单=16..20},rx=-88] ~~~ scoreboard players reset @s 输入金额

20.execute @p[scores={菜单=16..20},rx=-88] ~~~ scoreboard players reset @s 菜单

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

返回顶部