📃
Scripting
  • Introduction
  • Creating a script
  • Dummy API
  • Namespaces
    • breeze
    • mc
    • inventory
    • mathUtil
    • playerController
    • UIRenderer
    • world
    • render3D
    • gameSettings
  • Objects
    • Breeze
      • Settings
        • BooleanSetting
        • IntSetting
        • DoubleSetting
        • ModeSetting
        • ColorSetting
        • MinMaxSetting
        • StringSetting
        • KeyBindSetting
        • PositionSetting
      • Animation
      • Module
        • HudModule
        • RotationModule
    • Minecraft
      • Packets
        • ClientPacket
          • C00PacketKeepAlive
          • C01PacketChatMessage
          • C02PacketUseEntity
          • C03PacketPlayer
            • C04PacketPlayerPosition
            • C05PacketPlayerLook
            • C06PacketPlayerPosLook
          • C07PacketPlayerDigging
          • C08PacketBlockPlacement
          • C09PacketHeldItemChange
          • C0APacketAnimation
          • C0BPacketEntityAction
          • C0CPacketInput
          • C0DPacketCloseWindow
          • C0EPacketClickWindow
          • C0FPacketConfirmTransaction
          • C17PacketCustomPayload
        • ServerPacket
          • S00PacketKeepAlive
          • S01PacketJoinGame
          • S02PacketChat
          • S03PacketTimeUpdate
          • S04PacketEntityEquipment
          • S05PacketSpawnPosition
          • S06PacketUpdateHealth
          • S07PacketRespawn
          • S08PacketPlayerPosLook
          • S09PacketHeldItemChange
          • S0CPacketSpawnPlayer
          • S0DPacketCollectItem
          • S0EPacketSpawnObject
          • S0FPacketSpawnMob
          • S12PacketEntityVelocity
          • S13PacketDestroyEntities
          • S14PacketEntity
            • S15PacketEntityRelMove
            • S16PacketEntityLook
            • S17PacketEntityLookMove
          • S18PacketEntityTeleport
          • S19PacketEntityHeadLook
          • S19PacketEntityStatus
          • S27PacketExplosion
          • S2APacketParticles
          • S2CPacketSpawnGlobalEntity
          • S2DPacketOpenWindow
          • S2EPacketCloseWindow
          • S2FPacketSetSlot
          • S3FPacketCustomPayload
      • Util
        • Vec3
        • AxisAlingenedBB
        • RaytraceResult
        • ItemStack
        • BlockPos
      • Entity
        • LivingEntity
          • EntityPlayerSP
    • Util
      • Timer
      • KeyBind
      • Color
      • Rotation
  • Events
    • Packet send event
    • Packet receive event
    • Pre motion event
    • Motion event
    • Post motion event
    • Input event
    • Render2D event
    • Render3D event
    • Tick event
    • Render Entity event
    • World change event
    • Join server event
  • Examples
    • AntiAim
    • CPS Counter
    • Chat Spammer
    • Blink
    • Auto Sprint
  • EnumFacing
Powered by GitBook
On this page
  • new BlockPos(double x, double y, double z)
  • getX(): int
  • getY(): int
  • getZ(): int
  • up(): BlockPos
  • down(): BlockPos
  • north(): BlockPos
  • south(): BlockPos
  • east(): BlockPos
  • west(): BlockPos
  • isReplaceable(): boolean
  • isSolid(): boolean
  • isAir(): boolean
  • getBlockId(): int
  • getHardness(): float
  1. Objects
  2. Minecraft
  3. Util

BlockPos

Represents a block in the world.

new BlockPos(double x, double y, double z)

Floors the coordinates and creates a new BlockPos object.

getX(): int

Returns the x position of the block.

getY(): int

Returns the y position of the block.

getZ(): int

Returns the z position of the block.

up(): BlockPos

Returns a new BlockPos object representing the position directly above the current block.

down(): BlockPos

Returns a new BlockPos object representing the position directly below the current block.

north(): BlockPos

Returns a new BlockPos object representing the position to the north of the current block.

south(): BlockPos

Returns a new BlockPos object representing the position to the south of the current block.

east(): BlockPos

Returns a new BlockPos object representing the position to the east of the current block.

west(): BlockPos

Returns a new BlockPos object representing the position to the west of the current block.

isReplaceable(): boolean

Determines if the block at the current position is replaceable in the world context.

isSolid(): boolean

Checks if the block at the current position is a full block, indicating solidity.

isAir(): boolean

Checks if the block at the current position is an air block.

getBlockId(): int

Returns the unique block ID of the block at the current position.

getHardness(): float

Retrieves the hardness value of the block at the current position, reflecting how long it takes to break

Last updated 11 months ago

A list of all the block ids can be found on .

this website