
スケルトンの魔法工房 / 療養中
チャンネル登録者数 3.47万人
6万 回視聴 ・ 606いいね ・ 2023/09/18
【統合版】リロードと弾薬システム付き!今の技術でハンドガンを作りなおしてみた【マイクラBE(Switch/Xbox/Win10/PS4)】【コマンド】【リメイク?】
次回はマシンガンだなこりゃ
今日の一言
「ババババババババ」
クリーパーの魔法工房の動画はこちらから↓
/ @creepernomahokobo
ツイッターもやってます↓
twitter.com/Carusimu
ハンドガンのコマンド
▼概要
・木のクワがハンドガンになる
・長押しシフトでリロード、単押しシフトで射撃できる
・リロードには鉄塊を1つ必要とする
・ダメージは5。弾丸は壁を貫通しない
▼注意点
・プレイヤーが密接してかつ同tickに射撃すると極稀にバグって変な方向に弾丸が飛んでいく。
・壁じゃないところで弾丸が止まる可能性あり。
▼組み立てるにあたって
・コマンドブロックの入手方法は、チャット欄で /give @p command_blockと入力して実行する。
ワールドの設定で「チートの実行」をONにしないとコマンドブロックがもらえません。
・下に書いてあるコマンドは、スラッシュ( / )ごとにコマンドが区切られています。
・全てのコマンドブロックは向きをそろえて一列につなげてください。
・初めのコマンドのみ、反復 無条件 レッドストーンが必要 に設定してください。その他の設定は変えません。
・それ以外のコマンドは チェーン 無条件 常にアクティブ と設定してください。
・すべてのコマンドをコピーし終わったら、一番初めのコマンドにレッドストーン信号を与えてください。
・チャット欄がログで埋め尽くされて気になる方は下のコマンドをチャット欄で入力して実行してください。
/gamerule commandblockoutput false
/gamerule sendcommandfeedback false
▼コマンド本体
/scoreboard objectives add Shift_yame dummy
/tag @a remove Fire_shift
/execute as @a[scores={Shift_yame=1..19}] at @s if entity @s[y=~1.8,dx=0] run tag @s add Fire_shift
/tag @a remove Reload_shift
/execute as @a[scores={Shift_yame=20..}] at @s if entity @s[y=~1.8,dx=0] run tag @s add Reload_shift
/execute as @a[hasitem={item=wooden_hoe,location=slot.weapon.mainhand}] at @s unless entity @s[y=~1.8,dx=0] if entity @s[y=~1.4,dx=0] run scoreboard players add @s Shift_yame 1
/execute as @a[hasitem={item=wooden_hoe,location=slot.weapon.mainhand}] at @s if entity @s[y=~1.8,dx=0] run scoreboard players set @s Shift_yame 0
/execute as @a unless entity @s[hasitem={item=wooden_hoe,location=slot.weapon.mainhand}] run scoreboard players set @s Shift_yame 0
/scoreboard objectives add Shift_ammo dummy
/scoreboard players add @a Shift_ammo 0
/scoreboard objectives add Shift_dangan dummy
/tag @e add entity
/execute as @a[tag=Fire_shift,scores={Shift_ammo=1..}] at @s run summon boat ^^0.2^-3
/scoreboard players add @e[tag=!entity] Shift_dangan 0
/scoreboard players add @e[scores={Shift_dangan=0..}] Shift_dangan 1
/camerashake add @a[tag=Fire_shift,scores={Shift_ammo=1..}] 0.5 0.05
/execute as @e[scores={Shift_dangan=1}] at @s run tp @s ^^^ facing @p[tag=Fire_shift,scores={Shift_ammo=1..}]
/execute as @e[scores={Shift_dangan=1}] at @s positioned ~~1001.5~ run tp @s ^^^5
/execute as @e[scores={Shift_dangan=1}] at @s positioned ~~-1000~ run playsound firework.large_blast @a ~~~ 1 3
/execute as @e[scores={Shift_dangan=1}] at @s positioned ~~-1000~ run particle minecraft:large_explosion
/execute as @e[scores={Shift_dangan=1..}] at @s run tp @s ^^^0.6
/execute as @e[scores={Shift_dangan=1..}] at @s run particle minecraft:balloon_gas_particle ~~-1000~
/execute as @e[scores={Shift_dangan=1..}] at @s unless block ~~-1000~ air [] run tag @s add Dangan_kieru
/execute as @e[scores={Shift_dangan=1..}] at @s positioned ~~-1000~ if entity @e[r=1.5] run tag @s add Dangan_kieru
/execute as @e[tag=Dangan_kieru] at @s run particle minecraft:explosion_particle ~~-1000~
/execute as @e[tag=Dangan_kieru] at @s positioned ~~-1000~ run playsound dig.soul_soil @a ~~~ 1 2
/execute as @e[tag=Dangan_kieru] at @s positioned ~~-1000~ run damage @e[r=1.5] 5 suicide
/kill @e[tag=Dangan_kieru]
/kill @e[scores={Shift_dangan=100..}]
/execute as @a[tag=Fire_shift,scores={Shift_ammo=0}] at @s run playsound random.click @a ~~~ 0.8 1.5
/title @a[tag=Fire_shift,scores={Shift_ammo=0}] times 0 20 0
/title @a[tag=Fire_shift,scores={Shift_ammo=0}] subtitle §4弾切れ!
/title @a[tag=Fire_shift,scores={Shift_ammo=0}] title §4
/title @a[tag=Fire_shift,scores={Shift_ammo=0}] times 10 70 20
/scoreboard players add @a[tag=Fire_shift,scores={Shift_ammo=1..}] Shift_ammo -1
/scoreboard objectives add Shift_gasyakon dummy
/scoreboard players set @a[tag=Reload_shift,hasitem={item=iron_nugget}] Shift_gasyakon 0
/scoreboard players add @e[scores={Shift_gasyakon=0..}] Shift_gasyakon 1
/title @a[scores={Shift_gasyakon=1}] times 0 60 0
/title @a[scores={Shift_gasyakon=1}] subtitle リロード中...
/title @a[scores={Shift_gasyakon=1}] title §4
/title @a[scores={Shift_gasyakon=1}] times 10 70 20
/title @a[scores={Shift_gasyakon=60}] times 0 20 10
/title @a[scores={Shift_gasyakon=60}] subtitle リロード完了
/title @a[scores={Shift_gasyakon=60}] title §4
/title @a[scores={Shift_gasyakon=60}] times 10 70 20
/clear @a[scores={Shift_gasyakon=1}] wooden_hoe
/clear @a[scores={Shift_gasyakon=1}] iron_nugget 0 1
/give @a[scores={Shift_gasyakon=60}] wooden_hoe
/scoreboard players set @a[scores={Shift_gasyakon=60}] Shift_ammo 8
/execute as @a[scores={Shift_gasyakon=1}] at @s run playsound open.iron_door @a ~~~ 1 0.7
/execute as @a[scores={Shift_gasyakon=30}] at @s run playsound crossbow.loading.end @a ~~~ 1 0.7
/execute as @a[scores={Shift_gasyakon=60}] at @s run playsound close.iron_door @a ~~~ 1 0.7
/effect @a[scores={Shift_gasyakon=1}] slowness 3 1 true
/execute as @a[hasitem={item=wooden_hoe,location=slot.weapon.mainhand}] at @s run titleraw @s actionbar {"rawtext":[{"text":"M1911 [ "},{"score":{"name":"@s","objective":"Shift_ammo"}},{"text":" ]"}]}
コメントを取得中...