Advertisement
tatsu0123

ミニビーコン

Feb 12th, 2015
420
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.34 KB | None | 0 0
  1. ・スコアボードの準備
  2. /scoreboard objectives add beacon dummy
  3.  
  4.  
  5. ・クロック回路
  6. fillクロックを使う
  7. 上に/fill ~ ~-1 ~ ~10 ~-1 ~ minecraft:redstone_block 0 replace minecraft:bedrock
  8. 下に/fill ~ ~1 ~ ~10 ~1 ~ minecraft:bedrock 0 replace minecraft:redstone_block
  9.  
  10. 次に、コマブロの動作順
  11. (下、上に置いて間に赤石ブロックを置きまたx+1に下、上...)に
  12. /scoreboard players set @e[type=Item] beacon 0 {OnGround:1b,Item:{id:minecraft:skull,Count:1b,Damage:3s,tag:{display:{Name:"ミニビーコン"}}}}
  13. /execute @e[type=Item,score_beacon=0] ~ ~ ~ /summon ArmorStand ~ ~-0.42 ~ {Equipment:[{id:beacon,tag:{ench:[]}},{},{},{},{}],NoGravity:1,ShowArms:1,Invulnerable:1,Small:1,Invisible:1,DisabledSlots:30,Pose:{RightArm:[-34f,0f,0f]},Rotation:[44.9f,0f],CustomName:"beacon"}
  14. /kill @e[type=Item,score_beacon=0,score_beacon_min=0]
  15. /scoreboard players set @a beacon 0 {SelectedItem:{id:minecraft:beacon,Count:0b}}
  16. /execute @a[score_beacon_min=0] ~ ~ ~ /scoreboard players set @e[type=ArmorStand,name=beacon,r=5] beacon 0
  17. /execute @e[type=ArmorStand,score_beacon_min=1] ~ ~ ~ /particle enchantmenttable ~-0.3 ~ ~ 0 20 0 0 100 force
  18.  
  19. /execute @a[score_beacon_min=0] ~ ~ ~ /scoreboard players set @e[type=ArmorStand,name=beacon,r=5] beacon 1 {Equipment:[{id:minecraft:diamond}]}
  20. /execute @e[type=ArmorStand,name=beacon,score_beacon_min=1,score_beacon=1] ~ ~ ~ /effect @a[r=10] minecraft:speed 7 0 false
  21. ※ミニビーコンにアイテムを持った状態で右クリックすると、そのアイテムを犠牲にビーコンが起動します
  22. ここのEquipment:を変える事でアイテムを、/effectを変えると効果を変えれます
  23. 今回twitterに上げた物では、ダイヤモンドを犠牲に俊足Lv1の効果が付くようになっています
  24.  
  25. /clear @a[score_beacon_min=0] minecraft:beacon 0 1 {ench:[]}
  26. /execute @a[score_beacon_min=0] ~ ~ ~ /entitydata @e[type=ArmorStand,name=beacon,score_beacon_min=1,score_beacon=1,r=5] {Equipment:[{id:beacon,tag:{ench:[]}},{},{},{},{}]}
  27. /execute @e[type=ArmorStand,name=beacon,score_beacon_min=0,score_beacon=0] ~ ~ ~ /give @a[score_beacon_min=0,r=5] skull 1 3 {display:{Name:"ミニビーコン"},SkullOwner:{Id:5530AE20-D1B2-7092-1EE6-F5AD91A69737,Properties:{textures:[{Value:e3RleHR1cmVzOntTS0lOOnt1cmw6Imh0dHA6Ly9pLmltZ3VyLmNvbS9ra3A0Y2RwLnBuZyJ9fX0==}]}}}
  28. /kill @e[type=ArmorStand,name=beacon,score_beacon_min=0,score_beacon=0]
  29. /scoreboard players reset @a[score_beacon_min=0] beacon
  30.  
  31.  
  32. ・ミニビーコンの収得
  33. /give @p skull 1 3 {display:{Name:"ミニビーコン"},SkullOwner:{Id:5530AE20-D1B2-7092-1EE6-F5AD91A69737,Properties:{textures:[{Value:e3RleHR1cmVzOntTS0lOOnt1cmw6Imh0dHA6Ly9pLmltZ3VyLmNvbS9ra3A0Y2RwLnBuZyJ9fX0==}]}}}
  34.  
  35.  
  36. ・ミニビーコン起動
  37. まずはクロック回路を作動させ、収得したミニビーコンをQキーでドロップさせます
  38. すると地面に設置されるので、次に対応したアイテム(今回はダイヤ)を持った状態でビーコンに右クリックします
  39. こうすることで、半径10mの範囲のプレイヤーにビーコン効果(今回は俊足)が付くようになります
  40. (ミニビーコンの回収は素手で右クリックすることで出来ます)
  41. ※対応してないアイテムを入れると消えてしまうので注意して下さい
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement