Advertisement
tatsu0123

食用村人

Jan 28th, 2015
448
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. ・スコアボードの準備
  2. /scoreboard objectives add eatflag stat.talkedToVillager
  3.  
  4.  
  5. ・クロック回路
  6. fillクロックを使う
  7. 上に/fill ~ ~-1 ~ ~3 ~-1 ~ minecraft:redstone_block 0 replace minecraft:bedrock
  8. 下に/fill ~ ~1 ~ ~3 ~1 ~ minecraft:bedrock 0 replace minecraft:redstone_block
  9.  
  10. 次に、コマブロの動作順
  11. (下、上に置いて間に赤石ブロックを起きまたx+1に下、上...)に
  12. /execute @a[score_eatflag_min=1] ~ ~ ~ /effect @e[type=Villager,r=5,c=1] minecraft:instant_damage 1 n
  13. /effect @a[score_eatflag_min=1] minecraft:saturation 1 n
  14. (nにはそれぞれ"食べられた村人のダメージ","食べたプレイヤーの回復値"のレベルの値、Twitterに上げた物では0,1)
  15. /execute @a[score_eatflag_min=1] ~ ~ ~ /execute @e[type=Villager,r=5,c=1] ~ ~ ~ /..(食べた村人に対して起こしたいアクション)
  16. /execute @a[score_eatflag_min=1] ~ ~ ~ (食べた人に対して起こしたいアクション)
  17. (Twitterに上げた物ではparticleを使っています)
  18. ...
  19. /scoreboard players set @a[score_eatflag_min=1] villager 0
  20.  
  21.  
  22. ・食用村人召喚
  23. /summon Villager ~ ~1 ~ {Profession:0,Offers:{},CustomName:"食料"}
  24.  
  25.  
  26. ・食べ方
  27. 先ほど用意したfillクロックの間に赤石ブロックを起き、食用村人を右クリックする
  28. (クリックした村人より近い村人が居た場合は、そちらを優先的に食べるので注意)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement