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

[命令方块] 钱钱钱!自定存取任意数量物品+小键盘输入——物品银行OOC

[复制链接]

22

主题

97

帖子

76

积分

Lv.3 矿物能手

UID
16359
小麦
28
金锭
282
下界之星
0
发表于 2017-12-8 22:50:35 | 显示全部楼层 |阅读模式
今天给大家带来的功能是:玩家可以输入数量来存取任意数量的指定物品

先上效果图:
取钱功能:
取钱T.gif
余额不足时:
取钱T1.gif
存钱功能:
存钱T1.gif
可以选择1到9999任意数量
存钱T2.gif
手中物品数量不足时:

存钱T3.gif


原理部分:
1:小键盘输入
此过程用了两个计分板,click和count。click类型为trigger,通过tellraw点击事件,点击数字就把玩家的click计分板设定为相应积分。之后给玩家count积分×10+click
实现进位,从而把玩家输入的数字按顺序排到一个计分板内。当玩家count分数超过四位数时,给玩家count/10,来强制限制位数

之所以用trigger,是因为trigger可以让所有无权限玩家使用。详见:
NWT丨trigger指令及应用【新人向】
http://mc.netease.com/thread-5384-1-1.html
(出处: 网易我的世界论坛)

关键指令:
  1. /execute @a[score_click_min=0] ~ ~ ~ /scoreboard players operation [url=home.php?mod=space&uid=315471]@P[/url] count *= @e[type=armor_stand,name=10] count

  2. /execute @a[score_click_min=0] ~ ~ ~ /scoreboard players operation @p count += @p click

  3. /execute @a[score_count_min=10000] ~ ~ ~ /scoreboard players operation @p[r=1] count /= @e[type=armor_stand,name=10] count
复制代码

2:给物品/清除物品
此过程用了二分法思想(详见数学书....) 即把钻石分成1,2,4,8,16,32,64,128......2n  一共n份,从这n分中任意取出1到n份,就能组成1到2*2n-1中的任意数字。
(同理著名数学课后题:把1000个硬币分到10个桶中,要求任意取出几桶都能组成1到1000的任意数量硬币)

3:探测玩家物品数量
探测玩家物品数量用到了stats指令,stats讲解详见:
NWT丨stats指令基本教程及应用举例【新手向】
http://mc.netease.com/thread-5350-1-1.html
(出处: 网易我的世界论坛)
  1. /stats entity @a[score_click2_min=10,score_click2=10] set AffectedItems @a[r=1] count2
复制代码
此指令可以吧命令影响的物品数量返回值输出到count2计分板上
结合以下指令:
  1. /execute @a[score_click2_min=10,score_click2=10] ~ ~ ~ clear @p diamond 0 0
复制代码
给玩家clear 0个物品,玩家物品数量不受到影响,但是总数量可以被stats监听到


