请选择 进入手机版 | 继续访问电脑版
12
返回列表 发新帖
楼主: MCSugar_cane

[命令方块] 【命令方块实现箱子商店】卖卖卖!在原版服中拥有你自己的商店~创建与设置部分已修复

[复制链接]

65

主题

791

帖子

370

积分

Lv.5 农牧专家

UID
14859
小麦
92
金锭
425
下界之星
0
 楼主| 发表于 2017-12-1 22:48:25 | 显示全部楼层

https://i.loli.net/2017/12/01/5a216c096707c.gifhttps://i.loli.net/2017/12/01/...

本帖最后由 MCSugar_cane 于 2017-12-1 22:50 编辑
HXF31 发表于 2017-11-19 20:08
一个人只能创建一个商店,限制比较大还有就是不知道上面的东西怎么掉下来了,虽然还是有点问题,不能算是完 ...

此bug已经被修复了噢,详情见:传送门
甘小蔗是我,我是甘小蔗!不是盗取什么的!委屈!

0

主题

21

帖子

6

积分

Lv.1 新手木匠

UID
32070
小麦
1
金锭
124
下界之星
0
发表于 2017-12-13 22:42:05 来自手机 | 显示全部楼层
集结地的渣渣前来膜拜大佬!:D

1

主题

59

帖子

28

积分

Lv.2 石器学徒

UID
4048215
小麦
12
金锭
85
下界之星
0
发表于 2018-1-3 13:35:59 来自手机 | 显示全部楼层
.
.

5

主题

38

帖子

15

积分

Lv.1 新手木匠

UID
3336249
小麦
0
金锭
98
下界之星
0
发表于 2018-2-9 17:02:20 | 显示全部楼层
楼主会pe的命令方块吗,会的话能开我租赁服做地皮吗?

59

主题

1050

帖子

618

积分

Lv.6 附魔大师

