Minecraft /effect Command
プレイヤーまたはMobにステータス効果(スピード、毒、採掘速度上昇、力など)を追加、削除、またはクリアします。
バージョン対応
コマンド構文
/effect give <targets> <effect> [<seconds>] [<amplifier>] [<hideParticles>] | /effect clear <targets> [<effect>]/effect <player> <effect> [seconds] [amplifier] [hideParticles: Boolean] | /effect <player> clear引数の解説
action (Java)give / clear必須Specify whether to bestow or wipe away potion effects.
targets / playerSelector / Player Name必須Target entity or players (e.g. @s, @p, @a[team=blue], @e[type=zombie]).
effectNamespaced Effect ID必須Status effect identifier (e.g. minecraft:speed, regeneration, night_vision).
secondsInteger / "infinite"Duration in seconds (up to 1,000,000) or "infinite" in modern Java.
amplifierInteger (0-255)Power level: 0 is Level I, 1 is Level II, up to 255 (maximum potency).
hideParticlesBooleanSet to true to hide ambient swirling potion bubbles from player vision.
実用的な使用例
/effect give @s minecraft:night_vision infinite 0 trueJava 1.20+: Gives yourself permanent Night Vision with invisible particles.
Standard mining and building quality-of-life setup.
/effect @s night_vision 9999 0 trueBedrock: Gives yourself 9,999 seconds of Night Vision with invisible particles.
Bedrock command syntax for clean night exploration.
/effect give @p minecraft:strength 300 2 falseGives the nearest player Strength III for 5 minutes (300 seconds).
PvP arena boss powerup.
/effect clear @aWipes all active status effects from every player in the world.
Resetting players after minigame rounds.
/effect clear @s minecraft:poisonRemoves specifically the Poison effect while keeping other buffs active.
Selective status cleanse.
よくあるミス
ミス:
Java Editionで「give」サブコマンドを忘れる
修正方法:
Java版では: /effect give @s speed 10 1 (/effect @s speed ではない)
ミス:
間違った効果IDを使用する
修正方法:
正しいIDを使用: speed, strength, night_vision など(小文字)。
ミス:
Java版で持続時間を秒数にするがtickと混同する
修正方法:
Java版の持続時間は秒単位: /effect give @s speed 30 = 30秒。
Java版と統合版の違い
Java版では`/effect`の後に`give`または`clear`サブコマンドが必要です。Bedrock版は`give`を使用せず、最後に`clear`を配置します。効果IDも異なり、Javaは`minecraft:speed`のようなネームスペースプレフィックスを使用し、Bedrockは`speed`を直接使用します。
Command Block Usage & Automation
In Command Blocks, create passive healing sanctuaries or hazard zones using a Repeating Always Active block: "/effect give @a[distance=..15] regeneration 2 1 true" (the trailing true hides swirling potion bubbles to keep the screen clear). To clear status debuffs when players enter safe rooms, chain an Impulse block running "/effect clear @p".
便利なヒント
増幅器0はレベルI、1はレベルIIなど、最大255まで上げられます。
「hideParticles true」でポーションのパーティクルを非表示にし、効果を控えめに保ちます。
Java版の最大持続時間は1,000,000秒(約11.5日)です。
/effectを/executeと組み合わせて、特定の条件下でプレイヤーに効果を与えることができます。
永久効果には非常に大きな数値を設定するか、Bedrock版では0を設定してください。
重要な注意事項
Java版では`/effect`の直後に`give`または`clear`のサブコマンドが必要です。Bedrock版は`give`を使用せず、行の最後に`clear`を配置します。
よくある質問
永久効果を与えることができますか?
はい、999999のような大きな持続時間か、Bedrock版では持続时间为0で無期限にできます。
効果の最大レベルは?
増幅器255(レベル256に相当)まで上げられます。
プレイヤーのすべての効果を解除するには?
/effect clear @a(Java版)または /effect @a clear(Bedrock版)を使用。