Rise 6 Scripting API
  • Introduction
  • Examples
    • Simple vanilla hop
    • Simple collide fly bypass
    • Events example
    • Example settings
    • Exempted value speed bypass
    • Packet nofall
    • Killaura
    • Arraylist
  • API Documentation
    • Scripting metadata
    • Objects
      • FontRenderer
      • Vector
        • Vector3
        • Vector2
      • ItemStack
      • BlockPos
      • Block
      • Inventory
      • Command
      • Module
      • EntityLiving
      • Entity
    • Global namespaces
      • render
      • input
      • world
      • rise
      • player
      • mc
      • network
      • packet
    • Events
      • Load event
      • Unload event
      • Module events
        • Attack event
        • World Change Event
        • Module Toggle Event
        • Server Kick event
        • Game event
        • Chat input event
        • Click event
        • Entity render event
        • Hit slow down event
        • Jump event
        • Keyboard Input event
        • Kill event
        • Move input event
        • Post motion event
        • Pre motion event
        • Strafe event
        • Pre update event
        • Render 2D event
        • Render 3D event
        • Water event
        • Tick event
        • Slow down event
      • onExecute event
Powered by GitBook
On this page
  • isLiving(): Boolean
  • getPosition(): Vector3d
  • getLastPosition(): Vector3d
  • getMotion(): Vector3d
  • getRotation(): Vector2f
  • setYaw(yaw): Undefined
  • setPitch(pitch): Undefined
  • getLastRotation(): Vector2f
  • getTicksExisted(): Number
  • getEntityId(): Number
  • getDisplayName(): String
  • getInventory(): Inventory
  • getDistanceToEntity(entity): Number
  • getDistance(x, y, z): Number
  1. API Documentation
  2. Objects

Entity

This page goes over the Entity object.

isLiving(): Boolean

Returns if the entity is instance of LivingEntity.

getPosition(): Vector3d

Returns the entity position.

getLastPosition(): Vector3d

Returns the previous tick entity position.

getMotion(): Vector3d

Returns the entity motion.

getRotation(): Vector2f

Returns the entity rotation.

setYaw(yaw): Undefined

Sets the entities yaw.

setPitch(pitch): Undefined

Sets the entities pitch.

getLastRotation(): Vector2f

Returns the previous tick entity rotation.

getTicksExisted(): Number

Returns the amount of ticks the entity has existed for.

getEntityId(): Number

Returns the entity ID.

getDisplayName(): String

Returns the entity display name.

getInventory(): Inventory

Returns the inventory of the entity.

getDistanceToEntity(entity): Number

Argument
Type
Description

entity

Entity

Another entity.

Returns distance between this and another entity.

getDistance(x, y, z): Number

Argument
Type
Description

x

Number

X position.

y

Number

Y position.

z

Number

Z position.

Returns the distance between this entity and the specified position.

PreviousEntityLivingNextGlobal namespaces

Last updated 1 year ago