OOC部分:
好了说了这么多肯定都不是你们关心的......下面给出具体指令ooc:
由于直接发ooc中的斜杠经常被吃掉...所以最后还会给出附件,下载后可复制到命令方块使用(请按照三部分依次复制到三个并排的命令方块使用)
第一部分:
  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:setblock ~2 ~28 ~0 chain_command_block 1 replace {Command:"/scoreboard players set @a[score_click2_min=1] click2 -1",auto:1b}},{id:commandblock_minecart,Command:"setblock ~2 ~27 ~0 chain_command_block 1 replace {Command:"/tellraw @a[score_click2_min=1,score_click2=2] [{\\"text\\":\\"\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n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n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n请输入数量\\",\\"color\\":\\"gold\\"},{\\"text\\":\\"   [鼠标单击输入]\\",\\"color\\":\\"gray\\"},{\\"text\\":\\"\\\\n您当前的余额为:\\",\\"color\\":\\"gold\\"},{\\"score\\":{\\"name\\":\\"@p\\",\\"objective\\":\\"money\\"},\\"color\\":\\"green\\",\\"bold\\":\\"true\\"},{\\"text\\":\\"\\\\n\\\\n     [1] \\",\\"color\\":\\"green\\",\\"clickEvent\\":{\\"action\\":\\"run_command\\",\\"value\\":\\"/trigger click set 1\\"}},{\\"text\\":\\"[2] \\",\\"color\\":\\"green\\",\\"clickEvent\\":{\\"action\\":\\"run_command\\",\\"value\\":\\"/trigger click set 2\\"}},{\\"text\\":\\"[3] \\",\\"color\\":\\"green\\",\\"clickEvent\\":{\\"action\\":\\"run_command\\",\\"value\\":\\"/trigger click set 3\\"}},{\\"text\\":\\"[确认]\\",\\"color\\":\\"green\\",\\"clickEvent\\":{\\"action\\":\\"run_command\\",\\"value\\":\\"/trigger click2 set 10\\"}},{\\"text\\":\\"\\\\n     [4] \\",\\"color\\":\\"green\\",\\"clickEvent\\":{\\"action\\":\\"run_command\\",\\"value\\":\\"/trigger click set 4\\"}},{\\"text\\":\\"[5] \\",\\"color\\":\\"green\\",\\"clickEvent\\":{\\"action\\":\\"run_command\\",\\"value\\":\\"/trigger click set 5\\"}},{\\"text\\":\\"[6] \\",\\"color\\":\\"green\\",\\"clickEvent\\":{\\"action\\":\\"run_command\\",\\"value\\":\\"/trigger click set 6\\"}},{\\"text\\":\\" [0] \\",\\"color\\":\\"green\\",\\"clickEvent\\":{\\"action\\":\\"run_command\\",\\"value\\":\\"/trigger click set 0\\"}},{\\"text\\":\\"\\\\n     [7] \\",\\"color\\":\\"green\\",\\"clickEvent\\":{\\"action\\":\\"run_command\\",\\"value\\":\\"/trigger click set 7\\"}},{\\"text\\":\\"[8] \\",\\"color\\":\\"green\\",\\"clickEvent\\":{\\"action\\":\\"run_command\\",\\"value\\":\\"/trigger click set 8\\"}},{\\"text\\":\\"[9] \\",\\"color\\":\\"green\\",\\"clickEvent\\":{\\"action\\":\\"run_command\\",\\"value\\":\\"/trigger click set 9\\"}},{\\"text\\":\\"[取消]\\",\\"color\\":\\"green\\",\\"clickEvent\\":{\\"action\\":\\"run_command\\",\\"value\\":\\"/trigger click2 set 11\\"}}]",auto:1b}"},{id:commandblock_minecart,Command:setblock ~2 ~26 ~0 chain_command_block 1 replace {Command:"/scoreboard players set @a[score_click2_min=2,score_click2=2] option 1",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~25 ~0 chain_command_block 1 replace {Command:"/scoreboard players set @a[score_click2_min=1,score_click2=1] option 2",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~24 ~0 chain_command_block 1 replace {Command:"/scoreboard players set @a[score_use_min=1] use 0",auto:1b}},{id:commandblock_minecart,Command:"setblock ~2 ~23 ~0 chain_command_block 1 replace {Command:"/tellraw @a[score_use_min=1] [{\\"text\\":\\"\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\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\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n请选择功能:\\",\\"color\\":\\"gold\\"},{\\"text\\":\\"   [鼠标单击输入]\\",\\"color\\":\\"gray\\"},{\\"text\\":\\"\\\\n您当前的余额为:\\",\\"color\\":\\"gold\\"},{\\"score\\":{\\"name\\":\\"@p\\",\\"objective\\":\\"money\\"},\\"color\\":\\"green\\",\\"bold\\":\\"true\\"},{\\"text\\":\\"\\\\n\\\\n     [我要存钱] \\",\\"color\\":\\"green\\",\\"clickEvent\\":{\\"action\\":\\"run_command\\",\\"value\\":\\"/trigger click2 set 1\\"}},{\\"text\\":\\"\\\\n\\\\n     [我要取钱] \\",\\"color\\":\\"green\\",\\"clickEvent\\":{\\"action\\":\\"run_command\\",\\"value\\":\\"/trigger click2 set 2\\"}}]",auto:1b}"},{id:commandblock_minecart,Command:setblock ~2 ~22 ~0 chain_command_block 1 replace {Command:"/scoreboard players set @a[score_count2_min=1] count2 -1",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~21 ~0 chain_command_block 1 replace {Command:"/execute @a[score_click2_min=10,score_click2=10] ~ ~ ~ /scoreboard players set @p[r=1] count 0",auto:1b}},{id:commandblock_minecart,Command:"setblock ~2 ~20 ~0 chain_command_block 1 replace {Command:"/execute @a[score_count=0,score_click2_min=11] ~ ~ ~ title @p title [{\\"score\\":{\\"name\\":\\"@p\\",\\"objective\\":\\"count\\"},\\"color\\":\\"green\\",\\"bold\\":\\"true\\"},{\\"text\\":\\"\\",\\"color\\":\\"gold\\",\\"bold\\":true}]",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~19 ~0 chain_command_block 1 replace {Command:"/tellraw @a[score_click2_min=10,score_click2=10,score_money4_min=1,score_option_min=2,score_option=2] [{\\"text\\":\\"\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\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\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n已成功将\\",\\"color\\":\\"gold\\"},{\\"score\\":{\\"name\\":\\"@p\\",\\"objective\\":\\"count\\"},\\"color\\":\\"green\\",\\"bold\\":\\"true\\"},{\\"text\\":\\"个物品存入云银行\\",\\"color\\":\\"gold\\"}]",auto:1b}"},{id:commandblock_minecart,Command:setblock ~2 ~18 ~0 chain_command_block 1 replace {Command:"/execute @a[score_count_min=1,score_click2=10,score_count2_min=0,score_option_min=2,score_option=2] ~ ~ ~ /scoreboard players operation @p[r=1] money += @p[r=1] count",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~17 ~0 chain_command_block 1 replace {Command:"/execute @a[score_click2_min=10,score_click2=10,score_count2_min=0,score_option_min=2,score_option=2] ~ ~ ~ /scoreboard players operation @p[r=1] money4 = @p[r=1] count",auto:1b}},{id:commandblock_minecart,Command:"setblock ~2 ~16 ~0 chain_command_block 1 replace {Command:"/tellraw @a[score_click2_min=10,score_click2=10,score_count2=-1,score_option_min=2,score_option=2] [{\\"text\\":\\"\\\\n\\\\n\\\\n\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\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n你没有足够数量的物品!\\",\\"color\\":\\"gold\\"}]",auto:1b}"},{id:commandblock_minecart,Command:setblock ~2 ~15 ~0 chain_command_block 1 replace {Command:"/execute @a[score_click2_min=10,score_click2=10,score_option_min=2,score_option=2] ~ ~ ~ /scoreboard players operation @p[r=1] count2 -= @p[r=1] count",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~14 ~0 chain_command_block 1 replace {Command:"/execute @a[score_click2_min=10,score_click2=10] ~ ~ ~ clear @p diamond 0 0",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~13 ~0 chain_command_block 1 replace {Command:"/stats entity @a[score_click2_min=10,score_click2=10] set AffectedItems @a[r=1] count2",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~12 ~0 chain_command_block 1 replace {Command:"/scoreboard players add @a[score_click2_min=10,score_click2=10] count2 0",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~11 ~0 chain_command_block 1 replace {Command:"/execute @a[score_click2_min=10,score_click2=10,score_money3_min=1,score_option_min=1,score_option=1] ~ ~ ~ /scoreboard players set @p[r=1] count 0",auto:1b}},{id:commandblock_minecart,Command:"setblock ~2 ~10 ~0 chain_command_block 1 replace {Command:"/tellraw @a[score_click2_min=10,score_click2=10,score_money3_min=1,score_option_min=1,score_option=1] [{\\"text\\":\\"\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\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\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n已成功将\\",\\"color\\":\\"gold\\"},{\\"score\\":{\\"name\\":\\"@p\\",\\"objective\\":\\"count\\"},\\"color\\":\\"green\\",\\"bold\\":\\"true\\"},{\\"text\\":\\"个物品提取到背包\\",\\"color\\":\\"gold\\"}]",auto:1b}"},{id:commandblock_minecart,Command:setblock ~2 ~9 ~0 chain_command_block 1 replace {Command:"/execute @a[score_count_min=1,score_click2_min=10,score_click2=10,score_money2_min=0,score_option_min=1,score_option=1] ~ ~ ~ /scoreboard players operation @p[r=1] money -= @p[r=1] count",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~8 ~0 chain_command_block 1 replace {Command:"/execute @a[score_click2_min=10,score_click2=10,score_money2_min=0,score_option_min=1,score_option=1] ~ ~ ~ /scoreboard players operation @p[r=1] money3 = @p[r=1] count",auto:1b}},{id:commandblock_minecart,Command:"setblock ~2 ~7 ~0 chain_command_block 1 replace {Command:"/tellraw @a[score_click2_min=10,score_click2=10,score_money2=-1,score_option_min=1,score_option=1] [{\\"text\\":\\"\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\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\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n余额不足!\\",\\"color\\":\\"gold\\"}]",auto:1b}"},{id:commandblock_minecart,Command:setblock ~2 ~6 ~0 chain_command_block 1 replace {Command:"/execute @a[score_click2_min=10,score_click2=10,score_option_min=1,score_option=1] ~ ~ ~ /scoreboard players operation @p[r=1] money2 -= @p[r=1] count",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~5 ~0 chain_command_block 1 replace {Command:"/execute @a[score_click2_min=10,score_click2=10,score_option_min=1,score_option=1] ~ ~ ~ /scoreboard players operation @p[r=1] money2 = @p[r=1] money",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~4 ~0 chain_command_block 1 replace {Command:"/scoreboard players set @a[score_click_min=0] click -1",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~3 ~0 chain_command_block 1 replace {Command:"/scoreboard players set @a[score_click2_min=11,score_click2=11] count 0",auto:1b}},{id:commandblock_minecart,Command:"setblock ~2 ~2 ~0 chain_command_block 1 replace {Command:"/execute @a[score_click_min=0] ~ ~ ~ title @p title [{\\"score\\":{\\"name\\":\\"@p\\",\\"objective\\":\\"count\\"},\\"color\\":\\"green\\",\\"bold\\":\\"true\\"},{\\"text\\":\\"\\",\\"color\\":\\"gold\\",\\"bold\\":true}]",auto:1b}"},{id:commandblock_minecart,Command:setblock ~2 ~1 ~0 chain_command_block 1 replace {Command:"/execute @a[score_count_min=10000] ~ ~ ~ /scoreboard players operation @p[r=1] count /= @e[type=armor_stand,name=10] count",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~0 ~0 chain_command_block 1 replace {Command:"/execute @a[score_click_min=0] ~ ~ ~ /scoreboard players operation @p count += @p click",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~-1 ~0 chain_command_block 1 replace {Command:"/execute @a[score_click_min=0] ~ ~ ~ /scoreboard players operation @p count *= @e[type=armor_stand,name=10] count",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~-2 ~0 repeating_command_block 1 replace {Command:/scoreboard players enable @a option,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. /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:setblock ~2 ~29 ~0 chain_command_block 1 replace {Command:"/scoreboard players remove @a[score_money3_min=1,score_money3=1] money3 1",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~28 ~0 chain_command_block 1 replace {Command:"/give @a[score_money3_min=1,score_money3=1] diamond 1",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~27 ~0 chain_command_block 1 replace {Command:"/scoreboard players remove @a[score_money3_min=2,score_money3=3] money3 2",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~26 ~0 chain_command_block 1 replace {Command:"/give @a[score_money3_min=2,score_money3=3] diamond 2",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~25 ~0 chain_command_block 1 replace {Command:"/scoreboard players remove @a[score_money3_min=4,score_money3=7] money3 4",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~24 ~0 chain_command_block 1 replace {Command:"/give @a[score_money3_min=4,score_money3=7] diamond 4",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~23 ~0 chain_command_block 1 replace {Command:"/scoreboard players remove @a[score_money3_min=8,score_money3=15] money3 8",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~22 ~0 chain_command_block 1 replace {Command:"/give @a[score_money3_min=8,score_money3=15] diamond 8",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~21 ~0 chain_command_block 1 replace {Command:"/scoreboard players remove @a[score_money3_min=16,score_money3=31] money3 16",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~20 ~0 chain_command_block 1 replace {Command:"/give @a[score_money3_min=16,score_money3=31] diamond 16",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~19 ~0 chain_command_block 1 replace {Command:"/scoreboard players remove @a[score_money3_min=32,score_money3=63] money3 32",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~18 ~0 chain_command_block 1 replace {Command:"/give @a[score_money3_min=32,score_money3=63] diamond 32",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~17 ~0 chain_command_block 1 replace {Command:"/scoreboard players remove @a[score_money3_min=64,score_money3=127] money3 64",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~16 ~0 chain_command_block 1 replace {Command:"/give @a[score_money3_min=64,score_money3=127] diamond 64",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~15 ~0 chain_command_block 1 replace {Command:"/scoreboard players remove @a[score_money3_min=128,score_money3=255] money3 128",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~14 ~0 chain_command_block 1 replace {Command:"/give @a[score_money3_min=128,score_money3=255] diamond 64",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~13 ~0 chain_command_block 1 replace {Command:"/give @a[score_money3_min=128,score_money3=255] diamond 64",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~12 ~0 chain_command_block 1 replace {Command:"/scoreboard players remove @a[score_money3_min=256,score_money3=511] money3 256",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~11 ~0 chain_command_block 1 replace {Command:"/give @a[score_money3_min=256,score_money3=511] diamond 64",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~10 ~0 chain_command_block 1 replace {Command:"/give @a[score_money3_min=256,score_money3=511] diamond 64",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~9 ~0 chain_command_block 1 replace {Command:"/give @a[score_money3_min=256,score_money3=511] diamond 64",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~8 ~0 chain_command_block 1 replace {Command:"/give @a[score_money3_min=256,score_money3=511] diamond 64",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~7 ~0 chain_command_block 1 replace {Command:"/scoreboard players remove @a[score_money3_min=521] money3 512",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~6 ~0 chain_command_block 1 replace {Command:"/give @a[score_money3_min=512] diamond 64",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~5 ~0 chain_command_block 1 replace {Command:"/give @a[score_money3_min=512] diamond 64",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~4 ~0 chain_command_block 1 replace {Command:"/give @a[score_money3_min=512] diamond 64",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~3 ~0 chain_command_block 1 replace {Command:"/give @a[score_money3_min=512] diamond 64",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~2 ~0 chain_command_block 1 replace {Command:"/give @a[score_money3_min=512] diamond 64",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~1 ~0 chain_command_block 1 replace {Command:"/give @a[score_money3_min=512] diamond 64",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~0 ~0 chain_command_block 1 replace {Command:"/give @a[score_money3_min=512] diamond 64",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~-1 ~0 chain_command_block 1 replace {Command:"/give @a[score_money3_min=512] diamond 64",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~-2 ~0 repeating_command_block 1 replace {Command:/scoreboard players enable @a click2,auto:1b}},{id:commandblock_minecart,Command:/scoreboard objectives add money dummy},{id:commandblock_minecart,Command:/scoreboard objectives add money2 dummy},{id:commandblock_minecart,Command:/scoreboard objectives add money3 dummy},{id:commandblock_minecart,Command:/scoreboard objectives add money4 dummy},{id:commandblock_minecart,Command:/scoreboard objectives add count dummy},{id:commandblock_minecart,Command:/scoreboard objectives add count2 dummy},{id:commandblock_minecart,Command:summon Armor_Stand ~ ~1 ~ {CustomName:"10",CustomNameVisible:1b,NoBasePlate:1,NoGravity:1,Invisible:1}},{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. /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:setblock ~2 ~29 ~0 chain_command_block 1 replace {Command:"/scoreboard players remove @a[score_money4_min=1,score_money4=1] money4 1",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~28 ~0 chain_command_block 1 replace {Command:"/clear @a[score_money4_min=1,score_money4=1] diamond 0 1",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~27 ~0 chain_command_block 1 replace {Command:"/scoreboard players remove @a[score_money4_min=2,score_money4=3] money4 2",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~26 ~0 chain_command_block 1 replace {Command:"/clear @a[score_money4_min=2,score_money4=3] diamond 0 2",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~25 ~0 chain_command_block 1 replace {Command:"/scoreboard players remove @a[score_money4_min=4,score_money4=7] money4 4",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~24 ~0 chain_command_block 1 replace {Command:"/clear @a[score_money4_min=4,score_money4=7] diamond 0 4",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~23 ~0 chain_command_block 1 replace {Command:"/scoreboard players remove @a[score_money4_min=8,score_money4=15] money4 8",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~22 ~0 chain_command_block 1 replace {Command:"/clear @a[score_money4_min=8,score_money4=15] diamond 0 8",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~21 ~0 chain_command_block 1 replace {Command:"/scoreboard players remove @a[score_money4_min=16,score_money4=31] money4 16",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~20 ~0 chain_command_block 1 replace {Command:"/clear @a[score_money4_min=16,score_money4=31] diamond 0 16",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~19 ~0 chain_command_block 1 replace {Command:"/scoreboard players remove @a[score_money4_min=32,score_money4=63] money4 32",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~18 ~0 chain_command_block 1 replace {Command:"/clear @a[score_money4_min=32,score_money4=63] diamond 0 32",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~17 ~0 chain_command_block 1 replace {Command:"/scoreboard players remove @a[score_money4_min=64,score_money4=127] money4 64",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~16 ~0 chain_command_block 1 replace {Command:"/clear @a[score_money4_min=64,score_money4=127] diamond 0 64",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~15 ~0 chain_command_block 1 replace {Command:"/scoreboard players remove @a[score_money4_min=128,score_money4=255] money4 128",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~14 ~0 chain_command_block 1 replace {Command:"/clear @a[score_money4_min=128,score_money4=255] diamond 0 64",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~13 ~0 chain_command_block 1 replace {Command:"/clear @a[score_money4_min=128,score_money4=255] diamond 0 64",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~12 ~0 chain_command_block 1 replace {Command:"/scoreboard players remove @a[score_money4_min=256,score_money4=511] money4 256",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~11 ~0 chain_command_block 1 replace {Command:"/clear @a[score_money4_min=256,score_money4=511] diamond 0 64",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~10 ~0 chain_command_block 1 replace {Command:"/clear @a[score_money4_min=256,score_money4=511] diamond 0 64",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~9 ~0 chain_command_block 1 replace {Command:"/clear @a[score_money4_min=256,score_money4=511] diamond 0 64",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~8 ~0 chain_command_block 1 replace {Command:"/clear @a[score_money4_min=256,score_money4=511] diamond 0 64",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~7 ~0 chain_command_block 1 replace {Command:"/scoreboard players remove @a[score_money4_min=521] money4 512",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~6 ~0 chain_command_block 1 replace {Command:"/clear @a[score_money4_min=512] diamond 0 64",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~5 ~0 chain_command_block 1 replace {Command:"/clear @a[score_money4_min=512] diamond 0 64",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~4 ~0 chain_command_block 1 replace {Command:"/clear @a[score_money4_min=512] diamond 0 64",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~3 ~0 chain_command_block 1 replace {Command:"/clear @a[score_money4_min=512] diamond 0 64",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~2 ~0 chain_command_block 1 replace {Command:"/clear @a[score_money4_min=512] diamond 0 64",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~1 ~0 chain_command_block 1 replace {Command:"/clear @a[score_money4_min=512] diamond 0 64",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~0 ~0 chain_command_block 1 replace {Command:"/clear @a[score_money4_min=512] diamond 0 64",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~-1 ~0 chain_command_block 1 replace {Command:"/clear @a[score_money4_min=512] diamond 0 64",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~-2 ~0 repeating_command_block 1 replace {Command:/scoreboard players enable @a click,auto:1b}},{id:commandblock_minecart,Command:"/scoreboard players set @e[name=10,type=armor_stand] count 10"},{id:commandblock_minecart,Command:/scoreboard objectives add option trigger},{id:commandblock_minecart,Command:/scoreboard objectives add click trigger},{id:commandblock_minecart,Command:/scoreboard objectives add click2 trigger},{id:commandblock_minecart,Command:/scoreboard objectives add use stat.useItem.minecraft.carrot_on_a_stick},{id:commandblock_minecart,Command:/gamerule commandBlockOutput false},{id:commandblock_minecart,Command:/gamerule sendCommandFeedback false},{id:commandblock_minecart,Command:/give @p minecraft:carrot_on_a_stick},{id:commandblock_minecart,Command:/scoreboard players set @p money 500},{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]}]}]}
复制代码

如果发现上述ooc生成不了..就说明斜杠又被吃了..请下载下面的附件使用:
实物银行ooc.zip (4.01 KB, 下载次数: 33)

评分

参与人数 5 小麦 +2 金锭 +18 收起 理由
籽岷的金粉 + 1 乐于助人
DHK + 1 + 10 优秀作品
萬大人 + 1 感谢分享
hellowy + 1 观点赞同
MCSugar_cane + 1 + 5 观点赞同

查看全部评分

0

主题

1

帖子

0

积分

Lv.1 新手木匠

UID
94570
小麦
0
金锭
4
下界之星
0
发表于 2017-12-8 22:57:02 来自手机 | 显示全部楼层
史蒂夫乐园大军特来点赞

0

主题

15

帖子

4

积分

Lv.1 新手木匠

UID
69716
小麦
0
金锭
46
下界之星
0
发表于 2017-12-8 23:21:47 | 显示全部楼层
唉,勤奋的小汤圆

3

主题

200

帖子

531

积分

Lv.6 附魔大师

UID
3302
小麦
471
金锭
1567
下界之星
0
发表于 2017-12-9 08:02:18 | 显示全部楼层
道理我都懂,我选择OOC

0

主题

1

帖子

0

积分

Lv.1 新手木匠

UID
3792874
小麦
0
金锭
3
下界之星
0
发表于 2017-12-9 08:50:28 | 显示全部楼层
那么问题来了,这是哪个版本的呢?

5

主题

69

帖子

27

积分

Lv.2 石器学徒

UID
283051
小麦
4
金锭
49
下界之星
0
发表于 2017-12-9 09:01:00 | 显示全部楼层
不错不错,服务器可以用
玩指令、红石和建筑,我只是个萌新,希望大家多多指教

0

主题

2

帖子

2

积分

Lv.1 新手木匠

UID
16967
小麦
1
金锭
17
下界之星
0
发表于 2017-12-9 10:36:31 | 显示全部楼层

0

主题

15

帖子

4

积分

Lv.1 新手木匠

UID
69716
小麦
0
金锭
46
下界之星
0
发表于 2017-12-9 10:44:50 来自手机 | 显示全部楼层
yatian 发表于 2017-12-9 08:50
那么问题来了,这是哪个版本的呢?

1.11.2

0

主题

54

帖子

15

积分

Lv.1 新手木匠

UID
16552
小麦
0
金锭
104
下界之星
0
发表于 2017-12-9 12:51:53 来自手机 | 显示全部楼层
不错是不错,就是为了实现任意数量多了好多命令

2

主题

24

帖子

8

积分

Lv.1 新手木匠

UID
183767
小麦
0
金锭
43
下界之星
0
发表于 2017-12-9 14:04:27 | 显示全部楼层
只能存/取钻石吗?

12

主题

302

帖子

118

积分

Lv.4 怪物猎人

UID
3220023
小麦
30
金锭
435
下界之星
0
发表于 2017-12-9 14:30:20 来自手机 | 显示全部楼层
.112没法用啊?

0

主题

1

帖子

0

积分

Lv.1 新手木匠

UID
619607
小麦
0
金锭
4
下界之星
0
发表于 2017-12-9 14:40:30 来自手机 | 显示全部楼层
...

2

主题

20

帖子

42

积分

Lv.2 石器学徒

UID
290791
小麦
35
金锭
193
下界之星
0
发表于 2017-12-9 15:55:37 来自手机 | 显示全部楼层
6

0

主题

10

帖子

3

积分

Lv.1 新手木匠

UID
3474208
小麦
0
金锭
9
下界之星
0
发表于 2017-12-9 17:57:07 | 显示全部楼层
厉害了,研究下!把你的登录密码系统发上来呗

0

主题

54

帖子

15

积分

Lv.1 新手木匠

UID
16552
小麦
0
金锭
104
下界之星
0
发表于 2017-12-10 00:32:09 来自手机 | 显示全部楼层
似乎还能稍微简化一下
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

返回顶部