Denizen Script Mechanisms


Mechanisms are found in object properties, the 'adjust' command, and similar. These are used to change the state of an object.
Learn about how mechanisms work in The Beginner's Guide.


Showing 8 out of 632 mechanisms...

Categories:

EntityTag Mechanisms | ItemTag Mechanisms | LocationTag Mechanisms | NPCTag Mechanisms | PlayerTag Mechanisms



Category: EntityTag Mechanisms


Nameskin_layers
ObjectEntityTag
InputListTag
Related Tags<EntityTag.skin_layers> Returns the skin layers currently visible on a player-type entity. (...)
DescriptionSets the visible skin layers on a player-type entity (PlayerTag or player-type NPCTag).
Input is a list of values from the set of:
CAPE, HAT, JACKET, LEFT_PANTS, LEFT_SLEEVE, RIGHT_PANTS, RIGHT_SLEEVE, or "ALL"
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/EntityTag.java#L4016



Category: ItemTag Mechanisms


Nameskull_skin
ObjectItemTag
InputElementTag(|ElementTag(|ElementTag))
Related Tags<ItemTag.skull_skin> Returns the UUID of the player whose skin a skull item uses. (...)
<ItemTag.skin> Returns the UUID of the player whose skin a skull item uses. (...)
<ItemTag.has_skin> Returns whether the item has a custom skin set. (...)
DescriptionSets the player skin on a player_head.
A head should have a Texture blob, the player's UUID, and the player's Name.
The most-correct input is UUID|Texture|Name.
You can alternately input Name|Texture|UUID and the order will be automatically corrected.
You can alternately input just a UUID, or just a Name, or just UUID|Texture, or just Name|Texture, and the missing data will be downloaded.
You can alternately input just a Texture and the remaining data will be filled as name "null" and UUID "000-000". Doing this may cause side effects with Minecraft internals or external plugins, use with caution.
See also Language:Player Entity Skins (Skin Blobs).
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/properties/item/ItemSkullskin.java#L140



Category: LocationTag Mechanisms


Nameskull_skin
ObjectLocationTag
InputElementTag(|ElementTag(|ElementTag))
Related Tags<LocationTag.skull_skin> Returns the skin the skull is displaying - just the name or UUID as text, not a player object.
DescriptionSets the skin of a skull block.
The first ElementTag is a UUID.
Optionally, use the second ElementTag for the skin texture cache.
Optionally, use the third ElementTag for a player name.
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/LocationTag.java#L4789



Category: NPCTag Mechanisms


Nameauto_update_skin
ObjectNPCTag
InputElementTag(Boolean)
Related Tags<NPCTag.auto_update_skin> Returns whether the NPC is set to automatically update skins from name.
DescriptionSets whether the NPC will automatically update its skin based on the skin name used.
If true, the NPC's skin will change when the relevant account owner changes their skin.
Generated Example
- adjust <npc> auto_update_skin:false
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/NPCTag.java#L1710

Nameskin
ObjectNPCTag
InputElementTag
Related Tags<NPCTag.skin> Returns the NPC's custom skin, if any.
DescriptionSets the skin of an NPC by name.
Call with no value to clear the custom skin value.
See also Language:Player Entity Skins (Skin Blobs).
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/NPCTag.java#L1683

Nameskin_blob
ObjectNPCTag
InputElementTag
Related Tags<NPCTag.skin> Returns the NPC's custom skin, if any.
DescriptionSets the skin blob of an NPC, in the form of "texture;signature;name".
Call with no value to clear the custom skin value.
See also Language:Player Entity Skins (Skin Blobs).
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/NPCTag.java#L1648



Category: PlayerTag Mechanisms


Nameskin
ObjectPlayerTag
InputElementTag
DescriptionChanges the skin of the player to the skin of the given player name.
See also Language:Player Entity Skins (Skin Blobs).
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/PlayerTag.java#L3993

Nameskin_blob
ObjectPlayerTag
InputElementTag
Related Tags<PlayerTag.skin_blob> Returns the player's current skin blob. (...)
DescriptionChanges the skin of the player to the specified blob.
In the format: "texture;signature" (two values separated by a semicolon).
See also Language:Player Entity Skins (Skin Blobs).
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/PlayerTag.java#L4010