Updated:

Weaving: effect ID and commands

The effect ID for Weaving is minecraft:weaving. The target leaves cobwebs when it dies. It was added in Java 1.21.

Basic data

NameWeaving
ID (Java Edition)minecraft:weaving
TypeHarmful effect
Java versionsJava 1.21 and later
Bedrock 26.52Same ID works (tested on a server)

Commands you can copy

Java Edition

Apply for 30 seconds

/effect give @p minecraft:weaving 30 0

Apply level II for 60 seconds

/effect give @p minecraft:weaving 60 1

Apply with particles hidden

/effect give @p minecraft:weaving 60 0 true

Apply with no time limit (Java 1.19.4+)

/effect give @p minecraft:weaving infinite 0 true

Remove only this effect

/effect clear @p minecraft:weaving

Bedrock Edition

Apply for 30 seconds

/effect @p weaving 30 0

Apply with particles hidden

/effect @p weaving 60 0 true

Remove all effects

/effect @p clear

Version notes

It was added in Java 1.21. Older versions report that the ID is unknown.

Java Edition writes /effect give; Bedrock writes /effect without give. infinite in place of seconds works in Java 1.19.4 and later.

Questions

What is the ID for Weaving?

It is minecraft:weaving. In commands you can also write weaving without minecraft:.

How do I set the level?

The number after the seconds is the strength: 0 is level I, 1 is level II, up to 255.

How do I hide the particles?

Add true at the end of the command to hide the particles.

Related IDs