跑跑车首页

当前位置:首页攻略秘籍单机攻略 → 我的世界命令方块教程1.9土豆烧烤机的制作

我的世界命令方块教程1.9土豆烧烤机的制作

作者:佚名来源:本站整理 发表时间:2015/10/21 9:52:37 评论(0)

小编为大家带来了《我的世界》命令方块教程1.9土豆烧烤机的制作,众所周知,在Minecraft原版中,你需要将土豆放入熔炉才能烤制;放入火中会直接烧没——这不科学,于是我想,能不能让土豆能够在火里烤熟呢,于是使用命令方块制作了这个土豆烧烤机制作。

① 灵感来源

众所周知,在Minecraft原版中,你需要将土豆放入熔炉才能烤制;放入火中会直接烧没——这不科学!

于是我想,能不能让土豆能够在火里烤熟呢?

灵感Get!

② 使用方法

先随便在哪里点个火~

 

然后,将生土豆直接扔进火里!

 

这个时候,在火中会产生火花飞溅的效果,只需要耐心等待~

 

过10秒后,会产生一次大的火花效果,此时靠近火堆可以捡起烤熟的土豆啦~如果还没烤好就捡起的话土豆会依然是生的哟~

 

 

接下来,如果你没有捡起烤熟的土豆的话,它会继续燃烧……10秒后它会变成木炭……

 

功能基本上就是这么多~

③ 原理

下面是系统的一个部分,其他部分可以类推~

初始化部分:

scoreboard objectives add PotatoTime dummy

没啥好说的,就是新建一个计分板目标PotatoTime。

高频部分(按顺序执行):

scoreboard players add @e PotatoTime 1 {Item:{id:"minecraft:potato"}}

给所有土豆物品的PotatoTime加1。

