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 644 mechanisms...
Namebrightness
ObjectEntityTag
InputMapTag
Related Tags<EntityTag.brightness> (Property) A map of the display entity's brightness override (if any), containing "block" and "sky" keys, each with a brightness level between 0 and 15. (...)
Description(Property) A map of the display entity's brightness override (if any), containing "block" and "sky" keys, each with a brightness level between 0 and 15.
For the mechanism: provide no input to remove the brightness override.
Example
# Sets the brightness of the display entity to be as if the block was well lit by a torch in a cave (no sky light).
- adjust <[some_entity]> brightness:[sky=0;block=15]
Example
# Spawns a block_display entity of a stone that is middle brightness from both the sky and block sources.
- spawn block_display[material=stone;brightness=[sky=7;block=7]] <player.location>
GroupProperties
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/properties/entity/EntityBrightness.java#L11