Vehicle (Expression) — Skript

Addon: Skript · Category: Expression · Since: 2.0

Syntax

[the] vehicle[s] [of %entities%]

Description

The vehicle an entity is in, if any. This can actually be any entity, e.g. spider jockeys are skeletons that ride on a spider, so the spider is the 'vehicle' of the skeleton. See also: <a href='#ExprPassenger'>passenger</a>

Examples

set the vehicle of {game::players::*} to a saddled pig
give {game::players::*} a carrot on a stick
on vehicle enter:
	vehicle is a horse
	add 1 to {statistics::horseMounting::%uuid of player%}

View source