生肖时时彩的购买
我的世界官方合作專區
當前位置:高手游首頁>我的世界專區>手游攻略>怎么變僵尸體質 僵尸體質代碼一覽

怎么變僵尸體質 僵尸體質代碼一覽

2018-04-17  來自:游訊網  是倩倩啊
全文導讀 近期有大神玩家編寫了一段把自己變成僵尸的代碼,感興趣的小伙伴們快來試試吧!

近日有大神玩家編寫了一段把自己變成僵尸體質的代碼,下面小編就為大家分享一下吧。

今天給大家帶來的是讓玩家在日照下燃燒的命令

效果如下:

當玩家上方有方塊時(從頭部一直到255格高),陽光被遮蔽,不會燃燒。一旦沒有方塊遮蔽,玩家開始燃燒。

游民星空

下雨天不會燃燒

游民星空

戴帽子也不會燃燒(鎖鏈帽子除外,因為擋不住陽光)

游民星空

一旦失去帽子還是會燃燒。

基本原理:

讓玩家在陽光下燃燒首先大多數人想到了陽光傳感器...但是讓玩家頭頂一個陽光傳感器是不現實的。

所以我們需要多條件判定玩家是否被光照。

首先需要判定時間是否是白天,之后需要判斷天氣是否是晴天,滿足上述兩個條件之后,再執行后續的判斷,判斷玩家是否帶有帽子可以來探測玩家103號物品欄,最后再判斷玩家頭頂到255格方塊中非空氣的方塊數量。

下面給上OOC代碼

