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 632 mechanisms...
Namehas_friction
ObjectEntityTag
InputElementTag(Boolean)
Related Tags<EntityTag.has_friction> Returns an entity's friction state if one has been set.
DescriptionForces an entity into a friction state, so it either always or never experiences friction.
An entity with no friction will move in a direction forever until its velocity is changed or it impacts a block.
Does not work with players. Provide empty input to reset an entity back to its vanilla friction behavior.
Generated Example
- adjust <player> has_friction:false
Groupproperties
RequiresPaper
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/paper/src/main/java/com/denizenscript/denizen/paper/properties/EntityFriction.java#L67