在MC里喝水(OOC)

恩..因为MC从来没有科学过

所以我就做了这个东西:(

废话不多说先上图

图片 图片

按tab查看水分

当水分=0的时候,你就会死亡

通过喝水可以增加水分

点击"获得物品"得到刷怪蛋,并生成饮水机。

将空瓶子丢到绊线钩处并等待即可灌满水。

水分到达一定值会有一些药水效果

至于是什么效果,请自己慢慢试:(

OOC(版本: 1.11.2)

展开/收起
summon falling_block ~ ~1 ~ {Block:stone,Time:1,Passengers:[{id:falling_block,Block:redstone_block,Time:1,Passengers:[{id:falling_block,Block:activator_rail,Time:1,Passengers:[{id:commandblock_minecart,Command:"gamerule commandBlockOutput false"},{id:commandblock_minecart,Command:"fill ~2 ~-3 ~-2 ~9 ~2 ~2 stained_hardened_clay 11 hollow"},{id:commandblock_minecart,Command:"fill ~2 ~-2 ~-2 ~9 ~1 ~2 stained_glass 11 0 stained_hardened_clay"},{id:commandblock_minecart,Command:" /tellraw @a ["\\u00a79\\u00a7l-------------------------------------------------------------"]"},{id:commandblock_minecart,Command:" /tellraw @a ["\\u00a79\\u00a7l"]"},{id:commandblock_minecart,Command:" /tellraw @a ["\\u00a79\\u00a7l             \\u00a7a在Minecraft中喝水"]"},{id:commandblock_minecart,Command:" /tellraw @a ["\\u00a79\\u00a7l                \\u00a7cby what_name\\n"]"},{id:commandblock_minecart,Command:" /tellraw @a ["\\u00a79\\u00a7l-------------------------------------------------------------"]"},{id:commandblock_minecart,Command:"/scoreboard objectives add getItem dummy"},{id:commandblock_minecart,Command:"/scoreboard objectives add craftItem dummy"},{id:commandblock_minecart,Command:"/scoreboard objectives add waterTimer dummy"},{id:commandblock_minecart,Command:"/scoreboard objectives add wMachineTimer dummy"},{id:commandblock_minecart,Command:"/scoreboard objectives add water dummy 口渴度"},{id:commandblock_minecart,Command:"/scoreboard objectives add drink stat.useItem.minecraft.potion"},{id:commandblock_minecart,Command:"/scoreboard objectives add Wdeath deathCount"},{id:commandblock_minecart,Command:"/scoreboard players set @a water 100"},{id:commandblock_minecart,Command:"/scoreboard objectives setdisplay list water"},{id:commandblock_minecart,Command:"setblock ~1 ~-1 ~ wall_sign 4 0 {Text1:"{\\"text\\":\\"=-=-=-=-=-=-=\\",\\"color\\":\\"gold\\",\\"bold\\":true}",Text2:"{\\"text\\":\\"删除\\",\\"color\\":\\"red\\",\\"bold\\":true}",Text3:"{\\"text\\":\\"Remove Machine\\",\\"color\\":\\"red\\",\\"bold\\":true}",Text4:"{\\"text\\":\\"=-=-=-=-=-=-=\\",\\"color\\":\\"gold\\",\\"clickEvent\\":{\\"action\\":\\"run_command\\",\\"value\\":\\"fill ~ ~-2 ~-2 ~8 ~3 ~2 air\\"},\\"bold\\":true}"}"},{id:commandblock_minecart,Command:"setblock ~1 ~ ~ wall_sign 4 0 {Text1:"{\\"text\\":\\"=-=-=-=-=-=-=\\",\\"color\\":\\"gold\\",\\"clickEvent\\":{\\"action\\":\\"run_command\\",\\"value\\":\\"/scoreboard players set @p getItem 1\\"},\\"bold\\":true}",Text2:"{\\"text\\":\\"获得物品\\",\\"color\\":\\"green\\"}",Text3:"{\\"text\\":\\"Get Items\\",\\"color\\":\\"green\\"}",Text4:"{\\"text\\":\\"=-=-=-=-=-=-=\\",\\"color\\":\\"gold\\",\\"bold\\":true}"}"},{id:commandblock_minecart,Command:"summon armor_stand ~3 ~-2 ~-1 {CustomName:TogAct,Marker:1,NoGravity:1,Invisible:1}"},{id:commandblock_minecart,Command:"scoreboard objectives add 3pJH3L_A dummy"},{id:commandblock_minecart,Command:"fill ~3 ~-2 ~-1 ~8 ~1 ~1 chain_command_block 5"},{id:commandblock_minecart,Command:"setblock ~8 ~1 ~1 chain_command_block 4"},{id:commandblock_minecart,Command:"setblock ~8 ~ ~1 chain_command_block 1"},{id:commandblock_minecart,Command:"setblock ~3 ~ ~ chain_command_block 3"},{id:commandblock_minecart,Command:"fill ~8 ~ ~ ~4 ~ ~ chain_command_block 4"},{id:commandblock_minecart,Command:"setblock ~8 ~ ~-1 chain_command_block 3"},{id:commandblock_minecart,Command:"setblock ~3 ~-1 ~-1 chain_command_block 1"},{id:commandblock_minecart,Command:"fill ~8 ~-1 ~-1 ~4 ~-1 ~-1 chain_command_block 4"},{id:commandblock_minecart,Command:"setblock ~8 ~-1 ~ chain_command_block 2"},{id:commandblock_minecart,Command:"setblock ~3 ~-1 ~1 chain_command_block 2"},{id:commandblock_minecart,Command:"fill ~8 ~-1 ~1 ~4 ~-1 ~1 chain_command_block 4"},{id:commandblock_minecart,Command:"setblock ~8 ~-2 ~1 chain_command_block 1"},{id:commandblock_minecart,Command:"setblock ~3 ~-2 ~ chain_command_block 3"},{id:commandblock_minecart,Command:"fill ~8 ~-2 ~ ~4 ~-2 ~ chain_command_block 4"},{id:commandblock_minecart,Command:"setblock ~8 ~-2 ~-1 chain_command_block 3"},{id:commandblock_minecart,Command:"setblock ~3 ~-2 ~-1 repeating_command_block 5"},{id:commandblock_minecart,Command:"blockdata ~8 ~1 ~1 {auto:1,Command:"/kill @a[score_water_min=1000]"}"},{id:commandblock_minecart,Command:"blockdata ~8 ~ ~1 {auto:1,Command:"/effect @a[score_water_min=300] 1 3 4 true"}"},{id:commandblock_minecart,Command:"blockdata ~7 ~ ~1 {auto:1,Command:"/effect @a[score_water_min=300] 5 3 2 true"}"},{id:commandblock_minecart,Command:"blockdata ~6 ~ ~1 {auto:1,Command:"/effect @a[score_water_min=200] 3 3 2 true"}"},{id:commandblock_minecart,Command:"blockdata ~5 ~ ~1 {auto:1,Command:"/effect @a[score_water_min=200,score_water=300] 1 3 2 true"}"},{id:commandblock_minecart,Command:"blockdata ~4 ~ ~1 {auto:1,Command:"/scoreboard players set @a[score_drink_min=1] drink 0"}"},{id:commandblock_minecart,Command:"blockdata ~3 ~ ~1 {auto:1,Command:"/scoreboard players add @a[score_drink_min=1] water 10"}"},{id:commandblock_minecart,Command:"blockdata ~3 ~ ~ {auto:1,Command:"/scoreboard players set @a[score_Wdeath_min=1] Wdeath 0"}"},{id:commandblock_minecart,Command:"blockdata ~4 ~ ~ {auto:1,Command:"/scoreboard players set @a[score_Wdeath_min=1] water 100"}"},{id:commandblock_minecart,Command:"blockdata ~5 ~ ~ {auto:1,Command:"/kill @a[score_water=0]"}"},{id:commandblock_minecart,Command:"blockdata ~6 ~ ~ {auto:1,Command:"/title @a[score_water=10] actionbar [\\"\\\\u00a7c\\\\u00a7l警告: \\\\u00a74\\\\u00a7l水分不足!\\"]"}"},{id:commandblock_minecart,Command:"blockdata ~7 ~ ~ {auto:1,Command:"/effect @a[score_water=10] 2 3 2 true"}"},{id:commandblock_minecart,Command:"blockdata ~8 ~ ~ {auto:1,Command:"/effect @a[score_water=10] 9 3 0 true"}"},{id:commandblock_minecart,Command:"blockdata ~8 ~ ~-1 {auto:1,Command:"/effect @a[score_water=20,score_water_min=10] 2 3 0 true"}"},{id:commandblock_minecart,Command:"blockdata ~7 ~ ~-1 {auto:1,Command:"/scoreboard players set @a[score_waterTimer_min=100] waterTimer 0"}"},{id:commandblock_minecart,Command:"blockdata ~6 ~ ~-1 {auto:1,Command:"/scoreboard players remove @a[score_waterTimer_min=100] water 1"}"},{id:commandblock_minecart,Command:"blockdata ~5 ~ ~-1 {auto:1,Command:"/scoreboard players add @a waterTimer 1"}"},{id:commandblock_minecart,Command:"blockdata ~4 ~ ~-1 {auto:1,Command:"/execute @e[type=Item,tag=rm] ~ ~ ~ /execute @e[type=armor_stand,tag=wtmachine,r=1] ~ ~ ~ /kill @e[type=armor_stand,tag=wtmachine,r=1]"}"},{id:commandblock_minecart,Command:"blockdata ~3 ~ ~-1 {auto:1,Command:"/execute @e[type=Item,tag=rm] ~ ~ ~ /execute @e[type=armor_stand,tag=wtmachine,r=1] ~ ~ ~ /playsound minecraft:block.anvil.use block @a ~ ~ ~ 1 1 1"}"},{id:commandblock_minecart,Command:"blockdata ~3 ~-1 ~-1 {auto:1,Command:"/execute @e[type=Item,tag=rm] ~ ~ ~ /execute @e[type=armor_stand,tag=wtmachine,r=1] ~ ~ ~ /particle fireworksSpark ~ ~1.5 ~ 0 0 0 0.1 30"}"},{id:commandblock_minecart,Command:"blockdata ~4 ~-1 ~-1 {auto:1,Command:"/execute @e[type=Item,tag=rm] ~ ~ ~ /execute @e[type=armor_stand,tag=wtmachine,r=1] ~ ~ ~ /summon item ~ ~2 ~ {Item:{id:minecraft:spawn_egg,Count:1b,tag:{ench:[],EntityTag:{id:Bat},display:{Name:\\"Water_Machine\\",Lore:[\\"饮水机\\"]}}}}"}"},{id:commandblock_minecart,Command:"blockdata ~5 ~-1 ~-1 {auto:1,Command:"/execute @e[type=Item,tag=rm] ~ ~ ~ /execute @e[type=armor_stand,tag=wtmachine,r=1] ~ ~ ~ /setblock ~ ~ ~ air"}"},{id:commandblock_minecart,Command:"blockdata ~6 ~-1 ~-1 {auto:1,Command:"/execute @e[type=Item,tag=rm] ~ ~ ~ /execute @e[type=armor_stand,tag=wtmachine,r=1] ~ ~ ~ /setblock ~-1 ~1 ~ air"}"},{id:commandblock_minecart,Command:"blockdata ~7 ~-1 ~-1 {auto:1,Command:"/execute @e[type=Item,tag=rm] ~ ~ ~ /execute @e[type=armor_stand,tag=wtmachine,r=1] ~ ~ ~ /setblock ~-1 ~ ~ air"}"},{id:commandblock_minecart,Command:"blockdata ~8 ~-1 ~-1 {auto:1,Command:"/scoreboard players tag @e[type=Item] add rm {Item:{id:minecraft:tripwire_hook,tag:{display:{Name:\\"ChangeR\\",Lore:[\\"扳手\\",\\"删除饮水机\\"]}}}}"}"},{id:commandblock_minecart,Command:"blockdata ~8 ~-1 ~ {auto:1,Command:"/================================================================="}"},{id:commandblock_minecart,Command:"blockdata ~7 ~-1 ~ {auto:1,Command:"/execute @e[type=Item,score_wMachineTimer_min=100,score_wMachineTimer=101] ~ ~ ~ /tp @e[r=0,type=Item] ~ ~1.5 ~"}"},{id:commandblock_minecart,Command:"blockdata ~6 ~-1 ~ {auto:1,Command:"/scoreboard players add @e[type=Item,score_wMachineTimer_min=1] wMachineTimer 1"}"},{id:commandblock_minecart,Command:"blockdata ~5 ~-1 ~ {auto:1,Command:"/entitydata @e[type=Item,score_wMachineTimer_min=100,score_wMachineTimer=101] {Item:{id:minecraft:potion,Count:1b,Damage:0s,tag:{display:{Name:\\"水\\"},Potion:\\"minecraft:water\\"}}}"}"},{id:commandblock_minecart,Command:"blockdata ~4 ~-1 ~ {auto:1,Command:"/execute @e[type=Item,score_wMachineTimer_min=1,score_wMachineTimer=100] ~ ~ ~ /particle blockcrack ~ ~ ~ 0 0 0 0.1 10 force @a 8"}"},{id:commandblock_minecart,Command:"blockdata ~3 ~-1 ~ {auto:1,Command:"/execute @e[type=armor_stand,tag=wtmachine] ~ ~ ~ /scoreboard players add @e[type=Item,r=1,score_wMachineTimer=0] wMachineTimer 1 {Item:{id:minecraft:glass_bottle,Count:1b}}"}"},{id:commandblock_minecart,Command:"blockdata ~3 ~-1 ~1 {auto:1,Command:"/scoreboard players add @e[type=Item] wMachineTimer 0 {Item:{id:minecraft:glass_bottle,Count:1b}}"}"},{id:commandblock_minecart,Command:"blockdata ~4 ~-1 ~1 {auto:1,Command:"/kill @e[type=bat,name=Water_Machine]"}"},{id:commandblock_minecart,Command:"blockdata ~5 ~-1 ~1 {auto:1,Command:"/execute @e[type=bat,name=Water_Machine] ~ ~ ~ /setblock ~1 ~ ~ tripwire_hook 3"}"},{id:commandblock_minecart,Command:"blockdata ~6 ~-1 ~1 {auto:1,Command:"/execute @e[type=bat,name=Water_Machine] ~ ~ ~ /setblock ~ ~1 ~ stained_glass 11"}"},{id:commandblock_minecart,Command:"blockdata ~7 ~-1 ~1 {auto:1,Command:"/execute @e[type=bat,name=Water_Machine] ~ ~ ~ /setblock ~ ~ ~ iron_block"}"},{id:commandblock_minecart,Command:"blockdata ~8 ~-1 ~1 {auto:1,Command:"/execute @e[type=bat,name=Water_Machine] ~ ~ ~ /summon armor_stand ~1 ~ ~ {CustomName:\\"wtmachine\\",Invisible:1b,NoGravity:1b,Tags:[\\"wtmachine\\"]}"}"},{id:commandblock_minecart,Command:"blockdata ~8 ~-2 ~1 {auto:1,Command:"/execute @e[type=Item,score_craftItem_min=1,score_craftItem=1] ~ ~ ~ /execute @e[type=Item,r=1,score_craftItem=4,score_craftItem_min=4] ~ ~ ~ /kill @e[type=Item,r=1]"}"},{id:commandblock_minecart,Command:"blockdata ~7 ~-2 ~1 {auto:1,Command:"/execute @e[type=Item,score_craftItem_min=1,score_craftItem=1] ~ ~ ~ /execute @e[type=Item,r=1,score_craftItem=4,score_craftItem_min=4] ~ ~ ~ /playsound minecraft:block.anvil.use block @a ~ ~ ~ 1 1 1"}"},{id:commandblock_minecart,Command:"blockdata ~6 ~-2 ~1 {auto:1,Command:"/execute @e[type=Item,score_craftItem_min=1,score_craftItem=1] ~ ~ ~ /execute @e[type=Item,r=1,score_craftItem=4,score_craftItem_min=4] ~ ~ ~ /particle fireworksSpark ~ ~1.5 ~ 0 0 0 0.1 30"}"},{id:commandblock_minecart,Command:"blockdata ~5 ~-2 ~1 {auto:1,Command:"/execute @e[type=Item,score_craftItem_min=1,score_craftItem=1] ~ ~ ~ /execute @e[type=Item,r=1,score_craftItem=4,score_craftItem_min=4] ~ ~ ~ /summon Item ~ ~2 ~ {Item:{id:minecraft:tripwire_hook,Count:1b,tag:{display:{Name:\\"ChangeR\\",Lore:[\\"扳手\\",\\"删除饮水机\\"]}}}}"}"},{id:commandblock_minecart,Command:"blockdata ~4 ~-2 ~1 {auto:1,Command:"/execute @e[type=Item,score_craftItem_min=1,score_craftItem=1] ~ ~ ~ /execute @e[type=Item,r=1,score_craftItem_min=2,score_craftItem=2] ~ ~ ~ /execute @e[type=Item,r=1,score_craftItem_min=3,score_craftItem=3] ~ ~ ~ /kill @e[type=Item,r=1]"}"},{id:commandblock_minecart,Command:"blockdata ~3 ~-2 ~1 {auto:1,Command:"/execute @e[type=Item,score_craftItem_min=1,score_craftItem=1] ~ ~ ~ /execute @e[type=Item,r=1,score_craftItem_min=2,score_craftItem=2] ~ ~ ~ /execute @e[type=Item,r=1,score_craftItem_min=3,score_craftItem=3] ~ ~ ~ /playsound minecraft:block.anvil.use block @a ~ ~ ~ 1 1 1"}"},{id:commandblock_minecart,Command:"blockdata ~3 ~-2 ~ {auto:1,Command:"/execute @e[type=Item,score_craftItem_min=1,score_craftItem=1] ~ ~ ~ /execute @e[type=Item,r=1,score_craftItem_min=2,score_craftItem=2] ~ ~ ~ /execute @e[type=Item,r=1,score_craftItem_min=3,score_craftItem=3] ~ ~ ~ /particle fireworksSpark ~ ~1.5 ~ 0 0 0 0.1 30"}"},{id:commandblock_minecart,Command:"blockdata ~4 ~-2 ~ {auto:1,Command:"/execute @e[type=Item,score_craftItem_min=1,score_craftItem=1] ~ ~ ~ /execute @e[type=Item,r=1,score_craftItem_min=2,score_craftItem=2] ~ ~ ~ /execute @e[type=Item,r=1,score_craftItem_min=3,score_craftItem=3] ~ ~ ~ /summon item ~ ~2 ~ {Item:{id:minecraft:spawn_egg,Count:1b,tag:{ench:[],EntityTag:{id:Bat},display:{Name:\\"Water_Machine\\",Lore:[\\"饮水机\\"]}}}}"}"},{id:commandblock_minecart,Command:"blockdata ~5 ~-2 ~ {auto:1,Command:"/scoreboard players set @e[type=Item] craftItem 4 {Item:{id:minecraft:iron_ingot,Count:3b}}"}"},{id:commandblock_minecart,Command:"blockdata ~6 ~-2 ~ {auto:1,Command:"/scoreboard players set @e[type=Item] craftItem 3 {Item:{id:minecraft:water_bucket,Count:1b}}"}"},{id:commandblock_minecart,Command:"blockdata ~7 ~-2 ~ {auto:1,Command:"/scoreboard players set @e[type=Item] craftItem 2 {Item:{id:minecraft:redstone,Count:3b}}"}"},{id:commandblock_minecart,Command:"blockdata ~8 ~-2 ~ {auto:1,Command:"/scoreboard players set @e[type=Item] craftItem 1 {Item:{id:minecraft:iron_block,Count:1b}}"}"},{id:commandblock_minecart,Command:"blockdata ~8 ~-2 ~-1 {auto:1,Command:"/scoreboard players set @a[score_getItem_min=1] getItem 0"}"},{id:commandblock_minecart,Command:"blockdata ~7 ~-2 ~-1 {auto:1,Command:"/execute @a[score_getItem_min=1] ~ ~ ~ /tellraw @a [\\"\\\\u00a76扳手 = 1x铁块 + 3铁锭\\"]"}"},{id:commandblock_minecart,Command:"blockdata ~6 ~-2 ~-1 {auto:1,Command:"/execute @a[score_getItem_min=1] ~ ~ ~ /tellraw @a [\\"\\\\u00a76饮水机 = 1x铁块 + 3x红石 + 1x水桶\\"]"}"},{id:commandblock_minecart,Command:"blockdata ~5 ~-2 ~-1 {auto:1,Command:"/execute @a[score_getItem_min=1] ~ ~ ~ /say 你可以通过物品生成,也可以通过以下配方合成! 注:将物品丢到地上合成!"}"},{id:commandblock_minecart,Command:"blockdata ~4 ~-2 ~-1 {auto:1,Command:"/give @a[score_getItem_min=1] tripwire_hook 1 0 {display:{Name:\\"ChangeR\\",Lore:[\\"扳手\\",\\"删除饮水机\\"]}}"}"},{id:commandblock_minecart,Command:"blockdata ~3 ~-2 ~-1 {auto:1,Command:"/give @a[score_getItem_min=1] spawn_egg 1 0 {EntityTag:{id:bat},ench:[],display:{Name:\\"Water_Machine\\",Lore:[\\"饮水机\\"]}}"}"},{id:commandblock_minecart,Command:"setblock ~ ~ ~1 command_block 0 0 {Command:"fill ~ ~-3 ~-1 ~ ~ ~ air"}"},{id:commandblock_minecart,Command:"setblock ~ ~-1 ~1 redstone_block"},{id:commandblock_minecart,Command:"kill @e[type=commandblock_minecart,r=1]"}]}]}]}

使用方法:

先输入指令(废话)

图片

然后右键牌子

图片

最后duang~的一下,就出来一大堆命令方块

图片

合成表

[饮水机] 1x烈焰粉 1x绊线钩 1x水桶

(不要问我为什么饮水机要烈焰粉)

[饮水机移除工具] 1x石镐 1x火把

(不要问我为什么移除饮水机要火把)

原理

计分板: wMachineTimer、waterTimer、getItem、Wdeath、water、craftItem、drink

展开/收起
INIT: /tellraw @a ["\u00a79\u00a7l-------------------------------------------------------------"]
INIT: /tellraw @a ["\u00a79\u00a7l"]
INIT: /tellraw @a ["\u00a79\u00a7l             \u00a7a在Minecraft中喝水"]
INIT: /tellraw @a ["\u00a79\u00a7l                \u00a7cby what_name\n"]
INIT: /tellraw @a ["\u00a79\u00a7l-------------------------------------------------------------"]
INIT:/scoreboard objectives add getItem dummy
INIT:/scoreboard objectives add craftItem dummy
INIT:/scoreboard objectives add waterTimer dummy
INIT:/scoreboard objectives add wMachineTimer dummy
INIT:/scoreboard objectives add water dummy 口渴度
INIT:/scoreboard objectives add drink stat.useItem.minecraft.potion
INIT:/scoreboard objectives add Wdeath deathCount
INIT:/scoreboard players set @a water 100
INIT:/scoreboard objectives setdisplay list water
//单次执行
//===============================================================
/give @a[score_getItem_min=1] spawn_egg 1 0 {EntityTag:{id:bat},ench:[],display:{Name:"Water_Machine",Lore:["饮水机"]}}
/give @a[score_getItem_min=1] tripwire_hook 1 0 {display:{Name:"ChangeR",Lore:["扳手","删除饮水机"]}}
/execute @a[score_getItem_min=1] ~ ~ ~ /say 你可以通过物品生成,也可以通过以下配方合成! 注:将物品丢到地上合成!
/execute @a[score_getItem_min=1] ~ ~ ~ /tellraw @a ["\u00a76饮水机 = 1x铁块 + 3x红石 + 1x水桶"]
/execute @a[score_getItem_min=1] ~ ~ ~ /tellraw @a ["\u00a76扳手 = 1x铁块 + 3铁锭"]
/scoreboard players set @a[score_getItem_min=1] getItem 0
//获得物品
//===============================================================
//合成所需物品
/scoreboard players set @e[type=Item] craftItem 1 {Item:{id:minecraft:iron_block,Count:1b}}
//铁块 x1
/scoreboard players set @e[type=Item] craftItem 2 {Item:{id:minecraft:redstone,Count:3b}}
//红石 x3
/scoreboard players set @e[type=Item] craftItem 3 {Item:{id:minecraft:water_bucket,Count:1b}}
//水桶 x1
/scoreboard players set @e[type=Item] craftItem 4 {Item:{id:minecraft:iron_ingot,Count:3b}}
//铁锭 x3
//===============================================================
//合成饮水机
/execute @e[type=Item,score_craftItem_min=1,score_craftItem=1] ~ ~ ~ /execute @e[type=Item,r=1,score_craftItem_min=2,score_craftItem=2] ~ ~ ~ /execute @e[type=Item,r=1,score_craftItem_min=3,score_craftItem=3] ~ ~ ~ /summon item ~ ~2 ~ {Item:{id:minecraft:spawn_egg,Count:1b,tag:{ench:[],EntityTag:{id:Bat},display:{Name:"Water_Machine",Lore:["饮水机"]}}}}
//检测物品重叠并生成刷怪蛋物品
/execute @e[type=Item,score_craftItem_min=1,score_craftItem=1] ~ ~ ~ /execute @e[type=Item,r=1,score_craftItem_min=2,score_craftItem=2] ~ ~ ~ /execute @e[type=Item,r=1,score_craftItem_min=3,score_craftItem=3] ~ ~ ~ /particle fireworksSpark ~ ~1.5 ~ 0 0 0 0.1 30
//检测物品重叠并播放粒子效果
/execute @e[type=Item,score_craftItem_min=1,score_craftItem=1] ~ ~ ~ /execute @e[type=Item,r=1,score_craftItem_min=2,score_craftItem=2] ~ ~ ~ /execute @e[type=Item,r=1,score_craftItem_min=3,score_craftItem=3] ~ ~ ~ /playsound minecraft:block.anvil.use block @a ~ ~ ~ 1 1 1
//检测物品重叠并播放音效
/execute @e[type=Item,score_craftItem_min=1,score_craftItem=1] ~ ~ ~ /execute @e[type=Item,r=1,score_craftItem_min=2,score_craftItem=2] ~ ~ ~ /execute @e[type=Item,r=1,score_craftItem_min=3,score_craftItem=3] ~ ~ ~ /kill @e[type=Item,r=1]
//检测物品重叠并清除材料
//===============================================================
//合成扳手
/execute @e[type=Item,score_craftItem_min=1,score_craftItem=1] ~ ~ ~ /execute @e[type=Item,r=1,score_craftItem=4,score_craftItem_min=4] ~ ~ ~ /summon Item ~ ~2 ~ {Item:{id:minecraft:tripwire_hook,Count:1b,tag:{display:{Name:"ChangeR",Lore:["扳手","删除饮水机"]}}}}
//检测物品重叠并生成扳手物品
/execute @e[type=Item,score_craftItem_min=1,score_craftItem=1] ~ ~ ~ /execute @e[type=Item,r=1,score_craftItem=4,score_craftItem_min=4] ~ ~ ~ /particle fireworksSpark ~ ~1.5 ~ 0 0 0 0.1 30
//检测物品重叠并播放粒子效果
/execute @e[type=Item,score_craftItem_min=1,score_craftItem=1] ~ ~ ~ /execute @e[type=Item,r=1,score_craftItem=4,score_craftItem_min=4] ~ ~ ~ /playsound minecraft:block.anvil.use block @a ~ ~ ~ 1 1 1
//检测物品重叠并播放音效
/execute @e[type=Item,score_craftItem_min=1,score_craftItem=1] ~ ~ ~ /execute @e[type=Item,r=1,score_craftItem=4,score_craftItem_min=4] ~ ~ ~ /kill @e[type=Item,r=1]
//检测物品重叠并清除材料
//===============================================================
//生成饮水机
/execute @e[type=bat,name=Water_Machine] ~ ~ ~ /summon armor_stand ~1 ~ ~ {CustomName:"wtmachine",Invisible:1b,NoGravity:1b,Tags:["wtmachine"]}
//生成盔甲架
/execute @e[type=bat,name=Water_Machine] ~ ~ ~ /setblock ~ ~ ~ iron_block
/execute @e[type=bat,name=Water_Machine] ~ ~ ~ /setblock ~ ~1 ~ stained_glass 11
/execute @e[type=bat,name=Water_Machine] ~ ~ ~ /setblock ~1 ~ ~ tripwire_hook 3
//生成机器出体
/kill @e[type=bat,name=Water_Machine]
//清除蝙蝠
//===============================================================
//瓶子灌水
/scoreboard players add @e[type=Item] wMachineTimer 0 {Item:{id:minecraft:glass_bottle,Count:1b}}
//初始化物品计分板分数
/execute @e[type=armor_stand,tag=wtmachine] ~ ~ ~ /scoreboard players add @e[type=Item,r=1,score_wMachineTimer=0] wMachineTimer 1 {Item:{id:minecraft:glass_bottle,Count:1b}}
//检测玻璃瓶在饮水机旁并加分
/execute @e[type=Item,score_wMachineTimer_min=1,score_wMachineTimer=100] ~ ~ ~ /particle blockcrack ~ ~ ~ 0 0 0 0.1 10 force @a 8
//检测物品分数并播放粒子效果
/entitydata @e[type=Item,score_wMachineTimer_min=100,score_wMachineTimer=101] {Item:{id:minecraft:potion,Count:1b,Damage:0s,tag:{display:{Name:"水"},Potion:"minecraft:water"}}}
//检测物品分数并生成改变物品属性
/scoreboard players add @e[type=Item,score_wMachineTimer_min=1] wMachineTimer 1
//检测物品分数并加分
/execute @e[type=Item,score_wMachineTimer_min=100,score_wMachineTimer=101] ~ ~ ~ /tp @e[r=0,type=Item] ~ ~1.5 ~
//检测物品分数并传送到1.5格上方
//=================================================================
//删除饮水机
/scoreboard players tag @e[type=Item] add rm {Item:{id:minecraft:tripwire_hook,tag:{display:{Name:"ChangeR",Lore:["扳手","删除饮水机"]}}}}
//检测物品并添加tag
/execute @e[type=Item,tag=rm] ~ ~ ~ /execute @e[type=armor_stand,tag=wtmachine,r=1] ~ ~ ~ /setblock ~-1 ~ ~ air
/execute @e[type=Item,tag=rm] ~ ~ ~ /execute @e[type=armor_stand,tag=wtmachine,r=1] ~ ~ ~ /setblock ~-1 ~1 ~ air
/execute @e[type=Item,tag=rm] ~ ~ ~ /execute @e[type=armor_stand,tag=wtmachine,r=1] ~ ~ ~ /setblock ~ ~ ~ air
//删除机器本体
/execute @e[type=Item,tag=rm] ~ ~ ~ /execute @e[type=armor_stand,tag=wtmachine,r=1] ~ ~ ~ /summon item ~ ~2 ~ {Item:{id:minecraft:spawn_egg,Count:1b,tag:{ench:[],EntityTag:{id:Bat},display:{Name:"Water_Machine",Lore:["饮水机"]}}}}
//生成饮水机刷怪蛋
/execute @e[type=Item,tag=rm] ~ ~ ~ /execute @e[type=armor_stand,tag=wtmachine,r=1] ~ ~ ~ /particle fireworksSpark ~ ~1.5 ~ 0 0 0 0.1 30
//播放粒子效果
/execute @e[type=Item,tag=rm] ~ ~ ~ /execute @e[type=armor_stand,tag=wtmachine,r=1] ~ ~ ~ /playsound minecraft:block.anvil.use block @a ~ ~ ~ 1 1 1
//播放音效
/execute @e[type=Item,tag=rm] ~ ~ ~ /execute @e[type=armor_stand,tag=wtmachine,r=1] ~ ~ ~ /kill @e[type=armor_stand,tag=wtmachine,r=1]
//删除盔甲架
//===============================================================
//定时减少水分
/scoreboard players add @a waterTimer 1
/scoreboard players remove @a[score_waterTimer_min=100] water 1
/scoreboard players set @a[score_waterTimer_min=100] waterTimer 0
//===============================================================
//药水效果
/effect @a[score_water=20,score_water_min=10] 2 3 0 true
/effect @a[score_water=10] 9 3 0 true
/effect @a[score_water=10] 2 3 2 true
//负面效果
/title @a[score_water=10] actionbar ["\u00a7c\u00a7l警告: \u00a74\u00a7l水分不足!"]
//提示水分不足
/kill @a[score_water=0]
//水分不足杀死玩家
/effect @a[score_water_min=200,score_water=300] 1 3 2 true
/effect @a[score_water_min=200] 3 3 2 true
/effect @a[score_water_min=300] 5 3 2 true
/effect @a[score_water_min=300] 1 3 4 true
//正面效果
/kill @a[score_water_min=1000]
//水分过多杀死玩家
//===============================================================
//玩家死亡重置水分
/scoreboard players set @a[score_Wdeath_min=1] water 100
//设置死亡玩家的水分为100
/scoreboard players set @a[score_Wdeath_min=1] Wdeath 0
//设置死亡玩家的死亡计分板分数为0
//===============================================================
//喝水
/scoreboard players add @a[score_drink_min=1] water 10
//检测喝水并加水分
/scoreboard players set @a[score_drink_min=1] drink 0
//重置检测喝水计分板的分数

  • what_name2018-04-12

                        
    • what_name2018-04-21

      这是一条回复