Skip to content
MC Command Generator

/effect with tags: one command for a whole set of effects (26.4 snapshot)

Update dropJava 26.4 Snapshot 10 · 26.35 min read3 commands

In the 26.4 snapshots /effect give and /effect clear take a #tag of effects. Vanilla ships no effect tags, so you add one in a data pack. Tested on Snapshot 10.

In the Minecraft 26.4 snapshots, /effect give and /effect clear accept a tag of effects in place of one effect ID: effect give @a #my_pack:buffs 30 1 true gave four effects in one go on our test server. The catch: the game ships no effect tags, so the tag has to come from a data pack.

We ran all of this on a vanilla server on 26.4 Snapshot 10 (22 November 2026). It is a snapshot, so it can still change before 26.4 is released. On the current release, 26.3, none of the tag commands work; the cards further down are what to use today.

What happens if you just type a tag

We expected something like #minecraft:beneficial to exist. It does not. We opened the Snapshot 10 server jar and its data/minecraft/tags folder has block, item, entity type, enchantment, potion and other tags, but no mob_effect folder at all.

Server log · Java 26.4 Snapshot 10
  1. effect give @e[type=pig] #minecraft:beneficial 30
    Can't find tag 'minecraft:beneficial' of type 'minecraft:mob_effect'

How do you make an effect tag?

One JSON file in a data pack. This is the file we used, saved as data/my_pack/tags/mob_effect/buffs.json. After /reload the server listed the pack as enabled and the tag worked.

data/my_pack/tags/mob_effect/buffs.json
{
  "values": [
    "minecraft:speed",
    "minecraft:haste",
    "minecraft:strength",
    "minecraft:night_vision"
  ]
}

The pack’s pack.mcmeta needs the snapshot’s data pack format. /version on Snapshot 10 reports pack_data = 128.0; 26.3 reports 121.0.

/effect give with a tag

The seconds, amplifier and hide-particles arguments are shared by every effect in the tag. Reading the pig’s data back shows four entries with the same values.

Server log · Java 26.4 Snapshot 10
  1. effect give @e[type=pig] #my_pack:buffs 30 1 true
    Applied 4 effect(s) to Pig
  2. data get entity @e[type=pig,limit=1] active_effects
    Pig has the following entity data: [{duration: 600, show_icon: 0b, amplifier: 1b, id: "minecraft:night_vision", show_particles: 0b}, {duration: 600, show_icon: 0b, amplifier: 1b, id: "minecraft:speed", show_particles: 0b}, {duration: 600, show_icon: 0b, amplifier: 1b, id: "minecraft:haste", show_particles: 0b}, {duration: 600, show_icon: 0b, amplifier: 1b, id: "minecraft:strength", show_particles: 0b}]
  3. effect give @e[type=pig] #my_pack:buffs infinite 2
    Applied 4 effect(s) to Pig

infinite works with a tag too. One thing to watch: if a target already has a stronger or longer copy of one effect, that one is skipped without an error and the count just drops. We gave the pig Speed for 30 seconds first, then the tag for 20:

Server log · Java 26.4 Snapshot 10
  1. effect give @e[type=pig] minecraft:speed 30
    Applied 1 effect(s) to Pig
  2. effect give @e[type=pig] #my_pack:buffs 20
    Applied 3 effect(s) to Pig
  3. effect give @e[type=pig] minecraft:speed 20
    Unable to apply 1 effect(s) (Pig is either immune to effects, or has something stronger)

The wording of the answers changed as well. 26.3 says Applied effect Speed to Pig; Snapshot 10 counts effects instead. If you parse command output in a tool, that will need updating.

/effect clear with a tag

This is the part we would use most: remove a named group and keep the rest. The pig also had the new Freezing effect, which is not in the tag, and it stayed.

Server log · Java 26.4 Snapshot 10
  1. effect clear @e[type=pig] #my_pack:buffs
    Removed 4 effect(s) from Pig
  2. data get entity @e[type=pig,limit=1] active_effects
    Pig has the following entity data: [{duration: 599, show_icon: 1b, amplifier: 1b, id: "minecraft:freezing"}]
  3. effect clear @e[type=pig] #my_pack:buffs
    Pig doesn't have the requested effect(s)

An empty tag is accepted by the parser and then refused: effect give @e[type=pig] #my_pack:empty 10 answered No effects were provided.

What to use on 26.3 today

On 26.3 the tag form fails at the # (Can’t find element ‘minecraft:’ of type ‘minecraft:mob_effect’), so a set of effects is still one command each. The /effect generator writes the lines for any version; these three cards open it with the form filled in.

#1The same four buffs on 26.3Rare

Until 26.4 is out, a set of effects is one line per effect. Put them in a function or a chain of command blocks.

effect give @a minecraft:speed 30 1 true
effect give @a minecraft:haste 30 1 true
effect give @a minecraft:strength 30 1 true
effect give @a minecraft:night_vision 30 1 true
  • • One line per effect: run them all (a function file or a chain of command blocks does it in one go).
Open in /effect Java 26.3
#2Clear one effectRare

Takes Speed away and leaves everything else. In 26.4 the last word can be a #tag.

effect clear @a minecraft:speed
Open in /effect Java 26.3
#3Clear every effectRare

No effect named: everything goes, good and bad.

effect clear @a
Open in /effect Java 26.3

Building the pack by hand? The tag generator writes block, item and mob tags with the right folder names per version, and this guide covers the other format changes that break old commands.

FAQ

Does /effect give @a #minecraft:beneficial work in 26.4?

Not on Snapshot 10. The game has no effect tags of its own, so it answers: Can't find tag 'minecraft:beneficial' of type 'minecraft:mob_effect'. You have to add a tag in a data pack first.

Where does a mob effect tag go in a data pack?

data/<namespace>/tags/mob_effect/<name>.json, with a values list of effect IDs. We loaded exactly that path on Snapshot 10 and /effect found it as #<namespace>:<name>.

Can I use an effect tag in 26.3?

No. On 26.3 the same command stops at the # with: Can't find element 'minecraft:' of type 'minecraft:mob_effect'. Use one /effect line per effect.

Will this still work when 26.4 is released?

It may change. Everything here was run on 26.4 Snapshot 10 on 22 November 2026, and snapshot features can change or be removed before release.