GETIDREL(<xoffset>,<yoffset>,<zoffset>,[&idvar],[#datavar])

Category
Calculations
Added in
v0.9.5
Permission
mod.macros.script.inventory.getidrel

Gets the ID and optionally the data value of the block at the specified coordinates relative to the player.

Returns the name of the block.

Example

// Retrieves information about the block below the player
GETIDREL(0,-1,0,&variant1)
&variant2 = GETIDREL(0,-1,0,,#data)

See also