Skip to content
JasperLorelai edited this page May 19, 2024 · 14 revisions

Source Code

spell-class: ".buff.ext.DisguiseSpell"

Targeting:

This spell can be cast by/on all living entities.

Description:

This spell disguises the entity disguise as another entity. This spell requires Lib's Disguises which also requires ProtocolLib.

Buff Uses:

The buff spell doesn't have Uses.

Configuration:

Before 4.0 Beta 13:

Important

This format may be used in 4.0 Beta 13 as well, but it has been marked for removal.

Option Description Default
player-name Player name if the disguise entity is a player.
skin-name Skin name if the disguise entity is a player. player-name
data Data used for disguises. 0
burning Should the disguised entity burn? false
glowing Should the disguised entity glow? false
disguise Entity Data config section.

Example 1:

Disguise:
    spell-class: ".buff.ext.DisguiseSpell"
    name: "Disguise"
    toggle: true
    disguise:
        entity: tropical_fish
        type: clayfish
        color: red
        pattern-color: blue

Since 4.0 Beta 13:

Important

The following format was added in 4.0 Beta 13. The previous may still be used, but it is marked for removal.

Option Description
disguise Disguise command arguments (Find out the appropriate options for a mob with /dhelp <entityType>). Supports dynamic values through string expressions.

Example 2:

Disguise:
    spell-class: ".buff.ext.DisguiseSpell"
    name: "Disguise"
    toggle: true
    disguise: "Tropical_Fish setPattern CLAYFISH setPatternColor BLUE setBodyColor RED"
Clone this wiki locally