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 1 out of 681 mechanisms...
Namehologram_lines
ObjectNPCTag
InputListTag
Related Tags<NPCTag.hologram_lines> Returns the list of hologram lines attached to an NPC.
DescriptionSets the NPC's hologram lines.
Each item in the list can be either:
- An ElementTag for a permanent hologram line
- A map with "text" (ElementTag) and "duration" (DurationTag) keys for a temporary hologram line that will disappear after the specified duration
When every item is an ElementTag and the NPC already has the same number of lines, the existing lines are updated in place,
so the hologram (and the NPC's name) does not briefly disappear. Lines updated this way keep whether they were temporary.
Sourcehttps://github.com/MINEZ/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/NPCTag.java#L1310