Denizen Script Commands


Commands are always written with a '-' before them, and are the core component of any script, the primary way to cause things to happen.
Learn about how commands work in The Beginner's Guide.


Showing 1 out of 184 commands...
NameMount
Syntaxmount (cancel) [<entity>|...] (<location>)
Short DescriptionMounts one entity onto another.
Full DescriptionMounts an entity onto another as though in a vehicle.
Can be used to force a player into a vehicle or to mount an entity onto another entity, for example a player onto an NPC.
If the entity(s) don't exist they will be spawned.
Accepts a location, which the entities will be teleported to on mounting.
Related Tags<EntityTag.vehicle> If the entity is in a vehicle, returns the vehicle as a EntityTag.
<EntityTag.is_inside_vehicle> Returns whether the entity is inside a vehicle.
<entry[saveName].mounted_entities> returns a list of entities that were mounted.
Usage Example
# Use to mount an NPC on top of a player.
- mount <npc>|<player>
Usage Example
# Use to spawn a mutant pile of mobs.
- mount cow|pig|sheep|chicken
Usage Example
# Use to place a diamond block above a player's head.
- mount falling_block,diamond_block|<player>
Usage Example
# Use to force an entity in a vehicle.
- mount <player>|boat
Groupentity
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/scripts/commands/entity/MountCommand.java#L27