Denizen Script Tags


Tags are always written with a <between these marks>, and are critical to scripts, as the primary way to read data.
Learn about how tags work in The Beginner's Guide.


Showing 1 out of 2454 tags...
Name<MaterialTag.switched>
ReturnsElementTag(Boolean)
MechanismMaterialTag.switched
DescriptionReturns whether a material is 'switched on', which has different semantic meaning depending on the material type.
More specifically, this returns whether:
- a Powerable material (like pressure plates) is activated
- an Openable material (like doors) is open
- a dispenser is powered and should dispense its contents
- a daylight sensor is inverted (detects darkness instead of light)
- a lightable block is lit
- a piston block is extended
- an end portal frame has an ender eye in it
- a hopper is NOT being powered by redstone
- a sculk_shrieker can summon a warden
Generated Example
- if <material[stone].switched>:
    - narrate "it was true!"
- else:
    - narrate "it was false!"
Synonyms (Search Aid)materialtag.lit, materialtag.open, materialtag.active
Groupproperties
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/properties/material/MaterialSwitchable.java#L60