UID
55896
小麦
291
金锭
645
下界之星
0
发表于 2018-3-25 13:36:58 | 显示全部楼层
OOC:
创建与设置ooc:
收起
/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:"fill ~1 ~-1 ~0 ~5 ~3 ~6 stained_glass 12 hollow"},{id:commandblock_minecart,Command:"fill ~1 ~-2 ~0 ~5 ~-2 ~6 stone 2 hollow"},{id:commandblock_minecart,Command:"fill ~1 ~4 ~0 ~5 ~4 ~6 stone 2 hollow"},{id:commandblock_minecart,Command:"setblock ~4 ~3 ~4 chain_command_block 4 replace {Command:\"/tellraw @a [\\\"\\\\n\\\\n 感谢使用箱子商店-\\\\u00a7b\\\\u00a7l创建与设置模组\\\\u00a7r,有关内容你可以\\\",{\\\"text\\\":\\\"单击我前去查看\\\",\\\"color\\\":\\\"gray\\\",\\\"underlined\\\":true,\\\"clickEvent\\\":{\\\"action\\\":\\\"open_url\\\",\\\"value\\\":\\\"http://www.ganxiaozhe.com/mc/mlxt/201711180.html\\\"},\\\"bold\\\":false},\\\"\\\\n\\\\n\\\"]\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~4 ~3 ~3 chain_command_block 3 replace {Command:\"/summon armor_stand ~ ~ ~ {CustomName:\\\"shopIDStats\\\"}\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~3 ~3 ~3 chain_command_block 5 replace {Command:\"/scoreboard objectives add getSale dummy\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~3 ~3 chain_command_block 5 replace {Command:\"/scoreboard objectives add getShopId dummy\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~3 ~2 chain_command_block 3 replace {Command:\"/scoreboard objectives add items dummy\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~3 ~3 ~2 chain_command_block 4 replace {Command:\"/scoreboard objectives add isale trigger\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~4 ~3 ~2 chain_command_block 4 replace {Command:\"/scoreboard objectives add shopID dummy\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~4 ~3 ~1 chain_command_block 3 replace {Command:\"/scoreboard objectives add shopSetting dummy\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~3 ~3 ~1 chain_command_block 5 replace {Command:\"/scoreboard objectives add whocreate stat.useItem.minecraft.spawn_egg\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~3 ~1 chain_command_block 5 replace {Command:\"/scoreboard objectives add createfacing dummy\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~2 ~1 command_block 1 replace {Command:\"/scoreboard objectives add createitem dummy\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~3 ~2 ~1 chain_command_block 4 replace {Command:\"clear @a[tag=createdShop] spawn_egg 0 64 {display:{Name:\\\"创建商店\\\"}}\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~4 ~2 ~1 chain_command_block 4 replace {Command:\"execute @e[name=cShop,score_shopSetting=-1] ~ ~ ~ blockdata ~ ~ ~1 {Text1:\\\"{\\\\\\\"text\\\\\\\":\\\\\\\"ShopID:\\\\\\\",\\\\\\\"bold\\\\\\\":\\\\\\\"true\\\\\\\",\\\\\\\"color\\\\\\\":\\\\\\\"dark_red\\\\\\\",\\\\\\\"extra\\\\\\\":[\\\\\\\"\\\\\\\"],\\\\\\\"clickEvent\\\\\\\":{\\\\\\\"action\\\\\\\":\\\\\\\"run_command\\\\\\\",\\\\\\\"value\\\\\\\":\\\\\\\"\\\\\\\"}}\\\",Text2:\\\"{\\\\\\\"score\\\\\\\":{\\\\\\\"name\\\\\\\":\\\\\\\"@p\\\\\\\",\\\\\\\"objective\\\\\\\":\\\\\\\"getShopId\\\\\\\"},\\\\\\\"color\\\\\\\":\\\\\\\"red\\\\\\\",\\\\\\\"bold\\\\\\\":\\\\\\\"true\\\\\\\",\\\\\\\"extra\\\\\\\":[\\\\\\\"\\\\\\\"],\\\\\\\"clickEvent\\\\\\\":{\\\\\\\"action\\\\\\\":\\\\\\\"run_command\\\\\\\",\\\\\\\"value\\\\\\\":\\\\\\\"\\\\\\\"}}\\\",Text3:\\\"{\\\\\\\"score\\\\\\\":{\\\\\\\"name\\\\\\\":\\\\\\\"@p\\\\\\\",\\\\\\\"objective\\\\\\\":\\\\\\\"getSale\\\\\\\"},\\\\\\\"color\\\\\\\":\\\\\\\"black\\\\\\\",\\\\\\\"bold\\\\\\\":\\\\\\\"true\\\\\\\",\\\\\\\"extra\\\\\\\":[\\\\\\\"¥/每份\\\\\\\"],\\\\\\\"clickEvent\\\\\\\":{\\\\\\\"action\\\\\\\":\\\\\\\"run_command\\\\\\\",\\\\\\\"value\\\\\\\":\\\\\\\"say More on Ganxiaozhe.com\\\\\\\"}}\\\",Text4:\\\"{\\\\\\\"score\\\\\\\":{\\\\\\\"name\\\\\\\":\\\\\\\"@p\\\\\\\",\\\\\\\"objective\\\\\\\":\\\\\\\"items\\\\\\\"},\\\\\\\"color\\\\\\\":\\\\\\\"black\\\\\\\",\\\\\\\"bold\\\\\\\":\\\\\\\"true\\\\\\\",\\\\\\\"extra\\\\\\\":[\\\\\\\"份/剩余\\\\\\\"],\\\\\\\"clickEvent\\\\\\\":{\\\\\\\"action\\\\\\\":\\\\\\\"run_command\\\\\\\",\\\\\\\"value\\\\\\\":\\\\\\\"\\\\\\\"}}\\\"}\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~4 ~2 ~2 chain_command_block 2 replace {Command:\"execute @e[name=cShop,score_shopSetting=-1] ~ ~ ~ blockdata ~ ~ ~-1 {Text1:\\\"{\\\\\\\"text\\\\\\\":\\\\\\\"ShopID:\\\\\\\",\\\\\\\"bold\\\\\\\":\\\\\\\"true\\\\\\\",\\\\\\\"color\\\\\\\":\\\\\\\"dark_red\\\\\\\",\\\\\\\"extra\\\\\\\":[\\\\\\\"\\\\\\\"],\\\\\\\"clickEvent\\\\\\\":{\\\\\\\"action\\\\\\\":\\\\\\\"run_command\\\\\\\",\\\\\\\"value\\\\\\\":\\\\\\\"\\\\\\\"}}\\\",Text2:\\\"{\\\\\\\"score\\\\\\\":{\\\\\\\"name\\\\\\\":\\\\\\\"@p\\\\\\\",\\\\\\\"objective\\\\\\\":\\\\\\\"getShopId\\\\\\\"},\\\\\\\"color\\\\\\\":\\\\\\\"red\\\\\\\",\\\\\\\"bold\\\\\\\":\\\\\\\"true\\\\\\\",\\\\\\\"extra\\\\\\\":[\\\\\\\"\\\\\\\"],\\\\\\\"clickEvent\\\\\\\":{\\\\\\\"action\\\\\\\":\\\\\\\"run_command\\\\\\\",\\\\\\\"value\\\\\\\":\\\\\\\"\\\\\\\"}}\\\",Text3:\\\"{\\\\\\\"score\\\\\\\":{\\\\\\\"name\\\\\\\":\\\\\\\"@p\\\\\\\",\\\\\\\"objective\\\\\\\":\\\\\\\"getSale\\\\\\\"},\\\\\\\"color\\\\\\\":\\\\\\\"black\\\\\\\",\\\\\\\"bold\\\\\\\":\\\\\\\"true\\\\\\\",\\\\\\\"extra\\\\\\\":[\\\\\\\"¥/每份\\\\\\\"],\\\\\\\"clickEvent\\\\\\\":{\\\\\\\"action\\\\\\\":\\\\\\\"run_command\\\\\\\",\\\\\\\"value\\\\\\\":\\\\\\\"say More on Ganxiaozhe.com\\\\\\\"}}\\\",Text4:\\\"{\\\\\\\"score\\\\\\\":{\\\\\\\"name\\\\\\\":\\\\\\\"@p\\\\\\\",\\\\\\\"objective\\\\\\\":\\\\\\\"items\\\\\\\"},\\\\\\\"color\\\\\\\":\\\\\\\"black\\\\\\\",\\\\\\\"bold\\\\\\\":\\\\\\\"true\\\\\\\",\\\\\\\"extra\\\\\\\":[\\\\\\\"份/剩余\\\\\\\"],\\\\\\\"clickEvent\\\\\\\":{\\\\\\\"action\\\\\\\":\\\\\\\"run_command\\\\\\\",\\\\\\\"value\\\\\\\":\\\\\\\"\\\\\\\"}}\\\"}\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~3 ~2 ~2 chain_command_block 5 replace {Command:\"execute @e[name=cShop,score_shopSetting=-1] ~ ~ ~ blockdata ~1 ~ ~ {Text1:\\\"{\\\\\\\"text\\\\\\\":\\\\\\\"ShopID:\\\\\\\",\\\\\\\"bold\\\\\\\":\\\\\\\"true\\\\\\\",\\\\\\\"color\\\\\\\":\\\\\\\"dark_red\\\\\\\",\\\\\\\"extra\\\\\\\":[\\\\\\\"\\\\\\\"],\\\\\\\"clickEvent\\\\\\\":{\\\\\\\"action\\\\\\\":\\\\\\\"run_command\\\\\\\",\\\\\\\"value\\\\\\\":\\\\\\\"\\\\\\\"}}\\\",Text2:\\\"{\\\\\\\"score\\\\\\\":{\\\\\\\"name\\\\\\\":\\\\\\\"@p\\\\\\\",\\\\\\\"objective\\\\\\\":\\\\\\\"getShopId\\\\\\\"},\\\\\\\"color\\\\\\\":\\\\\\\"red\\\\\\\",\\\\\\\"bold\\\\\\\":\\\\\\\"true\\\\\\\",\\\\\\\"extra\\\\\\\":[\\\\\\\"\\\\\\\"],\\\\\\\"clickEvent\\\\\\\":{\\\\\\\"action\\\\\\\":\\\\\\\"run_command\\\\\\\",\\\\\\\"value\\\\\\\":\\\\\\\"\\\\\\\"}}\\\",Text3:\\\"{\\\\\\\"score\\\\\\\":{\\\\\\\"name\\\\\\\":\\\\\\\"@p\\\\\\\",\\\\\\\"objective\\\\\\\":\\\\\\\"getSale\\\\\\\"},\\\\\\\"color\\\\\\\":\\\\\\\"black\\\\\\\",\\\\\\\"bold\\\\\\\":\\\\\\\"true\\\\\\\",\\\\\\\"extra\\\\\\\":[\\\\\\\"¥/每份\\\\\\\"],\\\\\\\"clickEvent\\\\\\\":{\\\\\\\"action\\\\\\\":\\\\\\\"run_command\\\\\\\",\\\\\\\"value\\\\\\\":\\\\\\\"say More on Ganxiaozhe.com\\\\\\\"}}\\\",Text4:\\\"{\\\\\\\"score\\\\\\\":{\\\\\\\"name\\\\\\\":\\\\\\\"@p\\\\\\\",\\\\\\\"objective\\\\\\\":\\\\\\\"items\\\\\\\"},\\\\\\\"color\\\\\\\":\\\\\\\"black\\\\\\\",\\\\\\\"bold\\\\\\\":\\\\\\\"true\\\\\\\",\\\\\\\"extra\\\\\\\":[\\\\\\\"份/剩余\\\\\\\"],\\\\\\\"clickEvent\\\\\\\":{\\\\\\\"action\\\\\\\":\\\\\\\"run_command\\\\\\\",\\\\\\\"value\\\\\\\":\\\\\\\"\\\\\\\"}}\\\"}\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~2 ~2 chain_command_block 5 replace {Command:\"execute @e[name=cShop,score_shopSetting=-1] ~ ~ ~ blockdata ~-1 ~ ~ {Text1:\\\"{\\\\\\\"text\\\\\\\":\\\\\\\"ShopID:\\\\\\\",\\\\\\\"bold\\\\\\\":\\\\\\\"true\\\\\\\",\\\\\\\"color\\\\\\\":\\\\\\\"dark_red\\\\\\\",\\\\\\\"extra\\\\\\\":[\\\\\\\"\\\\\\\"],\\\\\\\"clickEvent\\\\\\\":{\\\\\\\"action\\\\\\\":\\\\\\\"run_command\\\\\\\",\\\\\\\"value\\\\\\\":\\\\\\\"\\\\\\\"}}\\\",Text2:\\\"{\\\\\\\"score\\\\\\\":{\\\\\\\"name\\\\\\\":\\\\\\\"@p\\\\\\\",\\\\\\\"objective\\\\\\\":\\\\\\\"getShopId\\\\\\\"},\\\\\\\"color\\\\\\\":\\\\\\\"red\\\\\\\",\\\\\\\"bold\\\\\\\":\\\\\\\"true\\\\\\\",\\\\\\\"extra\\\\\\\":[\\\\\\\"\\\\\\\"],\\\\\\\"clickEvent\\\\\\\":{\\\\\\\"action\\\\\\\":\\\\\\\"run_command\\\\\\\",\\\\\\\"value\\\\\\\":\\\\\\\"\\\\\\\"}}\\\",Text3:\\\"{\\\\\\\"score\\\\\\\":{\\\\\\\"name\\\\\\\":\\\\\\\"@p\\\\\\\",\\\\\\\"objective\\\\\\\":\\\\\\\"getSale\\\\\\\"},\\\\\\\"color\\\\\\\":\\\\\\\"black\\\\\\\",\\\\\\\"bold\\\\\\\":\\\\\\\"true\\\\\\\",\\\\\\\"extra\\\\\\\":[\\\\\\\"¥/每份\\\\\\\"],\\\\\\\"clickEvent\\\\\\\":{\\\\\\\"action\\\\\\\":\\\\\\\"run_command\\\\\\\",\\\\\\\"value\\\\\\\":\\\\\\\"say More on Ganxiaozhe.com\\\\\\\"}}\\\",Text4:\\\"{\\\\\\\"score\\\\\\\":{\\\\\\\"name\\\\\\\":\\\\\\\"@p\\\\\\\",\\\\\\\"objective\\\\\\\":\\\\\\\"items\\\\\\\"},\\\\\\\"color\\\\\\\":\\\\\\\"black\\\\\\\",\\\\\\\"bold\\\\\\\":\\\\\\\"true\\\\\\\",\\\\\\\"extra\\\\\\\":[\\\\\\\"份/剩余\\\\\\\"],\\\\\\\"clickEvent\\\\\\\":{\\\\\\\"action\\\\\\\":\\\\\\\"run_command\\\\\\\",\\\\\\\"value\\\\\\\":\\\\\\\"\\\\\\\"}}\\\"}\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~2 ~3 chain_command_block 2 replace {Command:\"/execute @e[name=cShop,score_shopSetting=-1] ~ ~ ~ scoreboard players operation @p items = @e[name=cShop,r=0,c=1] items\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~3 ~2 ~3 chain_command_block 4 replace {Command:\"/execute @e[name=cShop,score_shopSetting=-1] ~ ~ ~ scoreboard players operation @p getSale = @e[name=cShop,r=0,c=1] isale\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~4 ~2 ~3 chain_command_block 4 replace {Command:\"/execute @e[name=cShop,score_shopSetting=-1] ~ ~ ~ scoreboard players operation @p getShopId = @e[name=cShop,r=0,c=1] shopID\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~4 ~2 ~4 chain_command_block 2 replace {Command:\"/execute @e[name=cShop,score_shopID_min=0,score_shopID=0] ~ ~ ~ scoreboard players operation @e[name=cShop,score_shopID_min=0,score_shopID=0,r=0,c=1] shopID = @e[type=armor_stand,name=shopIDStats] shopID\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~3 ~2 ~4 chain_command_block 5 replace {Command:\"/execute @e[name=cShop,score_shopID_min=0,score_shopID=0] ~ ~ ~ scoreboard players add @e[type=armor_stand,name=shopIDStats] shopID 1\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~2 ~4 chain_command_block 5 replace {Command:\"/scoreboard players add @e[name=cShop,score_shopSetting_min=1,score_shopSetting=2] shopID 0\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~2 ~5 chain_command_block 2 replace {Command:\"/scoreboard players set @e[name=cShop,score_shopSetting_min=4,score_shopSetting=4] shopSetting -1\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~3 ~2 ~5 chain_command_block 4 replace {Command:\"/scoreboard players add @e[name=cShop,score_shopSetting_min=4,score_shopSetting=4] items 1\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~4 ~2 ~5 chain_command_block 4 replace {Command:\"/execute @e[name=cShop,score_shopSetting_min=4,score_shopSetting=4] ~ ~ ~ teleport @e[score_createitem=-1,c=1] ~ ~0.5 ~\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~4 ~1 ~5 chain_command_block 1 replace {Command:\"/scoreboard players tag @a[tag=createdShop] remove setsale\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~3 ~1 ~5 chain_command_block 5 replace {Command:\"/scoreboard players tag @a[tag=setsale] add createdShop\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~1 ~5 chain_command_block 5 replace {Command:\"/scoreboard players tag @a[tag=setsale] remove wcreate\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~1 ~4 chain_command_block 3 replace {Command:\"/execute @a[tag=setsale] ~ ~ ~ /tellraw @p[tag=wcreate] [{\\\"text\\\":\\\"[甘小蔗] \\\",\\\"color\\\":\\\"dark_green\\\",\\\"bold\\\":\\\"true\\\"},{\\\"selector\\\":\\\"@p[tag=setsale]\\\",\\\"color\\\":\\\"gold\\\",\\\"bold\\\":\\\"true\\\"},{\\\"text\\\":\\\" 您的商店已经设置完毕\\\",\\\"color\\\":\\\"green\\\",\\\"bold\\\":true}]\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~3 ~1 ~4 chain_command_block 4 replace {Command:\"/execute @e[name=cShop,score_shopSetting_min=4,score_shopSetting=4] ~ ~ ~ scoreboard players operation @p[tag=setsale] shopID = @e[name=cShop,c=1,score_shopID_min=0] shopID\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~4 ~1 ~4 chain_command_block 4 replace {Command:\"/execute @a[tag=setsale] ~ ~ ~ scoreboard players operation @e[name=cShop,score_shopSetting_min=4,score_shopSetting=4,c=1] isale = @p[tag=setsale] isale\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~4 ~1 ~3 chain_command_block 3 replace {Command:\"/execute @a[tag=setsale] ~ ~ ~ scoreboard players set @e[name=cShop,score_shopSetting_min=3,score_shopSetting=3,c=1] shopSetting 4\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~3 ~1 ~3 chain_command_block 5 replace {Command:\"/scoreboard players tag @a[tag=wcreate,score_isale_min=0,score_isale=100000] add setsale\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~1 ~3 chain_command_block 5 replace {Command:\"/execute @e[name=cShop,score_shopSetting_min=3,score_shopSetting=3] ~ ~ ~ tellraw @p[tag=wcreate] [{\\\"text\\\":\\\"[甘小蔗] \\\",\\\"color\\\":\\\"dark_green\\\",\\\"bold\\\":\\\"true\\\"},{\\\"selector\\\":\\\"@p[tag=wcreate]\\\",\\\"color\\\":\\\"gold\\\",\\\"bold\\\":\\\"true\\\"},{\\\"text\\\":\\\" 输入\\\",\\\"color\\\":\\\"green\\\",\\\"bold\\\":true},{\\\"text\\\":\\\" /trigger isale set 价钱 \\\",\\\"color\\\":\\\"red\\\",\\\"bold\\\":true},{\\\"text\\\":\\\"以设置物品单价(价位0-100000)\\\",\\\"color\\\":\\\"green\\\",\\\"bold\\\":true}]\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~1 ~2 chain_command_block 3 replace {Command:\"/execute @e[name=cShop,score_shopSetting_min=3,score_shopSetting=3] ~ ~ ~ scoreboard players enable @p[tag=wcreate] isale\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~3 ~1 ~2 chain_command_block 4 replace {Command:\"/execute @e[type=Item,score_createitem=-1] ~ ~ ~ scoreboard players set @e[name=cShop,score_shopSetting_min=2,score_shopSetting=2,r=1] shopSetting 3\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~4 ~1 ~2 chain_command_block 4 replace {Command:\"/execute @e[name=cShop,score_shopSetting_min=2,score_shopSetting=2] ~ ~ ~ scoreboard players set @p[tag=wcreate] isale -1\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~4 ~1 ~1 chain_command_block 3 replace {Command:\"/entitydata @e[type=Item,score_createitem=-1] {PickupDelay:10000,Age:-23333,NoGravity:1,Item:{tag:{Ganxiaozhe:1}}}\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~3 ~1 ~1 chain_command_block 5 replace {Command:\"/execute @e[type=cShop,score_shopSetting_min=2,score_shopSetting=2] ~ ~ ~ teleport @e[type=Item,score_createitem=-1,c=1] ~ ~0.5 ~\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~1 ~1 chain_command_block 5 replace {Command:\"/scoreboard players tag @e[type=Item,score_createitem=-1,tag=!ishow] add ishow\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~0 ~1 chain_command_block 1 replace {Command:\"/execute @e[type=Item,score_createitem_min=-2,score_createitem=-2] ~ ~ ~ scoreboard players tag @e[name=cShop,c=1] add s_reeds\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~3 ~0 ~1 chain_command_block 4 replace {Command:\"/execute @e[type=Item,score_createitem_min=-1,score_createitem=-1] ~ ~ ~ scoreboard players tag @e[name=cShop,c=1] add s_iron_ingot\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~4 ~0 ~1 chain_command_block 4 replace {Command:\"/execute @e[name=cShop,score_shopSetting_min=2,score_shopSetting=2] ~ ~ ~ scoreboard players set @e[type=Item,r=1] createitem -2 {Item:{id:\\\"minecraft:reeds\\\",Count:1b,Damage:0s}}\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~4 ~0 ~2 chain_command_block 2 replace {Command:\"/execute @e[name=cShop,score_shopSetting_min=2,score_shopSetting=2] ~ ~ ~ scoreboard players set @e[type=Item,r=1] createitem -1 {Item:{id:\\\"minecraft:iron_ingot\\\",Count:1b,Damage:0s}}\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~3 ~0 ~2 chain_command_block 5 replace {Command:\"/scoreboard players set @e[name=cShop,score_shopSetting_min=1,score_shopSetting=1] shopSetting 2\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~0 ~2 chain_command_block 5 replace {Command:\"/execute @e[name=cShop,score_shopSetting_min=1,score_shopSetting=1] ~ ~ ~ tellraw @p[tag=wcreate] [{\\\"text\\\":\\\"[甘小蔗] \\\",\\\"color\\\":\\\"dark_green\\\",\\\"bold\\\":\\\"true\\\"},{\\\"selector\\\":\\\"@p[tag=wcreate]\\\",\\\"color\\\":\\\"gold\\\",\\\"bold\\\":\\\"true\\\"},{\\\"text\\\":\\\" 请丢弃(一个)你要出售的物品以进行设置(在过程中请勿移动)\\\",\\\"color\\\":\\\"green\\\",\\\"bold\\\":true}]\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~0 ~3 chain_command_block 2 replace {Command:\"/execute @e[name=cShop,score_shopSetting_min=1,score_shopSetting=1] ~ ~ ~ tp @p[tag=wcreate] @e[name=cShop,c=1]\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~3 ~0 ~3 chain_command_block 4 replace {Command:\"/scoreboard players reset @a[score_whocreate_min=1] whocreate\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~4 ~0 ~3 chain_command_block 4 replace {Command:\"/kill @e[type=bat,name=CreateShop]\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~4 ~0 ~4 chain_command_block 2 replace {Command:\"/execute @e[type=bat,name=CreateShop] ~ ~ ~ /scoreboard players tag @a[score_whocreate_min=1,r=7] add wcreate\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~3 ~0 ~4 chain_command_block 5 replace {Command:\"/execute @a[score_whocreate_min=1] ~ ~ ~ scoreboard players set @e[name=cShop,c=1] shopSetting 1\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~0 ~4 chain_command_block 5 replace {Command:\"/execute @a[score_whocreate_min=1] ~ ~ ~ execute @e[name=CreateShop,c=1] ~ ~ ~ /summon Villager ~ ~ ~ {CustomName:\\\"cShop\\\",NoAI:1b,Silent:1b,Offers:{Recipes:[]},ActiveEffects:[{Id:14,Duration:9999999,Amplifier:50,Ambient:1}]}\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~0 ~5 chain_command_block 2 replace {Command:\"/execute @a[score_whocreate_min=1,score_createfacing_min=4,score_createfacing=4] ~ ~ ~ execute @e[name=CreateShop,c=1] ~ ~ ~ setblock ~ ~ ~-1 wall_sign 1\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~3 ~0 ~5 chain_command_block 4 replace {Command:\"/execute @a[score_whocreate_min=1,score_createfacing_min=4,score_createfacing=4] ~ ~ ~ execute @e[name=CreateShop,c=1] ~ ~ ~ setblock ~ ~ ~ chest 1 masked {Lock:\\\"Locked by ganxiaozhe\\\"}\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~4 ~0 ~5 chain_command_block 4 replace {Command:\"/execute @a[score_whocreate_min=1,score_createfacing_min=3,score_createfacing=3] ~ ~ ~ execute @e[name=CreateShop,c=1] ~ ~ ~ setblock ~1 ~ ~ wall_sign 5\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~4 ~-1 ~5 chain_command_block 1 replace {Command:\"/execute @a[score_whocreate_min=1,score_createfacing_min=3,score_createfacing=3] ~ ~ ~ execute @e[name=CreateShop,c=1] ~ ~ ~ setblock ~ ~ ~ chest 5 masked {Lock:\\\"Locked by ganxiaozhe\\\"}\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~3 ~-1 ~5 chain_command_block 5 replace {Command:\"/execute @a[score_whocreate_min=1,score_createfacing_min=2,score_createfacing=2] ~ ~ ~ execute @e[name=CreateShop,c=1] ~ ~ ~ setblock ~ ~ ~1 wall_sign 3\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~-1 ~5 chain_command_block 5 replace {Command:\"/execute @a[score_whocreate_min=1,score_createfacing_min=2,score_createfacing=2] ~ ~ ~ execute @e[name=CreateShop,c=1] ~ ~ ~ setblock ~ ~ ~ chest 3 masked {Lock:\\\"Locked by ganxiaozhe\\\"}\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~-1 ~4 chain_command_block 3 replace {Command:\"/execute @a[score_whocreate_min=1,score_createfacing_min=1,score_createfacing=1] ~ ~ ~ execute @e[name=CreateShop,c=1] ~ ~ ~ setblock ~-1 ~ ~ wall_sign 4\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~3 ~-1 ~4 chain_command_block 4 replace {Command:\"/execute @a[score_whocreate_min=1,score_createfacing_min=1,score_createfacing=1] ~ ~ ~ execute @e[name=CreateShop,c=1] ~ ~ ~ setblock ~ ~ ~ chest 4 masked {Lock:\\\"Locked by ganxiaozhe\\\"}\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~4 ~-1 ~4 chain_command_block 4 replace {Command:\"/scoreboard players set @a[score_whocreate_min=1,rym=-45,ry=45] createfacing 4\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~4 ~-1 ~3 chain_command_block 3 replace {Command:\"/scoreboard players set @a[score_whocreate_min=1,rym=46,ry=135] createfacing 3\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~3 ~-1 ~3 chain_command_block 5 replace {Command:\"/scoreboard players set @a[score_whocreate_min=1,rym=135,ry=-135] createfacing 2\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~-1 ~3 chain_command_block 5 replace {Command:\"/scoreboard players set @a[score_whocreate_min=1,rym=-135,ry=-45] createfacing 1\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~-1 ~2 chain_command_block 3 replace {Command:\"execute @e[type=Item,score_createitem_min=1,score_createitem=1] ~ ~ ~ execute @e[score_createitem_min=2,score_createitem=2,r=1,c=1] ~ ~ ~ kill @e[type=Item,score_createitem_min=1,r=1]\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~3 ~-1 ~2 chain_command_block 4 replace {Command:\"execute @e[type=Item,score_createitem_min=1,score_createitem=1] ~ ~ ~ execute @e[score_createitem_min=2,score_createitem=2,r=1,c=1] ~ ~ ~ particle totem ~ ~1 ~ 0.2 0.6 0.2 0.2 80\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~4 ~-1 ~2 chain_command_block 4 replace {Command:\"execute @e[type=Item,score_createitem_min=1,score_createitem=1] ~ ~ ~ execute @e[score_createitem_min=2,score_createitem=2,r=1,c=1] ~ ~ ~ playsound minecraft:entity.armorstand.break voice @a[r=8]\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~4 ~-1 ~1 chain_command_block 3 replace {Command:\"execute @e[type=Item,score_createitem_min=1,score_createitem=1] ~ ~ ~ execute @e[score_createitem_min=2,score_createitem=2,r=1,c=1] ~ ~ ~ summon Item ~ ~0.5 ~ {Item:{id:\\\"minecraft:spawn_egg\\\",Count:1b,tag:{EntityTag:{id:\\\"minecraft:bat\\\",CustomName:\\\"CreateShop\\\",NoAI:1,Silent:1b,ActiveEffects:[{Id:14,Duration:9999999,Amplifier:50,Ambient:1}]},HideFlags:127,ench:[{id:34,lvl:10}],display:{Name:\\\"创建商店\\\",Lore:[\\\"www.Ganxiaozhe.com\\\"]}}},Motion:[0.0,0.4,0.0]}\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~3 ~-1 ~1 chain_command_block 5 replace {Command:\"/scoreboard players set @e[type=Item] createitem 2 {Item:{id:\\\"minecraft:sign\\\",Count:1b,Damage:0s},OnGround:1b}\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~-1 ~1 repeating_command_block 5 replace {Command:\"/scoreboard players set @e[type=Item] createitem 1 {Item:{id:\\\"minecraft:chest\\\",Count:1b,Damage:0s},OnGround:1b}\",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]"}]}]}