scoreboard players set @e PotatoTime 0 {Item:{id:\"minecraft:potato\"},Fire:-1s}

将没有着火都土豆物品的PotatoTime设为0。

entitydata @e[score_PotatoTime_min=1] {Invulnerable:1b}

将PotatoTime大于等于1的实体(也就是着火的土豆物品)设为无敌。

entitydata @e[score_PotatoTime=0] {Invulnerable:0b}

将PotatoTime为0的实体(也就是未着火的土豆物品)设为不无敌。

execute @e[score_PotatoTime_min=1] ~ ~ ~ particle lava ~ ~ ~ 0 0 0 1 1

在PotatoTime大于等于的实体(也就是着火的土豆物品)的位置上生成lava粒子。

entitydata @e[score_PotatoTime_min=200] {Item:{id:"minecraft:baked_potato",Damage:1s}}

将PotatoTime大于等于200的实体(也就是已经烧了10秒的土豆物品)更换为熟土豆。

execute @e[score_PotatoTime_min=200] ~ ~ ~ particle lava ~ ~ ~ 0 0 0 1 128

在PotatoTime大于等于200的实体(也就是已经烧了10秒的土豆物品)的位置上生成大量lava粒子。

scoreboard players reset @e[score_PotatoTime_min=200] PotatoTime

将PotatoTime大于等于200的实体(也就是已经烧了10秒的土豆物品)的PotatoTime重置。

其它的几种变化只需要改一下计分板目标的名称、物品的标签以及时间的上限即可~

为了方便制作使用了1.9的新CB,改动以后应该也可以在1.8中使用~

④ OCS

下面的OCS是自己写的程序生成的

summon FallingSand ~ ~1 ~ {Time:1,Tile:137,TileEntityData:{Command:fill ~ ~-3 ~ ~ ~ ~ air},Riding:{id:FallingSand,Time:1,Tile:137,TileEntityData:{Command:summon MinecartCommandBlock ~ ~-2 ~ {Command:kill @e[r=1,type=MinecartCommandBlock],Riding:{id:MinecartCommandBlock,Command:setblock ~ ~2 ~ redstone_block,Riding:{id:MinecartCommandBlock,Command:"setblock ~11 ~ ~1 chain_command_block 5 replace {auto:1b,Command:scoreboard players reset @e[score_CoalTime_min=200] CoalTime}",Riding:{id:MinecartCommandBlock,Command:"setblock ~10 ~ ~1 chain_command_block 5 replace {auto:1b,Command:execute @e[score_CoalTime_min=200] ~ ~ ~ particle lava ~ ~ ~ 0 0 0 1 128}",Riding:{id:MinecartCommandBlock,Command:"setblock ~9 ~ ~1 chain_command_block 5 replace {auto:1b,Command:entitydata @e[score_CoalTime_min=200] {Item:{id:\\\"minecraft:coal\\\",Damage:1s}}}",Riding:{id:MinecartCommandBlock,Command:"setblock ~8 ~ ~1 chain_command_block 5 replace {auto:1b,Command:execute @e[score_CoalTime_min=1] ~ ~ ~ particle lava ~ ~ ~ 0 0 0 1 1}",Riding:{id:MinecartCommandBlock,Command:"setblock ~7 ~ ~1 chain_command_block 5 replace {auto:1b,Command:entitydata @e[score_CoalTime=0] {Invulnerable:0b}}",Riding:{id:MinecartCommandBlock,Command:"setblock ~6 ~ ~1 chain_command_block 5 replace {auto:1b,Command:entitydata @e[score_CoalTime_min=1] {Invulnerable:1b}}",Riding:{id:MinecartCommandBlock,Command:"setblock ~5 ~ ~1 chain_command_block 5 replace {auto:1b,Command:scoreboard players set @e CoalTime 0 {Item:{id:\\\"minecraft:coal\\\"},Fire:-1s}}",Riding:{id:MinecartCommandBlock,Command:"setblock ~4 ~ ~1 repeating_command_block 5 replace {auto:1b,Command:scoreboard players add @e CoalTime 1 {Item:{id:\\\"minecraft:coal\\\"}}}",Riding:{id:MinecartCommandBlock,Command:"setblock ~11 ~ ~ chain_command_block 5 replace {auto:1b,Command:scoreboard players reset @e[score_BakedPotatoTime_min=200] BakedPotatoTime}",Riding:{id:MinecartCommandBlock,Command:"setblock ~10 ~ ~ chain_command_block 5 replace {auto:1b,Command:execute @e[score_BakedPotatoTime_min=200] ~ ~ ~ particle lava ~ ~ ~ 0 0 0 1 128}",Riding:{id:MinecartCommandBlock,Command:"setblock ~9 ~ ~ chain_command_block 5 replace {auto:1b,Command:entitydata @e[score_BakedPotatoTime_min=200] {Item:{id:\\\"minecraft:coal\\\",Damage:1s}}}",Riding:{id:MinecartCommandBlock,Command:"setblock ~8 ~ ~ chain_command_block 5 replace {auto:1b,Command:execute @e[score_BakedPotatoTime_min=1] ~ ~ ~ particle lava ~ ~ ~ 0 0 0 1 1}",Riding:{id:MinecartCommandBlock,Command:"setblock ~7 ~ ~ chain_command_block 5 replace {auto:1b,Command:entitydata @e[score_BakedPotatoTime=0] {Invulnerable:0b}}",Riding:{id:MinecartCommandBlock,Command:"setblock ~6 ~ ~ chain_command_block 5 replace {auto:1b,Command:entitydata @e[score_BakedPotatoTime_min=1] {Invulnerable:1b}}",Riding:{id:MinecartCommandBlock,Command:"setblock ~5 ~ ~ chain_command_block 5 replace {auto:1b,Command:scoreboard players set @e BakedPotatoTime 0 {Item:{id:\\\"minecraft:baked_potato\\\"},Fire:-1s}}",Riding:{id:MinecartCommandBlock,Command:"setblock ~4 ~ ~ repeating_command_block 5 replace {auto:1b,Command:scoreboard players add @e BakedPotatoTime 1 {Item:{id:\\\"minecraft:baked_potato\\\"}}}",Riding:{id:MinecartCommandBlock,Command:"setblock ~11 ~ ~-1 chain_command_block 5 replace {auto:1b,Command:scoreboard players reset @e[score_PotatoTime_min=200] PotatoTime}",Riding:{id:MinecartCommandBlock,Command:"setblock ~10 ~ ~-1 chain_command_block 5 replace {auto:1b,Command:execute @e[score_PotatoTime_min=200] ~ ~ ~ particle lava ~ ~ ~ 0 0 0 1 128}",Riding:{id:MinecartCommandBlock,Command:"setblock ~9 ~ ~-1 chain_command_block 5 replace {auto:1b,Command:entitydata @e[score_PotatoTime_min=200] {Item:{id:\\\"minecraft:baked_potato\\\",Damage:1s}}}",Riding:{id:MinecartCommandBlock,Command:"setblock ~8 ~ ~-1 chain_command_block 5 replace {auto:1b,Command:execute @e[score_PotatoTime_min=1] ~ ~ ~ particle lava ~ ~ ~ 0 0 0 1 1}",Riding:{id:MinecartCommandBlock,Command:"setblock ~7 ~ ~-1 chain_command_block 5 replace {auto:1b,Command:entitydata @e[score_PotatoTime=0] {Invulnerable:0b}}",Riding:{id:MinecartCommandBlock,Command:"setblock ~6 ~ ~-1 chain_command_block 5 replace {auto:1b,Command:entitydata @e[score_PotatoTime_min=1] {Invulnerable:1b}}",Riding:{id:MinecartCommandBlock,Command:"setblock ~5 ~ ~-1 chain_command_block 5 replace {auto:1b,Command:scoreboard players set @e PotatoTime 0 {Item:{id:\\\"minecraft:potato\\\"},Fire:-1s}}",Riding:{id:MinecartCommandBlock,Command:"setblock ~4 ~ ~-1 repeating_command_block 5 replace {auto:1b,Command:scoreboard players add @e PotatoTime 1 {Item:{id:\\\"minecraft:potato\\\"}}}",Riding:{id:MinecartCommandBlock,Command:"setblock ~2 ~ ~ wall_sign 4 replace {Text1:\\\"{\\\\\\\"text\\\\\\\":\\\\\\\"----------------\\\\\\\",\\\\\\\"bold\\\\\\\":true}\\\",Text2:\\\"{\\\\\\\"text\\\\\\\":\\\\\\\"Clean Up\\\\\\\",\\\\\\\"color\\\\\\\":\\\\\\\"red\\\\\\\",\\\\\\\"bold\\\\\\\":true,\\\\\\\"clickEvent\\\\\\\":{\\\\\\\"action\\\\\\\":\\\\\\\"run_command\\\\\\\",\\\\\\\"value\\\\\\\":\\\\\\\"fill ~ ~-1 ~-2 ~12 ~1 ~2 air 0 replace\\\\\\\"}}\\\",Text3:\\\"{\\\\\\\"text\\\\\\\":\\\\\\\"\\\\\\\"}\\\",Text4:\\\"{\\\\\\\"text\\\\\\\":\\\\\\\"----------------\\\\\\\",\\\\\\\"bold\\\\\\\":true}\\\",}",Riding:{id:MinecartCommandBlock,Command:"fill ~3 ~1 ~-2 ~12 ~1 ~2 stained_hardened_clay 9 replace ",Riding:{id:MinecartCommandBlock,Command:"fill ~3 ~-1 ~-2 ~12 ~-1 ~2 stained_hardened_clay 9 replace ",Riding:{id:MinecartCommandBlock,Command:"fill ~3 ~-1 ~-2 ~12 ~1 ~2 stained_glass 0 hollow ",Riding:{id:MinecartCommandBlock,Command:"scoreboard objectives add CoalTime dummy",Riding:{id:MinecartCommandBlock,Command:"scoreboard objectives add BakedPotatoTime dummy",Riding:{id:MinecartCommandBlock,Command:"scoreboard objectives add PotatoTime dummy"}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},Riding:{id:FallingSand,Time:1,Tile:152,Riding:{id:FallingSand,Time:1,Tile:137,TileEntityData:{Command:setblock ~ ~ ~ activator_rail}}}}}

使用方法:复制进普通命令方块,在旁边放置一个红石块,等候几秒即可。


玩家评论
我要点评

网名 注:您的评论需要经过审核才会显示出来。

已有 0 位玩家参与点评
下载排行