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
  • getPosition(): Vector3
  • getHardness(): Number
  • getHardness(int slot): Number
  • getBlock(): Block
  1. API Documentation
  2. Objects

BlockPos

This page goes over about the BlockPos object.

getPosition(): Vector3

Returns the position of the blockpos.

getHardness(): Number

Returns the hardness of the block at the blockpos, you can get the amount of ticks it will take to break the block by doing 1 / hardness.

getHardness(int slot): Number

Returns the hardness using the item in the slot id, read getHardness method description for more information.

getBlock(): Block

Returns the block at the position.

PreviousItemStackNextBlock

Last updated 1 year ago