Elementium Sign in
Contents

Entities & mobs · Value

Entity velocity

How fast an entity is moving in each direction, in blocks per tick, and its overall speed.

Basic plan m.entity.velocity_of

In a flow

“When a player uses a command → Entity velocity → If Speed is over 1 → Answer: Slow down!”

When a player uses a command → Entity velocity → If Speed is over 1 → Answer: Slow down!

What it does

How fast an entity is moving in each direction, in blocks per tick, and its overall speed. It's a value node: no white pins, it works out its answer when a step wired to it needs it. It gives 4 values later steps can use. Find it under Entities & mobs in the palette.

When to use it

Use it when the flow needs to: how fast an entity is moving in each direction, in blocks per tick, and its overall speed.

When not to

For a value that never changes, type it into the setting instead of wiring a node.

Typical wiring

Sockets: settings you can wire

Entity Entity

The entity it's about: wire one in, like Entity from Spawn an entity.

What goes there: Type it in the side panel, or wire in an entity. e.g. Zombie

If it's empty: Optional. Left empty and unwired, the step runs without it.

Values it gives

East Number

East (+) or west (-). e.g. 0

If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.

Connects toAccount ageActive membersAddAdd answer to formAdd soundboard soundAdd timeAdd to a counterAdd to a leaderboardand 719 more

Up Number

Up (+) or down (-). e.g. 0.5

If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.

Connects toAccount ageActive membersAddAdd answer to formAdd soundboard soundAdd timeAdd to a counterAdd to a leaderboardand 719 more

South Number

South (+) or north (-). e.g. 0

If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.

Connects toAccount ageActive membersAddAdd answer to formAdd soundboard soundAdd timeAdd to a counterAdd to a leaderboardand 719 more

Speed Number

Overall speed. e.g. 0.5

If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.

Connects toAccount ageActive membersAddAdd answer to formAdd soundboard soundAdd timeAdd to a counterAdd to a leaderboardand 719 more

Often next

Related in Entities & mobs

Wires and sockets · Data values · Plans