/summon falling_block ~ ~1.5 ~ {Time:1,Block:"minecraft:redstone_block",Motion:[0d,-1d,0d],Passengers:[{id:falling_block,Time:1,Block:"minecraft:activator_rail",Passengers:[{id:commandblock_minecart,Command:"blockdata ~ ~-2 ~ {auto:0b,Command:\"\"}"},{id:commandblock_minecart,Command:"/scoreboard objectives add time dummy"},{id:commandblock_minecart,Command:"/scoreboard objectives add time2 dummy"},{id:commandblock_minecart,Command:"/scoreboard objectives add rain dummy"},{id:commandblock_minecart,Command:"/scoreboard objectives add sun dummy"},{id:commandblock_minecart,Command:"/scoreboard objectives add head dummy"},{id:commandblock_minecart,Command:"/summon armor_stand ~ ~ ~ {CustomName:\"time\",CustomNameVisible:1b,NoGravity:0,Invisible:1}"},{id:commandblock_minecart,Command:"/summon armor_stand ~ ~ ~1 {CustomName:\"24000\",CustomNameVisible:1b,NoGravity:0,Invisible:1}"},{id:commandblock_minecart,Command:"/scoreboard players set @e[name=time] time 0"},{id:commandblock_minecart,Command:"/scoreboard players set @e[name=24000] time 24000"},{id:commandblock_minecart,Command:"setblock ~2 ~30 ~0 chain_command_block 1 replace {Command:\"/kill @e[type=small_fireball,score_time_min=100]\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~29 ~0 chain_command_block 1 replace {Command:\"/scoreboard players add @e[type=small_fireball] time 1\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~28 ~0 chain_command_block 1 replace {Command:\"/scoreboard players set @a[score_sun_min=1] time 98\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~27 ~0 chain_command_block 1 replace {Command:\"/scoreboard players set @a[score_head_min=1] time 98\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~26 ~0 chain_command_block 1 replace {Command:\"/scoreboard players set @a[score_time_min=101] time 1\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~25 ~0 chain_command_block 1 replace {Command:\"/scoreboard players add @a[score_sun=0,score_head=0,team=!op] time 1\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~24 ~0 chain_command_block 1 replace {Command:\"/execute @a[score_sun=0,score_head=0,team=!op,score_time_min=99,score_time=99] ~ ~ ~ /summon minecraft:small_fireball ~ ~0.1 ~ {direction:[0.0,0.0,0.0],power:[0.0,0.9,0.0]}\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~23 ~0 chain_command_block 1 replace {Command:\"effect @a[score_sun=0,team=!op,score_head=0,score_time_min=99,score_time=99] minecraft:instant_health 1 0\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~22 ~0 chain_command_block 1 replace {Command:\"/execute @a ~ ~ ~ /clone ~ ~1 ~ ~ 255 ~ ~ ~1 ~ masked force\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~21 ~0 chain_command_block 1 replace {Command:\"/scoreboard players remove @a[score_head_min=1] head 1\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~20 ~0 chain_command_block 1 replace {Command:\"/scoreboard players set @a head 2 {Inventory:[{id:\\\"minecraft:pumpkin\\\",Slot:103b}]}\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~19 ~0 chain_command_block 1 replace {Command:\"/scoreboard players set @a head 2 {Inventory:[{id:\\\"minecraft:leather_helmet\\\",Slot:103b}]}\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~18 ~0 chain_command_block 1 replace {Command:\"/scoreboard players set @a head 2 {Inventory:[{id:\\\"minecraft:skull\\\",Slot:103b}]}\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~17 ~0 chain_command_block 1 replace {Command:\"/scoreboard players set @a head 2 {Inventory:[{id:\\\"minecraft:diamond_helmet\\\",Slot:103b}]}\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~16 ~0 chain_command_block 1 replace {Command:\"/scoreboard players set @a head 2 {Inventory:[{id:\\\"minecraft:golden_helmet\\\",Slot:103b}]}\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~15 ~0 chain_command_block 1 replace {Command:\"/scoreboard players set @a head 2 {Inventory:[{id:\\\"minecraft:iron_helmet\\\",Slot:103b}]}\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~13 ~0 chain_command_block 1 replace {Command:\"testfor @e[tag=!rain,score_time_min=0,score_time=12567,name=time,type=armor_stand]\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~12 ~0 chain_command_block 1 replace {Command:\"/execute @e[name=time,score_time2_min=12568,score_time2=12568] ~ ~ ~ /tellraw @a {\\\"text\\\":\\\"\\\",\\\"extra\\\":[{\\\"text\\\":\\\"夜幕降臨,太陽的威脅不復存在了\\\",\\\"color\\\":\\\"blue\\\",\\\"bold\\\":true}]}\",auto:1b}"},{id:commandblock_minecart,Command:"setblock~2 ~11 ~0 chain_command_block 1 replace {Command:\"/execute @e[name=time,score_time2_min=1,score_time2=1] ~ ~ ~ /tellraw @a {\\\"text\\\":\\\"\\\",\\\"extra\\\":[{\\\"text\\\":\\\"太陽升起,耀眼的陽光將對你造成灼燒\\\",\\\"color\\\":\\\"red\\\",\\\"bold\\\":true}]}\",auto:1b}"},{id:commandblock_minecart,Command:"setblock~2 ~10 ~0 chain_command_block 1 replace {Command:\"/execute @a[tag=!game2] ~ ~ ~ scoreboard players tag @p add game\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~9 ~0 chain_command_block 1 replace {Command:\"/execute @a[tag=!game2] ~ ~ ~ scoreboard players set @p head 0\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~8 ~0 chain_command_block 1 replace {Command:\"/execute @a[tag=!game2] ~ ~ ~ /stats entity @a set AffectedBlocks @p sun\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~7 ~0 chain_command_block 1 replace {Command:\"/execute @a[tag=!game2] ~ ~ ~ scoreboard players add @p sun 0\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~6 ~0 chain_command_block 1 replace {Command:\"/scoreboard players tag @e[name=time,type=armor_stand] remove rain {Fire:20s}\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~5 ~0 chain_command_block 1 replace {Command:\"/scoreboard players tag @e[name=time,score_rain_min=19,score_rain=19,type=armor_stand] add rain {Fire:-1s}\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~4 ~0 chain_command_block 1 replace {Command:\"/scoreboard players tag @e[name=time,score_rain_min=19,score_rain=19,type=armor_stand] add rain {Fire:0s}\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~3 ~0 chain_command_block 1 replace {Command:\"/entitydata @e[name=time,score_rain_min=20,type=armor_stand] {Fire:25s}\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~2 ~0 chain_command_block 1 replace {Command:\"/scoreboard players set @e[name=time,score_rain_min=21,type=armor_stand] rain 0\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~1 ~0 chain_command_block 1 replace {Command:\"/scoreboard players add @e[name=time,type=armor_stand] rain 1\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~0 ~0 chain_command_block 1 replace {Command:\"/scoreboard players operation @e[name=time,c=1,type=armor_stand] time2 %= @e[name=24000,c=1,type=armor_stand] time\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~-1 ~0 chain_command_block 1 replace {Command:\"/scoreboard players operation @e[name=time,c=1,type=armor_stand] time2 = @e[name=time,c=1,type=armor_stand] time\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~14 ~0 repeating_command_block 9 replace {Command:\"\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~-2 ~0 repeating_command_block 1 replace {Command:\"/execute @e[type=armor_stand,name=time] ~ ~ ~ time query daytime\",auto:1b}"},{id:commandblock_minecart,Command:"/stats entity @e[name=time,type=armor_stand] set QueryResult @e[name=time,type=armor_stand] time"},{id:commandblock_minecart,Command:"/gamerule commandBlockOutput false"},{id:commandblock_minecart,Command:"/tellraw @a {\"text\":\"\",\"extra\":[{\"text\":\"■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■\\\\",\"color\":\"gold\",\"bold\":true},{\"text\":\" 本OOC由Msure制作\\\",\"color\":\"green\",\"bold\":true},{\"text\":\"歡迎交流 群號:538478518、481528679\\\\",\"color\":\"blue\",\"bold\":true},{\"text\":\"■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■\",\"color\":\"gold\",\"bold\":true}]}"},{id:commandblock_minecart,Command:"setblock ~ ~1 ~ command_block 0 replace {auto:1b,Command:\"fill ~ ~ ~ ~ ~-2 ~ air\"}"},{id:commandblock_minecart,Command:"kill @e[type=commandblock_minecart,r=1]"}]}]}

哈哈,很長很多吧,想要的朋友就復制下來吧!

文章評論

條評論
|登錄評論可獲積分福利。立即注冊

我的世界

  • 社區經營|運營
  • 20919人玩過

玩《我的世界》的也在玩

熱門資訊

最新資訊

熱門合集

生肖时时彩的购买 大乐透走势图100期 pk10长期挂机玩法 ag刺激战场战队 2017119双色球杀蓝球号 彩票自动投注脚本 cctv5手机直播在线观看 辽宁福彩网 上海时时开奖公告 彩票开奖结果查绚 七乐彩走势图走势图 澳门21点规则 代理股指期货赚钱吗 南国最大规律论坛 七星彩稳头孢三字定数据 真人街机千炮金蟾捕鱼 尤文vs曼城历史战绩