我的世界命令方塊教程1.9土豆燒烤機的制作
小編為大家?guī)砹恕段业氖澜纭访罘綁K教程1.9土豆燒烤機的制作,眾所周知,在Minecraft原版中,你需要將土豆放入熔爐才能烤制;放入火中會直接燒沒——這不科學,于是我想,能不能讓土豆能夠在火里烤熟呢,于是使用命令方塊制作了這個土豆燒烤機制作。
① 靈感來源
眾所周知,在Minecraft原版中,你需要將土豆放入熔爐才能烤制;放入火中會直接燒沒——這不科學!
于是我想,能不能讓土豆能夠在火里烤熟呢?
靈感Get!
② 使用方法
先隨便在哪里點個火~
然后,將生土豆直接扔進火里!
這個時候,在火中會產(chǎn)生火花飛濺的效果,只需要耐心等待~
過10秒后,會產(chǎn)生一次大的火花效果,此時靠近火堆可以撿起烤熟的土豆啦~如果還沒烤好就撿起的話土豆會依然是生的喲~
接下來,如果你沒有撿起烤熟的土豆的話,它會繼續(xù)燃燒……10秒后它會變成木炭……
功能基本上就是這么多~
③ 原理
下面是系統(tǒng)的一個部分,其他部分可以類推~
初始化部分:
scoreboard objectives add PotatoTime dummy
沒啥好說的,就是新建一個計分板目標PotatoTime。
高頻部分(按順序執(zhí)行):
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的實體(也就是已經(jīng)燒了10秒的土豆物品)更換為熟土豆。
execute @e[score_PotatoTime_min=200] ~ ~ ~ particle lava ~ ~ ~ 0 0 0 1 128
在PotatoTime大于等于200的實體(也就是已經(jīng)燒了10秒的土豆物品)的位置上生成大量lava粒子。
scoreboard players reset @e[score_PotatoTime_min=200] PotatoTime
將PotatoTime大于等于200的實體(也就是已經(jīng)燒了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}}}}}
使用方法:復制進普通命令方塊,在旁邊放置一個紅石塊,等候幾秒即可。
網(wǎng)名 注:您的評論需要經(jīng)過審核才會顯示出來。提交評論
查看所有0條評論>>