ホーム 格闘技 [Minecraft] How to use the effect command | Apply effects like Night Vision and Speed [Copy-Paste OK / Bedrock & Java Edition Supported]

[Minecraft] How to use the effect command | Apply effects like Night Vision and Speed [Copy-Paste OK / Bedrock & Java Edition Supported]

真鍋 千夏 真鍋 千夏 • 更新: • 公開: • 読了約 21 分
目次

The basic command for "applying effects like Night Vision, Speed, or Jump Boost to yourself or others", is /effect. You can see clearly in caves, move faster, or instantly clear effects... you can freely add or remove effects without needing to drink potions. In this article, I will explain everything from basic copy-paste commands to the "extra tips" I use often, for both Bedrock/BE and Java editions.

Supported Versions (Important)

n99f17e2ea2e2

Here, I will list the versions where "basic effect" works. Please note that the syntax for effect is completely different between Java Edition and Bedrock/BE. Supported versions for "extra tips" like infinite effects will be noted under each heading.

  • Java Edition 1.12 and earlier: Used the format effect <target> <effect> (old format; similar to the current Bedrock/BE syntax).

  • Java Edition 1.13 and later: Changed to the format effect give ~ (to apply) and effect clear ~ (to remove). This has been the standard ever since.

  • Bedrock/BE: Up to the latest version: Uses the format effect <target> <effect> (do not add give).

In other words, the input changes slightly between Java Edition and Bedrock/BE to achieve the same result. I will include both versions in this article every time.

What you can do with this article

  • Apply effects like Night Vision, Speed, and Jump Boost

  • Specify the level and duration of the effect

  • Make effects last almost indefinitely

  • Remove applied effects

  • Hide effect particles (the swirling bubbles)

  • Learn how to apply effects to items (arrows, potions)

When I explore caves, I always apply Night Vision before going down. Since I can see my surroundings without placing torches, it makes finding ores and returning without getting lost much easier.

Basic effect command (Copy-Paste)

You specify "who, which effect, for how many seconds, and at what level". The syntax differs between Java Edition and Bedrock/BE.

Example: Apply "Speed (Level 2)" to yourself for 60 seconds

Java Edition

effect give @s speed 60 1

Bedrock/BE

effect @s speed 60 1

The numbers at the end are the "duration" and "level". There is one thing to note here. The level number is "level minus 1". 0 is level 1, 1 is level 2, 2 is level 3, and so on. The 1 in the example above means "level 2".

If you omit the duration and level, it will be applied for 30 seconds at level 1.

List of Main Effects (IDs)

These are the IDs for commonly used effects (common to both Java Edition and Bedrock/BE).

  • night_vision (Night Vision: see in dark places)

  • speed (Increase movement speed) / slowness (Decrease movement speed)

  • jump_boost (Increase jump height)

  • haste (Increase mining speed)

  • strength (Increase attack power)

  • regeneration (Automatic health recovery)

  • water_breathing (Breathe underwater)

  • fire_resistance (Prevent damage from fire and lava)

  • invisibility (Become invisible)

  • slow_falling (Fall slowly and prevent fall damage)

  • levitation (Levitation: float upward)

  • luck (Luck: easier to get good items from fishing, etc.)… Java Edition only (Not available in Bedrock/BE)

  • glowing (Glowing: body glows and can be seen through walls)… Java Edition only (Not available in Bedrock/BE)

Pro Tip 1: Make effects last almost indefinitely (like Night Vision)

For effects you want to keep active for a long time, such as Night Vision, set a large number of seconds. If you set it to 1000000 (about 11 days), it will effectively last forever. This works for both Java Edition and Bedrock Edition.

Java Edition

effect give @s night_vision 1000000 0 true

Bedrock Edition

effect @s night_vision 1000000 0 true

The final true is the setting to "hide particles" (explained in detail in the next section, "Extra Step 3").

In newer versions, you can also write infinite instead of the number of seconds (available in Java Edition from 1.19.4 and later).

Java Edition

effect give @s night_vision infinite 0 true

