#Not a function even though it exist?

1 messages · Page 1 of 1 (latest)

livid dagger
#

It seems BlockRaycastOptions isn't a function but I find it currently on stable docs.

const rayOptions = new mc.BlockRaycastOptions()
  .includeLiquidBlocks = false
  .includePassableBlocks = false
  .maxDistance = 6;
  
mc.system.runInterval(() => {
  for (const player of mc.world.getAllPlayers()) {
    const block = player.getBlockFromRay(rayOptions);
    console.warn(block.typeId);
  }
});
#

Or do I put the options inside the function?