普通の矢が弾です。普通の望遠鏡でもインベントリの上に出てしまうのはすいません コマンドに番号を打ち込んでわかりやすくしております。どのコマンドをどこにどのような設定で打つのかは下をご覧ください。そしてコマンドブロックは3から21まで全て繋げて設置してください向きが間違うと起動しませんので注意してください 1,2はチャットで、3は反復常時実行条件なし、4,5,7〜21はチェーン常時実行条件なし、6はチェーン常時実行条件ありです。 コマンド↓ 1/gamerule commandblockoutput false 2/scoreboard objectives add reload dummy 3/execute at @e[type=item,name=望遠鏡] as @a[c=1] if entity @s[scores={reload=!..59}] run tag @s add s 4/execute at @e[type=item,name=望遠鏡] as @a[c=1] if entity @s[tag=s] run replaceitem entity @s slot.weapon.mainhand 0 spyglass 5/execute as @a[tag=s] at @s anchored eyes run summon armor_stand ^ ^ ^2 facing ^ ^ ^2 minecraft:entity_spawned dangann 6/execute at @e[type=armor_stand,name=dangann] as @p unless entity @s[tag=!s,scores={reload=..59}] run scoreboard players set @s reload 0 7/tag @a[scores={reload=0}] remove s 8/effect @e[type=armor_stand,name=dangann] invisibility 1 9/execute as @e[type=armor_stand,name=dangann] run particle minecraft:endrod ~ ~ ~ 10/execute as @e[type=armor_stad,name=dangann] run tp @s ^ ^ ^2 11/execute as [type=armor_stand,name=dangann] if entity [family=!inanimate,dx=0,dy=0,dz=0] run damage [family=!inanimate,c=1] 25 projectile 12/execute as [type=armor_stand,name=dangann] if entity [family=!inanimate,dx=0,dy=0,dz=0] run kill 13/execute as [type=armor_stand,name=dangann] unless blocks ~0.1~0.1~0.1~0.1~0.1~0.1 100000 320 100000 all run kill 14/execute as if entity [hasitem={item=arrow,location=slot.weapon.offhand}] run tag add reload 15/scoreboard players add [tag=reload,scores={reload=..59}] reload 1 16/clear [scores={reload=60},hasitem={item=arrow,quantity=1..}] arrow 0 1 17/tag [scores={reload=60}] remove reload 18/execute as [hasitem={item=spyglass,location=slot.weapon.mainhand},scores={reload=0}] run title actionbar 弾がありません 19/execute as [hasitem={item=spyglass,location=slot.weapon.mainhand},scores={reload=60}] run title actionbar 射撃可能 20/execute as [hasitem={item=spyglass,location=slot.weapon.mainhand},scores={reload=1..59}] run title actionbar リロード中 21/kill [type=item,name=望遠鏡]
リロードの仕様を変更、修正しましたデバックはできてません。(←バグあったら報告をしてください) 防具盾が正常に召喚されるようになりました。 今回も使い方の場所にコマンドを掲載します しっかりとスイッチ対応です。 スマホ版、pc版(統合版)はコピペ可能です。 ゲーム機でやってる人は入力頑張って。 1番のコマンド打たないとスイッチ勢とかはマイクラ落ちるよ! 望遠鏡をアイテムとして投げると弾発射、矢を左手に持つとリロード コマンド量が多いですが、与えるダメージを変更できたり、くらうダメージが防御力に比例したり(今回はエンチャント間接攻撃耐性と防護でこの攻撃への防御力がさらにアップ)他にもリロード機能がついていたり、リロード時間を変更できたりカスタマイズ性が高いチート武器です。 防具立てのブロック着弾感知はスケルトンの魔法工房様のコマンドを使わせていただきました。 ※このチート武器はharumaki6429自作です。嘘だと思うなら調べてみな! 傾向1pありがとう!