Add Velocity
Adds velocity to an entity.
Type ID: kaya:add_velocity
Field
Type
Default
Description
method
Method
Determines the method of adding velocity to an entity.
velocity
Vec3 Provider
The velocity to add to the entity.
Method
A string that determines how velocity is applied to an entity. Each type has additional fields to further control how the velocity is applied.
Example
Single Pair
{
"type" : "kaya:add_velocity" ,
"method" : "single" ,
"space" : "world" ,
"entity" : "this" ,
"velocity" : [
0.0 ,
10.0 ,
0.0
]
}
This example will launch the entity from the kaya:this_entity context parameter high in the air.
{
"type" : "kaya:add_velocity" ,
"method" : "pair" ,
"reference" : "rotation" ,
"first" : "actor" ,
"second" : "target" ,
"velocity" : [
0.0 ,
0.0 ,
-2.0
]
}
This example will essentially pull the entity from the kaya:target_entity context parameter to the entity from the kaya:actor_entity context parameter.
History
Minecraft
Mod
Changelog
1.21.5
0.1.0
Added the type.