Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ・スコアボードの準備
- /scoreboard objectives add beacon dummy
- ・クロック回路
- fillクロックを使う
- 上に/fill ~ ~-1 ~ ~10 ~-1 ~ minecraft:redstone_block 0 replace minecraft:bedrock
- 下に/fill ~ ~1 ~ ~10 ~1 ~ minecraft:bedrock 0 replace minecraft:redstone_block
- 次に、コマブロの動作順
- (下、上に置いて間に赤石ブロックを置きまたx+1に下、上...)に
- /scoreboard players set @e[type=Item] beacon 0 {OnGround:1b,Item:{id:minecraft:skull,Count:1b,Damage:3s,tag:{display:{Name:"ミニビーコン"}}}}
- /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"}
- /kill @e[type=Item,score_beacon=0,score_beacon_min=0]
- /scoreboard players set @a beacon 0 {SelectedItem:{id:minecraft:beacon,Count:0b}}
- /execute @a[score_beacon_min=0] ~ ~ ~ /scoreboard players set @e[type=ArmorStand,name=beacon,r=5] beacon 0
- /execute @e[type=ArmorStand,score_beacon_min=1] ~ ~ ~ /particle enchantmenttable ~-0.3 ~ ~ 0 20 0 0 100 force
- /execute @a[score_beacon_min=0] ~ ~ ~ /scoreboard players set @e[type=ArmorStand,name=beacon,r=5] beacon 1 {Equipment:[{id:minecraft:diamond}]}
- /execute @e[type=ArmorStand,name=beacon,score_beacon_min=1,score_beacon=1] ~ ~ ~ /effect @a[r=10] minecraft:speed 7 0 false
- ※ミニビーコンにアイテムを持った状態で右クリックすると、そのアイテムを犠牲にビーコンが起動します
- ここのEquipment:を変える事でアイテムを、/effectを変えると効果を変えれます
- 今回twitterに上げた物では、ダイヤモンドを犠牲に俊足Lv1の効果が付くようになっています
- /clear @a[score_beacon_min=0] minecraft:beacon 0 1 {ench:[]}
- /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:[]}},{},{},{},{}]}
- /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==}]}}}
- /kill @e[type=ArmorStand,name=beacon,score_beacon_min=0,score_beacon=0]
- /scoreboard players reset @a[score_beacon_min=0] beacon
- ・ミニビーコンの収得
- /give @p skull 1 3 {display:{Name:"ミニビーコン"},SkullOwner:{Id:5530AE20-D1B2-7092-1EE6-F5AD91A69737,Properties:{textures:[{Value:e3RleHR1cmVzOntTS0lOOnt1cmw6Imh0dHA6Ly9pLmltZ3VyLmNvbS9ra3A0Y2RwLnBuZyJ9fX0==}]}}}
- ・ミニビーコン起動
- まずはクロック回路を作動させ、収得したミニビーコンをQキーでドロップさせます
- すると地面に設置されるので、次に対応したアイテム(今回はダイヤ)を持った状態でビーコンに右クリックします
- こうすることで、半径10mの範囲のプレイヤーにビーコン効果(今回は俊足)が付くようになります
- (ミニビーコンの回収は素手で右クリックすることで出来ます)
- ※対応してないアイテムを入れると消えてしまうので注意して下さい
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement