コマンドシェア

<コマンドシェア> コマンドブロックで作ったアイテム、みんなに見せよう

← みんなの投稿へ戻る

時空停止の懐中時計

Java版 1.21

【時間魔法】周囲の敵の動きを止める。自分だけは自由に動ける! ・効果範囲:半径10ブロック ・効果時間:5秒 ・演出:敵をスロウ状態にして時間停止を表現 使い方:①最初のインパルス(scoreboard)を1回ずつ実行 ②giveでアイテム入手 ③リピート+チェーンを順につなげて常時実行

1 インパルス 無条件 動力が必要
scoreboard objectives add tw_use minecraft.used:minecraft.carrot_on_a_stick
2 インパルス 無条件 動力が必要
give @p carrot_on_a_stick[item_model="minecraft:clock",custom_name={text:"時空停止の懐中時計",color:"gold",italic:false},lore=[{text:"時間魔法",color:"yellow",italic:false},{text:"周囲の敵の時間を5秒止める",color:"gray",italic:false}],custom_data={tw:1b},use_cooldown={seconds:15f,cooldown_group:"cmd:tw"},enchantment_glint_override=true]
3 リピート 無条件 常にアクティブ
execute as @a[scores={tw_use=1..}] if items entity @s weapon.mainhand *[custom_data~{tw:1b}] run tag @s add tw_cast
4 チェーン 無条件 常にアクティブ
execute as @a[tag=tw_cast] at @s as @e[type=!player,type=!marker,type=!item,type=!experience_orb,type=!armor_stand,type=!item_frame,type=!glow_item_frame,type=!painting,type=!iron_golem,type=!mannequin,type=!lightning_bolt,distance=..10] run effect give @s slowness 5 255 true
5 チェーン 無条件 常にアクティブ
execute as @a[tag=tw_cast] at @s as @e[type=!player,type=!marker,type=!item,type=!experience_orb,type=!armor_stand,type=!item_frame,type=!glow_item_frame,type=!painting,type=!iron_golem,type=!mannequin,type=!lightning_bolt,distance=..10] run effect give @s weakness 5 255 true
6 チェーン 無条件 常にアクティブ
execute as @a[tag=tw_cast] at @s as @e[type=!player,type=!marker,type=!item,type=!experience_orb,type=!armor_stand,type=!item_frame,type=!glow_item_frame,type=!painting,type=!iron_golem,type=!mannequin,type=!lightning_bolt,distance=..10] at @s run particle minecraft:end_rod ~ ~1 ~ 0.3 0.5 0.3 0 10
7 チェーン 無条件 常にアクティブ
execute at @a[tag=tw_cast] run particle minecraft:reverse_portal ~ ~1 ~ 5 1 5 0 300
8 チェーン 無条件 常にアクティブ
execute at @a[tag=tw_cast] run playsound minecraft:block.beacon.activate master @a ~ ~ ~ 1 0.5
9 チェーン 無条件 常にアクティブ
tag @a remove tw_cast
10 チェーン 無条件 常にアクティブ
scoreboard players reset @a tw_use