Skip to content

Item Format

Item format to make custom bandages.

bandage

Parameters

NameTypeDescription
bandagearray[Effect Instance]List of effects to apply when used.

Effect Instance

Parameters

NameTypeDescription
effectTechnical NameSpecifies the effect to be added.
durationintegerSpecifies the effect's duration in seconds
amplifierintegerSpecifies the number of additional levels to add to the effect.

Example

This bandage gives the user Speed for 2 seconds when used.

mcfunction
give @s minecraft:bow{bandage:[{effect:"speed", duration:2, amplifier:1}]}
snbt
{
    bandage: [
        {
            effect: "speed",
            duration: 2,
            amplifier: 1
        }
    ]
}

History

Data pack Edition
1.4.0Added custom data to create your own Bandages

Not associated with or approved by Mojang Studios or Microsoft