Get a wrapper around the attributes of any given entity
The entity to get attributes of
Clear all effects from an entity.
The entity to clear effects from
Get the distance between any two locations, or any two objects that can be casted to locations (like entities)
The first location or object that can be casted to a location
The second location or object that can be casted to a location
Drop an item at a location.
The item to drop
The location to drop it at
Effect an entity with a specific effect with an optional duration and amplifier.
The entity to effect
The options, optional if you're specifying only the effect, contains options like duration
and amplifier
.
Equip any entity with items for their main hand, offhand, or armor.
The entity to equip.
The equipment to provide them with.
Give one or more items to any entity.
The entity to give the items to.
The items to give.
Return the target that the entity is looking at.
The entity whose looking at the target.
The range of how far away the target can be at the most.
Shoot a projectile from an entity.
The entity to shoot the projectile from
The projectile type to shoot
The optional options such as the speed and direction
Swap the positions of any two entities.
The entity to swap with the other entity's position
The second entity to swap with the first entity's position
Generated using TypeDoc
This is the documentation for the
velt/helpers
module. Thevelt-helpers
module contains functionality that isn't necessarily part of Velt's core, but is generally still very useful when you need it. It contains one export with plenty of different utility functions and classes.