Bedrock Edition

effect @s night_vision infinite 0 true

Doing this will display the remaining effect time as "∞".

Extra Step 2: Removing applied effects

The way to remove applied effects also differs between Java Edition and Bedrock Edition.

Removing all effects

Java Edition

effect clear @s

Bedrock Edition

effect @s clear
Removing specific effects only

For example, if you want to remove only Night Vision, do it like this.

Java Edition

effect clear @s night_vision

Bedrock Edition (setting the seconds for the effect you want to remove to 0 will remove it)

effect @s night_vision 0

Extra Step 3: Hiding effect particles

When you apply an effect, swirling particles appear around your body. If they are in the way during recording or similar, you can hide them by adding true to the very end of the command. This works for both Java Edition and Bedrock Edition.

Example: Apply Night Vision to yourself while hiding the particles

Java Edition

effect give @s night_vision 1000000 0 true

Bedrock Edition/BE

effect @s night_vision 1000000 0 true

The 0 before the final true is the "level" (0 because it is level 1). If you use false (or omit it) instead of true, the particles will be displayed.

Can I apply effects to tools or weapons?

/effect is exclusively for players and mobs (living creatures). You cannot directly apply status effects to tools or weapons like swords or pickaxes using /effect.
(Note the difference from /enchant.)

However, you can prepare "items with effects." The two most common examples are as follows:

1. Tipped arrows (apply effects to the target hit)

In Java Edition, you can create them using /give (e.g., 16 poison arrows). The basics of /give are explained in How to use the give command.

Java Edition [1.20.5 and later]

give @s minecraft:tipped_arrow[potion_contents=potion:"minecraft:poison"] 16

Java Edition [1.13 to 1.20.4]

give @s minecraft:tipped_arrowPotion:"minecraft:poison" 16

In Bedrock Edition/BE, /give is a bit complicated because it requires specifying data values (numbers), so it is easier to craft by placing 8 arrows around 1 lingering potion (this is easier than using commands, and the same method works in Java Edition).

2. Potions (apply effects when drunk)

In Java Edition, you can create them by specifying the contents with /give. In Bedrock Edition/BE, the standard way is to brew them using a brewing stand.

Note that you cannot use /effect to give "effects to the weapon itself," such as "the opponent becomes poisoned when hit with this sword." This requires more advanced mechanisms using command blocks or data packs. If you just want to make your weapon stronger, enchantments are easier. This is explained in detail in How to use the enchant command.

When it doesn't work (troubleshooting points)

  • Is cheats enabled?: effect cannot be used unless cheats (commands) are enabled (see the note at the beginning).

  • Whether to include 'give' or not: Java Edition uses effect give @s …, while Bedrock Edition/BE uses effect @s … (without give). You will get an error if you mix up the editions.

  • The level is one stronger/weaker than expected: The level number is "level minus 1." If you want to apply level 2, enter 1; for level 3, enter 2.

  • Cannot remove effects (Bedrock/BE): To remove only a specific effect in Bedrock/BE, set the duration of that effect to 0 (e.g., effect @s speed 0).

  • Symbols or characters are full-width: All commands must be entered in half-width characters. Be especially careful when copying and pasting from the web.

Conclusion

In this article, we covered the basic effect command. Being able to quickly apply Night Vision or Speed, make them nearly infinite, or remove them all at once makes exploring, recording, and creating custom maps much more comfortable. The syntax differs slightly between editions, so please use the one that matches your environment.

give・tp・gamemode・time set・weather, and other basic commands are explained one by one in separate articles. Please check those out as well.

Feel free to share any "useful effect combinations" you've found in the comments section.

#Minecraft #MC #Command #effectcommand #NightVision #MinecraftBedrock #MinecraftJava

同じカテゴリの記事

真鍋 千夏
デジタルマーケター 真鍋 千夏
プロフィールを見る →

美容と暮らしの話題を担当。メーカーの公式発表、商品成分の公表資料、専門家の監修記事をもとに事実を整理します。

おすすめの関連記事