存货与购买与撤销ooc:
收起
/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:"fill ~1 ~-1 ~0 ~5 ~5 ~6 stained_glass 12 hollow"},{id:commandblock_minecart,Command:"fill ~1 ~-2 ~0 ~5 ~-2 ~6 stone 2 hollow"},{id:commandblock_minecart,Command:"fill ~1 ~6 ~0 ~5 ~6 ~6 stone 2 hollow"},{id:commandblock_minecart,Command:"setblock ~3 ~5 ~3 chain_command_block 5 replace {Command:\"/tellraw @a [\\\"\\\\n\\\\n 感谢使用箱子商店-\\\\u00a7b\\\\u00a7l存货购买与撤销提现模组\\\\u00a7r,有关内容你可以\\\",{\\\"text\\\":\\\"单击我前去查看\\\",\\\"color\\\":\\\"gray\\\",\\\"underlined\\\":true,\\\"clickEvent\\\":{\\\"action\\\":\\\"open_url\\\",\\\"value\\\":\\\"http://www.ganxiaozhe.com/mc/mlxt/201711180.html\\\"},\\\"bold\\\":false},\\\"\\\\n\\\\n\\\"]\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~5 ~3 chain_command_block 5 replace {Command:\"/scoreboard objectives add iget trigger\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~5 ~2 chain_command_block 3 replace {Command:\"/scoreboard objectives add cash dummy 银行系统现金\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~3 ~5 ~2 chain_command_block 4 replace {Command:\"/scoreboard objectives add savecash dummy\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~4 ~5 ~2 chain_command_block 4 replace {Command:\"/scoreboard objectives add selling dummy\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~4 ~5 ~1 chain_command_block 3 replace {Command:\"/scoreboard objectives add bpd dummy\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~3 ~5 ~1 chain_command_block 5 replace {Command:\"/scoreboard objectives add btimer dummy\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~5 ~1 chain_command_block 5 replace {Command:\"/scoreboard objectives add btemp dummy\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~4 ~1 chain_command_block 1 replace {Command:\"/scoreboard objectives add delshop trigger\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~3 ~4 ~1 chain_command_block 4 replace {Command:\"/scoreboard objectives add ibuy trigger\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~4 ~4 ~1 chain_command_block 4 replace {Command:\"/scoreboard objectives add ctemp dummy\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~4 ~4 ~2 chain_command_block 2 replace {Command:\"/scoreboard objectives add IDtemp dummy\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~3 ~4 ~2 chain_command_block 5 replace {Command:\"/scoreboard objectives add iclick stat.talkedToVillager\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~4 ~2 command_block 5 replace {Command:\"/scoreboard objectives add savei dummy\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~4 ~3 chain_command_block 2 replace {Command:\"/scoreboard players reset @a[score_btimer_min=3,score_ibuy=0] btimer\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~3 ~4 ~3 chain_command_block 4 replace {Command:\"/scoreboard players reset @a[score_btimer_min=3,score_ibuy=0] ctemp\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~4 ~4 ~3 chain_command_block 4 replace {Command:\"/scoreboard players tag @a[tag=buyer,score_btimer_min=3,score_ibuy=0] remove buyer\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~4 ~4 ~4 chain_command_block 2 replace {Command:\"/scoreboard players set @a[tag=buyer,score_btimer_min=3,score_ibuy=0] ibuy -1\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~3 ~4 ~4 chain_command_block 5 replace {Command:\"/execute @e[name=cShop,score_shopSetting=-1,score_selling_min=1,tag=s_reeds] ~ ~ ~ give @p[tag=buyer,score_btimer_min=3] reeds 1 0\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~4 ~4 chain_command_block 5 replace {Command:\"/execute @e[name=cShop,score_shopSetting=-1,score_selling_min=1,tag=s_iron_ingot] ~ ~ ~ give @p[tag=buyer,score_btimer_min=3] iron_ingot 1 0\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~4 ~5 chain_command_block 2 replace {Command:\"/execute @a[tag=buyer,score_btimer_min=3] ~ ~ ~ scoreboard players operation @e[name=cShop,score_shopSetting=-1,c=1] savecash += @e[name=cShop,score_shopSetting=-1,c=1] isale\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~3 ~4 ~5 chain_command_block 4 replace {Command:\"/execute @a[tag=buyer,score_btimer_min=3] ~ ~ ~ scoreboard players operation @e[name=cShop,score_shopSetting=-1,c=1] cash += @e[name=cShop,score_shopSetting=-1,c=1] isale\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~4 ~4 ~5 chain_command_block 4 replace {Command:\"/execute @a[tag=buyer,score_btimer_min=3] ~ ~ ~ scoreboard players operation @p cash -= @e[name=cShop,score_shopSetting=-1,c=1] isale\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~4 ~3 ~5 chain_command_block 1 replace {Command:\"/execute @a[tag=buyer,score_btimer_min=3] ~ ~ ~ scoreboard players remove @e[name=cShop,score_shopSetting=-1,c=1] items 1\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~3 ~3 ~5 chain_command_block 5 replace {Command:\"/execute @a[tag=buyer,score_btimer_min=3] ~ ~ ~ scoreboard players remove @p ibuy 1\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~3 ~5 chain_command_block 5 replace {Command:\"tellraw @a[tag=buyer,score_btimer_min=3,score_btimer=3] [{\\\"text\\\":\\\"[甘小蔗] \\\",\\\"color\\\":\\\"dark_green\\\",\\\"bold\\\":\\\"true\\\"},{\\\"text\\\":\\\" 购买成功!请稍等片刻。\\\",\\\"color\\\":\\\"green\\\",\\\"bold\\\":true}]\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~3 ~4 chain_command_block 3 replace {Command:\"/execute @a[tag=buyer,score_btimer_min=3] ~ ~ ~ scoreboard players set @e[name=cShop,score_shopSetting=-1,c=1] selling 1\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~3 ~3 ~4 chain_command_block 4 replace {Command:\"scoreboard players set @e[tag=selling] selling 0\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~4 ~3 ~4 chain_command_block 4 replace {Command:\"/scoreboard players reset @a[score_bpd_min=0,score_bpd=0,score_btimer_min=2,score_btimer=2] btimer\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~4 ~3 ~3 chain_command_block 3 replace {Command:\"/scoreboard players tag @a[score_bpd_min=0,score_bpd=0,score_btimer_min=2,score_btimer=2] remove buyer\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~3 ~3 ~3 chain_command_block 5 replace {Command:\"/tellraw @a[score_bpd_min=0,score_bpd=0,score_btimer_min=2,score_btimer=2] [{\\\"text\\\":\\\"[甘小蔗] \\\",\\\"color\\\":\\\"dark_green\\\",\\\"bold\\\":\\\"true\\\"},{\\\"text\\\":\\\" 您的现金不足,购买失败\\\",\\\"color\\\":\\\"red\\\",\\\"bold\\\":true}]\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~3 ~3 chain_command_block 5 replace {Command:\"/scoreboard players set @p[score_btemp=0,score_btimer_min=2,score_btimer=2] bpd 1\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~3 ~2 chain_command_block 3 replace {Command:\"/execute @a[tag=buyer,score_btimer_min=2,score_btimer=2] ~ ~ ~ scoreboard players operation @p btemp -= @p cash\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~3 ~3 ~2 chain_command_block 4 replace {Command:\"/execute @a[tag=buyer,score_btimer_min=2,score_btimer=2] ~ ~ ~ scoreboard players operation @p btemp *= @e[name=cShop,score_shopSetting=-1,c=1] isale\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~4 ~3 ~2 chain_command_block 4 replace {Command:\"/execute @a[tag=buyer,score_btimer_min=2,score_btimer=2] ~ ~ ~ scoreboard players operation @p btemp = @p ibuy\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~4 ~3 ~1 chain_command_block 3 replace {Command:\"/scoreboard players set @a[tag=buyer,score_btimer_min=2,score_btimer=2] bpd 0\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~3 ~3 ~1 chain_command_block 5 replace {Command:\"/scoreboard players reset @a[score_bpd_min=0,score_bpd=0,score_btimer_min=1,score_btimer=1] btimer\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~3 ~1 chain_command_block 5 replace {Command:\"/scoreboard players tag @a[score_bpd_min=0,score_bpd=0,score_btimer_min=1,score_btimer=1] remove buyer\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~2 ~1 chain_command_block 1 replace {Command:\"/tellraw @a[score_bpd_min=0,score_bpd=0,score_btimer_min=1,score_btimer=1] [{\\\"text\\\":\\\"[甘小蔗] \\\",\\\"color\\\":\\\"dark_green\\\",\\\"bold\\\":\\\"true\\\"},{\\\"text\\\":\\\" 当前商品存库不足,购买失败\\\",\\\"color\\\":\\\"red\\\",\\\"bold\\\":true}]\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~3 ~2 ~1 chain_command_block 4 replace {Command:\"/scoreboard players set @p[score_btemp=0,score_btimer_min=1,score_btimer=1] bpd 1\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~4 ~2 ~1 chain_command_block 4 replace {Command:\"/execute @a[tag=buyer,score_btimer_min=1,score_btimer=1] ~ ~ ~ scoreboard players operation @p btemp -= @e[name=cShop,score_shopSetting=-1,c=1] items\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~4 ~2 ~2 chain_command_block 2 replace {Command:\"/execute @a[tag=buyer,score_btimer_min=1,score_btimer=1] ~ ~ ~ scoreboard players operation @p btemp = @p ibuy\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~3 ~2 ~2 chain_command_block 5 replace {Command:\"/scoreboard players set @a[tag=buyer,score_btimer_min=1,score_btimer=1] bpd 0\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~2 ~2 chain_command_block 5 replace {Command:\"/scoreboard players add @a[tag=buyer,score_btimer_min=0] btimer 1\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~2 ~3 chain_command_block 2 replace {Command:\"/scoreboard players tag @a[score_ibuy_min=1] remove noper\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~3 ~2 ~3 chain_command_block 4 replace {Command:\"/scoreboard players tag @a[tag=geter] remove geter\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~4 ~2 ~3 chain_command_block 4 replace {Command:\"/scoreboard players reset @a[tag=geter] ctemp\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~4 ~2 ~4 chain_command_block 2 replace {Command:\"/execute @a[tag=geter] ~ ~ ~ scoreboard players set @e[name=cShop,score_shopSetting=-1,c=1] cash 0\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~3 ~2 ~4 chain_command_block 5 replace {Command:\"/execute @a[tag=geter] ~ ~ ~ scoreboard players operation @p[r=0] cash += @e[name=cShop,score_shopSetting=-1,c=1] cash\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~2 ~4 chain_command_block 5 replace {Command:\"/execute @a[tag=geter] ~ ~ ~ /tellraw @p [\\\"\\\\u00a72\\\\u00a7l[甘小蔗] \\\",{\\\"score\\\":{\\\"name\\\":\\\"@e[name=cShop,score_shopSetting=-1,c=1]\\\",\\\"objective\\\":\\\"cash\\\"},\\\"color\\\":\\\"gold\\\",\\\"bold\\\":\\\"true\\\"},\\\"\\\\u00a7a现金已经到账\\\"]\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~2 ~5 chain_command_block 2 replace {Command:\"/scoreboard players reset @a[tag=geter] iget\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~3 ~2 ~5 chain_command_block 4 replace {Command:\"/scoreboard players tag @a[score_iget_min=1] remove per\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~4 ~2 ~5 chain_command_block 4 replace {Command:\"/scoreboard players tag @a[tag=delshoper] remove delshoper\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~4 ~1 ~5 chain_command_block 1 replace {Command:\"/scoreboard players tag @a[tag=delshoper] remove createdShop\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~3 ~1 ~5 chain_command_block 5 replace {Command:\"/scoreboard players reset @a[tag=delshoper] ctemp\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~1 ~5 chain_command_block 5 replace {Command:\"/tellraw @a[tag=delshoper] [{\\\"text\\\":\\\"[甘小蔗] \\\",\\\"color\\\":\\\"dark_green\\\",\\\"bold\\\":\\\"true\\\"},{\\\"text\\\":\\\" 撤销成功!\\\",\\\"color\\\":\\\"red\\\",\\\"bold\\\":true}]\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~1 ~4 chain_command_block 3 replace {Command:\"/execute @a[tag=delshoper] ~ ~ ~ kill @e[name=cShop,score_shopSetting=-1,c=1]\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~3 ~1 ~4 chain_command_block 4 replace {Command:\"/execute @a[tag=delshoper] ~ ~ ~ execute @e[name=cShop,score_shopSetting=-1,c=1] ~ ~ ~ entitydata @e[type=Item,tag=ishow,r=2] {PickupDelay:0,NoGravity:0,Item:{tag:{}}}\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~4 ~1 ~4 chain_command_block 4 replace {Command:\"/execute @a[tag=delshoper] ~ ~ ~ execute @e[name=cShop,score_shopSetting=-1,c=1] ~ ~ ~ scoreboard players reset @e[type=Item,tag=ishow,r=2] createitem\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~4 ~1 ~3 chain_command_block 3 replace {Command:\"/execute @a[tag=delshoper] ~ ~ ~ execute @e[name=cShop,score_shopSetting=-1,c=1] ~ ~ ~ setblock ~ ~ ~ air 0 destory\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~3 ~1 ~3 chain_command_block 5 replace {Command:\"/scoreboard players reset @a[tag=delshoper] delshop\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~1 ~3 chain_command_block 5 replace {Command:\"/scoreboard players tag @a[score_delshop_min=1] remove per\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~1 ~2 chain_command_block 3 replace {Command:\"/scoreboard players reset @a[score_ctemp_min=300] ctemp\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~3 ~1 ~2 chain_command_block 4 replace {Command:\"/scoreboard players tag @a[score_ctemp_min=300] remove per\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~4 ~1 ~2 chain_command_block 4 replace {Command:\"/scoreboard players tag @a[score_ctemp_min=300] remove noper\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~4 ~1 ~1 chain_command_block 3 replace {Command:\"/scoreboard players tag @a[score_ctemp_min=300] remove clicker\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~3 ~1 ~1 chain_command_block 5 replace {Command:\"/execute @a[score_ctemp_min=1,score_ctemp=300] ~ ~ ~ tp @p[r=0] @p[r=0]\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~1 ~1 chain_command_block 5 replace {Command:\"/scoreboard players tag @a[tag=per,score_ctemp_min=1,score_iget_min=1,score_iget=1,score_ctemp=299] add geter\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~0 ~1 chain_command_block 1 replace {Command:\"/scoreboard players tag @a[tag=per,score_ctemp_min=1,score_delshop_min=1,score_delshop=1,score_ctemp=299] add delshoper\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~3 ~0 ~1 chain_command_block 4 replace {Command:\"/scoreboard players add @a[tag=noper,score_ctemp_min=1,score_ctemp=299,score_ibuy_min=1] btimer 0\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~4 ~0 ~1 chain_command_block 4 replace {Command:\"/scoreboard players tag @a[tag=noper,score_ctemp_min=1,score_ctemp=299,score_ibuy_min=1] add buyer\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~4 ~0 ~2 chain_command_block 2 replace {Command:\"/scoreboard players enable @a[tag=per,score_ctemp_min=1] iget\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~3 ~0 ~2 chain_command_block 5 replace {Command:\"/scoreboard players enable @a[tag=per,score_ctemp_min=1] delshop\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~0 ~2 chain_command_block 5 replace {Command:\"/scoreboard players enable @a[tag=noper,score_ctemp_min=1] ibuy\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~0 ~3 chain_command_block 2 replace {Command:\"/scoreboard players set @a[tag=per,score_ctemp_min=1,score_ctemp=1] delshop -1\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~3 ~0 ~3 chain_command_block 4 replace {Command:\"/scoreboard players set @a[tag=noper,score_ctemp_min=1,score_ctemp=1] ibuy -1\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~4 ~0 ~3 chain_command_block 4 replace {Command:\"/execute @a[tag=per,score_ctemp_min=1,score_ctemp=1] ~ ~ ~ /execute @e[name=cShop,score_shopSetting=-1,c=1] ~ ~ ~ tellraw @p[tag=per,score_ctemp_min=1,score_ctemp=1,r=8] [{\\\"text\\\":\\\"[甘小蔗] \\\",\\\"color\\\":\\\"dark_green\\\",\\\"bold\\\":\\\"true\\\"},{\\\"text\\\":\\\" 当前商店存有现金\\\",\\\"color\\\":\\\"green\\\",\\\"bold\\\":true},{\\\"score\\\":{\\\"name\\\":\\\"@e[name=cShop,r=0,c=1]\\\",\\\"objective\\\":\\\"cash\\\"},\\\"color\\\":\\\"gold\\\",\\\"bold\\\":\\\"true\\\"},{\\\"text\\\":\\\" 如需提现请在15秒内输入\\\\u00a7c\\\\u00a7l /trigger iget set 1 \\\\u00a7a\\\\u00a7l进行撤销\\\\n\\\",\\\"color\\\":\\\"green\\\",\\\"bold\\\":true},{\\\"text\\\":\\\" 如需撤销请在15秒内输入\\\\u00a7c\\\\u00a7l /trigger delshop set 1 \\\\u00a7a\\\\u00a7l进行撤销\\\",\\\"color\\\":\\\"green\\\",\\\"bold\\\":true}]\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~4 ~0 ~4 chain_command_block 2 replace {Command:\"/execute @a[tag=noper,score_ctemp_min=1,score_ctemp=1] ~ ~ ~ execute @e[name=cShop,score_shopSetting=-1,c=1] ~ ~ ~ tellraw @p[tag=noper,score_ctemp_min=1,score_ctemp=1,r=8] [{\\\"text\\\":\\\"[甘小蔗] \\\",\\\"color\\\":\\\"dark_green\\\",\\\"bold\\\":\\\"true\\\"},{\\\"text\\\":\\\" 当前商品存库为\\\",\\\"color\\\":\\\"green\\\",\\\"bold\\\":true},{\\\"score\\\":{\\\"name\\\":\\\"@e[name=cShop,r=0,c=1]\\\",\\\"objective\\\":\\\"items\\\"},\\\"color\\\":\\\"gold\\\",\\\"bold\\\":\\\"true\\\"},{\\\"text\\\":\\\"\\\\n在15秒内输入\\\\u00a7c\\\\u00a7l /trigger ibuy set 数量 \\\\u00a7a\\\\u00a7l进行购买,请在购买时不要移动\\\",\\\"color\\\":\\\"green\\\",\\\"bold\\\":true}]\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~3 ~0 ~4 chain_command_block 5 replace {Command:\"/scoreboard players add @e[name=cShop,score_shopSetting=-1] cash 0\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~0 ~4 chain_command_block 5 replace {Command:\"/scoreboard players add @a[tag=clicker] ctemp 1\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~0 ~5 chain_command_block 2 replace {Command:\"/scoreboard players tag @a[tag=whoclick] remove whoclick\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~3 ~0 ~5 chain_command_block 4 replace {Command:\"/scoreboard players reset @a[tag=whoclick] ctemp\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~4 ~0 ~5 chain_command_block 4 replace {Command:\"/scoreboard players reset @a[tag=clicker] IDtemp\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~4 ~-1 ~5 chain_command_block 1 replace {Command:\"/scoreboard players tag @a[tag=whoclick] add clicker\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~3 ~-1 ~5 chain_command_block 5 replace {Command:\"/scoreboard players tag @a[tag=noper] remove per\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~-1 ~5 chain_command_block 5 replace {Command:\"/scoreboard players tag @a[tag=whoclick,score_IDtemp_min=0,score_IDtemp=0] add per\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~-1 ~4 chain_command_block 3 replace {Command:\"/scoreboard players tag @a[tag=whoclick,score_IDtemp=-1] add noper\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~3 ~-1 ~4 chain_command_block 4 replace {Command:\"/scoreboard players tag @a[tag=whoclick,score_IDtemp_min=1] add noper\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~4 ~-1 ~4 chain_command_block 4 replace {Command:\"/execute @a[tag=whoclick] ~ ~ ~ scoreboard players operation @p[r=0] IDtemp -= @e[name=cShop,score_shopSetting=-1,c=1] shopID\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~4 ~-1 ~3 chain_command_block 3 replace {Command:\"/execute @a[tag=whoclick] ~ ~ ~ scoreboard players operation @p[r=0] IDtemp = @p[r=0] shopID\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~3 ~-1 ~3 chain_command_block 5 replace {Command:\"/scoreboard players set @a[score_iclick_min=1] iclick 0\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~-1 ~3 chain_command_block 5 replace {Command:\"/execute @e[name=cShop,score_shopSetting=-1] ~ ~ ~ scoreboard players tag @a[r=6,score_iclick_min=1] add whoclick\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~-1 ~2 chain_command_block 3 replace {Command:\"/kill @e[type=Item,score_savei_min=0,score_savei=0]\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~3 ~-1 ~2 chain_command_block 4 replace {Command:\"/execute @e[type=Item,score_savei_min=0,score_savei=0] ~ ~ ~ tellraw @p[tag=createdShop,r=6] [{\\\"text\\\":\\\"[甘小蔗] \\\",\\\"color\\\":\\\"dark_green\\\",\\\"bold\\\":\\\"true\\\"},{\\\"selector\\\":\\\"@p[tag=createdShop]\\\",\\\"color\\\":\\\"gold\\\",\\\"bold\\\":\\\"true\\\"},{\\\"text\\\":\\\" 成功增加存库\\\\u00a7a+1\\\",\\\"color\\\":\\\"green\\\",\\\"bold\\\":true}]\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~4 ~-1 ~2 chain_command_block 4 replace {Command:\"/execute @e[type=Item,score_savei_min=0,score_savei=0] ~ ~ ~ scoreboard players add @e[name=cShop,score_shopSetting=-1,c=1] items 1\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~4 ~-1 ~1 chain_command_block 3 replace {Command:\"/execute @e[type=Item,score_savei_min=1] ~ ~ ~ scoreboard players operation @e[type=Item,c=1] savei += @e[type=Item,c=1,score_createitem=-1] createitem\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~3 ~-1 ~1 chain_command_block 5 replace {Command:\"/execute @e[name=cShop,score_shopSetting=-1] ~ ~ ~ scoreboard players set @e[type=Item,r=1,tag=!ishow] savei 2 {Item:{id:\\\"minecraft:reeds\\\",Count:1b,Damage:0s}}\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~-1 ~1 repeating_command_block 5 replace {Command:\"/execute @e[name=cShop,score_shopSetting=-1] ~ ~ ~ scoreboard players set @e[type=Item,r=1,tag=!ishow] savei 1 {Item:{id:\\\"minecraft:iron_ingot\\\",Count:1b,Damage:0s}}\",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]"}]}]}

