Get the specified block data||doc135407

September 20, 2022

Format

 Map:getBlockData(pos) 
  • The class to which the function belongs:Map

Description

Get custom square data for the specified coordinates in the map.


Parameters

Variable name type Description
pos Vector3 specified location


Value Returned

type Description
variant data sheet


Code Samples

on the server sideglobal script, get the custom square data of (1, 1, 1) coordinates on the map001 map

local map = World.CurWorld:getMap("map001")
local data = map:getBlockData(Lib.v3(1, 1, 1))