我的世界躲貓貓方塊怎么做?一個(gè)能自動(dòng)對(duì)整方塊的實(shí)體并且可以站上去的,很多玩家都在問(wèn)固定版躲貓貓方塊怎么做,接下來(lái)西西就給大家?guī)?lái)的是躲貓貓方塊命令教程攻略!
躲貓貓方塊命令教程
效果圖
圖片我分為2張(點(diǎn)擊圖片可查看動(dòng)圖)
原理
主要還是要用潛影貝
因?yàn)檫@是唯一 一個(gè)能自動(dòng)對(duì)整方塊的實(shí)體并且可以站上去的
指令
左邊命令
1.execute @a[tag=duo] ~ ~ ~ /summon minecraft:falling_block ~ ~ ~ {Block:"minecraft:stone",Data:0,Time:0,NoGravity:1}
2.effect @a[tag=duo] 14 1 1 true
3.scoreboard teams join duo @a
4.scoreboard teams join duo @e[type=shulker]
5.effect @e[type=shulker] 14 1 99 true
6./clear @a minecraft:shulker_shell 0 1000
右邊命令
1.execute @a[score_duo_min=1,score_duo=1,tag=duo] ~ ~ ~ /summon minecraft:shulker ~ ~ ~ {Color:7,CustomName:123,Health:1,Fire:1277951,Silent:1,Invulnerable:1,NoAI:1,team:duo}
2.scoreboard players set @a[score_duo_min=1,score_duo=1,tag=duo] duo 2
3./scoreboard players add @a[score_duo_min=2] mao 1
4.execute @a[score_mao=2] ~ ~ ~ /tp @a[score_duo_min=2,tag=duo] @e[type=shulker,c=1,r=1]
5.execute @a[score_duo_min=2] ~ ~ ~ /effect @a[score_duo_min=2,tag=duo] 2 1 20 true
6.execute @a[score_duo_min=2] ~ ~ ~ /teleport @a[score_duo_min=2,tag=duo] ~ ~ ~
7.scoreboard players set @a[score_duo_min=3] mao 0
8.execute @a[score_duo_min=3] ~ ~ ~ /kill @e[type=shulker,c=1,r=1]
9.scoreboard players set @a[score_duo_min=3] duo 0
添加計(jì)分板
/scoreboard objectives add duo stat.useItem.minecraft.carrot_on_a_stick
/scoreboard objectives add mao dummy
添加隊(duì)伍
/scoreboard teams add duo
/scoreboard teams option duo collisionRule pushOwnTeam
然后你只需要改一改你的
/summon minecraft:falling_block ~ ~ ~ {Block:"minecraft:XXX",Data:0,Time:0,NoGravity:1}
輸入
/scoreboard players tag @p add duo
再右鍵釣魚(yú)竿固定再按一下解除固定
解除變身
/scoreboard players tag @p remove duo
具體原理【你如果不想看就不看】
讓指定tag玩家右鍵胡蘿卜竿時(shí)候生成一直無(wú)敵不會(huì)動(dòng)隱身的潛影貝
然后只TP一次到潛影貝給予玩家緩慢效果和/teleport指令
再按一次胡蘿卜竿讓把潛影貝kill并且把所有躲貓貓的分?jǐn)?shù)清0
BUG:小于潛影貝的方塊會(huì)出現(xiàn)潛影貝里面的發(fā)射者