59

主题

1050

帖子

618

积分

Lv.6 附魔大师

UID
55896
小麦
291
金锭
645
下界之星
0
发表于 2018-3-30 16:21:53 | 显示全部楼层
..

59

主题

1050

帖子

618

积分

Lv.6 附魔大师

UID
55896
小麦
291
金锭
645
下界之星
0
发表于 2018-3-30 16:22:36 | 显示全部楼层
谢谢这次真的玩到了

0

主题

45

帖子

11

积分

Lv.1 新手木匠

UID
3207116
小麦
0
金锭
32
下界之星
0
发表于 2018-7-2 13:48:54 | 显示全部楼层
可以的

8

主题

142

帖子

44

积分

Lv.2 石器学徒

UID
4960555
小麦
0
金锭
203
下界之星
0
发表于 2018-7-3 09:10:10 来自手机 | 显示全部楼层
DHK 发表于 2017-11-19 10:46
啊啊啊我感觉要看好几天才能学会了

2333

1

主题

16

帖子

5

积分

Lv.1 新手木匠

UID
5432797
小麦
0
金锭
-5
下界之星
0
发表于 2018-7-5 15:15:26 | 显示全部楼层
qwq

0

主题

8

帖子

2

积分

Lv.1 新手木匠

UID
5640099
小麦
0
金锭
13
下界之星
0
发表于 2018-8-22 14:05:48 | 显示全部楼层
HXF31 发表于 2017-11-19 20:08
一个人只能创建一个商店,限制比较大还有就是不知道上面的东西怎么掉下来了,虽然还是有点问题,不能算是完 ...

666

3

主题

89

帖子

25

积分

Lv.2 石器学徒

UID
5777051
小麦
0
金锭
55
下界之星
0
发表于 2018-10-16 11:42:07 | 显示全部楼层
适用在什么版本?我在整合命令方块模组,版本必须明确。

0

主题

4

帖子

1

积分

Lv.1 新手木匠

UID
7042055
小麦
0
金锭
2
下界之星
0
发表于 2019-8-28 22:41:20 | 显示全部楼层

0

主题

6

帖子

2

积分

Lv.1 新手木匠

UID
7082969
小麦
0
金锭
4
下界之星
0
发表于 5 天前 | 显示全部楼层
是个大佬
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

返回顶部