您的當前位置:游戲狗 > 我的世界 > 正文

          我的世界命令方塊怎么一個指令實現多個目的

          2015-12-31 10:13:58來源:網友分享編輯:網友分享

          我的世界命令方塊怎么一個指令實現多個目的?不少的玩家看過命令方塊有如此強大的功能,肯定忍不住要問,那怎么用了一條指令實現同時執行多條命令的效果呢?那就要用到1.8版本中的tellraw指令了。

          一個指令實現多個目的:

          首先,大家可以試一下:放一個指令方塊,然后輸入這條指令:

          /summon MinecartCommandBlock ~ ~4 ~-0.1

          {Command:"/fill ~ ~-1 ~ ~ ~-1 ~minecraft:air 0 replace",Riding:

          {id:"MinecartCommandBlock",Command:"/kill @e[type=Item,r=7]",Riding:

          {id:"MinecartCommandBlock",Command:"/tellraw @a {text:"Action 15",color:aqua}",Riding:

          {id:"MinecartCommandBlock",Command:"/tellraw @a {text:"Action 14",color:aqua}",Riding:

          {id:"MinecartCommandBlock",Command:"/tellraw @a {text:"Action 13",color:aqua}",Riding:

          {id:"MinecartCommandBlock",Command:"/tellraw @a {text:"Action 12",color:aqua}",Riding:

          {id:"MinecartCommandBlock",Command:"/tellraw @a {text:"Action 11",color:aqua}",Riding:

          {id:"MinecartCommandBlock",Command:"/tellraw @a {text:"Action 10",color:aqua}",Riding:

          {id:"MinecartCommandBlock",Command:"/tellraw @a {text:"Action 8",color:aqua}",Riding:

          {id:"MinecartCommandBlock",Command:"/tellraw @a {text:"Action 7",color:aqua}",Riding:

          {id:"MinecartCommandBlock",Command:"/tellraw @a {text:"Action 7",color:aqua}",Riding:

          {id:"MinecartCommandBlock",Command:"/tellraw @a {text:"Action 6",color:aqua}",Riding:

          {id:"MinecartCommandBlock",Command:"/tellraw @a {text:"Action 5",color:aqua}",Riding:

          {id:"MinecartCommandBlock",Command:"/tellraw @a {text:"Action 4",color:aqua}",Riding:

          {id:"MinecartCommandBlock",Command:"/tellraw @a {text:"Action 3",color:aqua}",Riding:

          {id:"MinecartCommandBlock",Command:"/tellraw @a {text:"Action 2",color:aqua}",Riding:

          {id:"MinecartCommandBlock",Command:"/tellraw @a {text:"Action 1",color:aqua}",Riding:

          {id:"MinecartCommandBlock",Command:"/kill @e[type=Item,r=7]",Riding:

          {id:"MinecartCommandBlock",Command:"/setblock ~ ~ ~-1 minecraft:lava 7 replace",Riding:

          {id:"FallingSand",Time:1,Block:"minecraft:activator_rail",Riding:

          {id:"FallingSand",Block:"minecraft:redstone_block",Time:1,Riding:

          {id:"Item",Motion:[0.0,0.0,-0.1],Age:5996}}}}}}}}}}}}}}}}}}}}}}

          這條指令會使用/tellraw,在玩家屏幕里數到15。

          指令的核心是使用MinecartCommandBlock。這個就是指令方塊礦車的意思。之后大家看下面的

          {id:"MinecartCommandBlock",Command:"/setblock ~ ~ ~-1 minecraft:lava 7 replace",Riding:

          {id:"FallingSand",Time:1,Block:"minecraft:activator_rail",Riding:

          {id:"FallingSand",Block:"minecraft:redstone_block",Time:1,Riding:

          {id:"Item",Motion:[0.0,0.0,-0.1],Age:5996}}}}}}}}}}}}}}}}}}}}}}

          這個意思就是,先刷出一個壽命很短的掉落物品,之后上面騎著紅石塊掉落沙,再在上面又騎著激活鐵軌掉落沙。之后在斜面刷出巖漿方塊。巖漿的原因是因為,刷出的是指令方塊礦車。但是指令方塊礦車在激活鐵軌上面會形成脈沖,所以要巖漿把礦車燒掉。大家看見這整條指令都是在指令方塊的上方實現,所以需要一個物品。因為有紅石塊掉落沙,所以如果掉到指令方塊上面的話會導致指令方塊再次激活,于是這里是用掉落物品來防止指令方塊再次激活。

          之后有暴多的MinecartCommandBlock騎來騎去,這些就是指令執行的地方:

          “{id:"MinecartCommandBlock",Command:"/tellraw @a {text:"Action 15",color:aqua}",Riding:

          {id:"MinecartCommandBlock",Command:"/tellraw @a {text:"Action 14",color:aqua}",Riding:

          {id:"MinecartCommandBlock",Command:"/tellraw @a {text:"Action 13",color:aqua}",Riding:

          {id:"MinecartCommandBlock",Command:"/tellraw @a {text:"Action 12",color:aqua}",Riding:

          {id:"MinecartCommandBlock",Command:"/tellraw @a {text:"Action 11",color:aqua}",Riding:

          {id:"MinecartCommandBlock",Command:"/tellraw @a {text:"Action 10",color:aqua}",Riding:

          {id:"MinecartCommandBlock",Command:"/tellraw @a {text:"Action 8",color:aqua}",Riding:

          {id:"MinecartCommandBlock",Command:"/tellraw @a {text:"Action 7",color:aqua}",Riding:

          {id:"MinecartCommandBlock",Command:"/tellraw @a {text:"Action 7",color:aqua}",Riding:

          {id:"MinecartCommandBlock",Command:"/tellraw @a {text:"Action 6",color:aqua}",Riding:

          {id:"MinecartCommandBlock",Command:"/tellraw @a {text:"Action 5",color:aqua}",Riding:

          {id:"MinecartCommandBlock",Command:"/tellraw @a {text:"Action 4",color:aqua}",Riding:

          {id:"MinecartCommandBlock",Command:"/tellraw @a {text:"Action 3",color:aqua}",Riding:

          {id:"MinecartCommandBlock",Command:"/tellraw @a {text:"Action 2",color:aqua}",Riding:

          {id:"MinecartCommandBlock",Command:"/tellraw @a {text:"Action 1",color:aqua}",Riding:”。

          之后大家看最上面的

          “{Command:"/fill ~ ~-1 ~ ~ ~-1 ~ minecraft:air 0 replace",Riding:

          {id:"MinecartCommandBlock",Command:"/kill @e[type=Item,r=7]",Riding:”

          這個就是清空系統。意思是,等指令方塊全部都激活完畢后,那么指令方塊會自毀自己。這樣子就不會留下任何指令方塊/紅石的痕跡。但是有時還是會有一些礦車掉落品落下來,到時玩家撿起來就行了。

          以上就是指令的基本部位。之后玩家可以只激活一條指令:

          /summon MinecartCommandBlock ~ ~4 ~-0.1

          {Command:"",Riding:

          {id:"MinecartCommandBlock",Command:"/kill @e[type=Item,r=7]",Riding:

          {id:"MinecartCommandBlock",Command:"/tellraw @a {text:"Action",color:red}",Riding:

          {id:"MinecartCommandBlock",Command:"/setblock ~ ~ ~-1 minecraft:lava 7 replace",Riding:

          {id:"FallingSand",Time:1,Block:"minecraft:activator_rail",Riding:

          {id:"FallingSand",Block:"minecraft:redstone_block",Time:1,Riding:

          {id:"Item",Motion:[0.0,0.0,-0.1],Age:5996}}}}}}}

          大家看見原理還是和上面的一樣,但是內容少了一點。大家在看中間一行:

          “{id:"MinecartCommandBlock",Command:"/tellraw @a {text:"Action",color:red}",Riding:”

          這里就是激活的指令。所以,激活這整條指令后會有/tellraw指令告訴玩家“Action”。

          但是上面沒有加入“{Command:"/fill ~ ~-1 ~ ~ ~-1 ~ minecraft:air 0 replace",Riding:”,這是因為上面的指令方塊礦車碟的比較少,所以會導致錯亂,清空系統先激活。這樣子整個機器就壞了。所以大家如果要使用這種方法激活多條指令的話,最起碼也要10+條。

          這些就是指令的核心部位。之后玩家可以自行自定義。

          以上這條指令都是用的/fill和/setblock,最難的部位是確保坐標的正確。

          小編點評:一條指令實現多個指令,這種利用方式利用/tellraw指令實現的。一般存在于一鍵生成某個大型的物件會用到。游戲狗我的世界專區中有很多的大神命令方塊一鍵生成的作品,代碼中就用了這種思路來實現的,一條指令實現了多個包含的指令。

          相關新聞

          ?游戲狗 Gamedog.cn 北京手游天下數字娛樂科技股份有限公司 版權所有
          安全百店 ANVA自律組
          游戲狗微信關注游戲狗訂閱號
          主站蜘蛛池模板: 亚洲精品无码专区在线播放| 国产成人精品亚洲一区| 久久久无码精品亚洲日韩蜜桃| 浮力影院国产第一页| 国产乱人伦AV麻豆网| 3d动漫精品啪啪一区二区免费| 成年人网站在线免费观看| 亚洲专区中文字幕| 男人j进女人p一进一出视频| 国产亚洲欧美日韩精品一区二区| 6080yy免费毛片一级新视觉| 岛国大片在线播放| 久久天堂夜夜一本婷婷麻豆| 欧美日韩午夜视频| 公侵犯玩弄漂亮人妻优| 韩国本免费一级毛片免费| 国产精品美女久久久久AV福利| 三级中文有码中文字幕| 日韩高清免费在线观看| 亚洲熟妇av一区二区三区下载| 美国式禁忌矿桥| 国产愉拍精品视频手机| 97人伦影院a级毛片| 性高朝久久久久久久| 久久免费视频3| 欧美三级中文字幕完整版| 人人玩人人添人人澡mp4| 老子午夜伦不卡影院| 国产极品视觉盛宴| 91成人午夜性a一级毛片| 好男人www社区| 丰满的己婚女人| 日韩精品欧美高清区| 亚洲成a人片在线看| 男人插女人视频软件| 四虎国产欧美成人影院| 麻豆AV一区二区三区久久| 国产精品免费精品自在线观看| swag在线播放| 成在人线AV无码免费高潮喷水 | 亚洲国产精品无码成人片久久|