GETIDREL

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

Type: Action

Category: Calculations

Permission: mod.macros.script.inventory.getidrel

Since Minecraft Version: v1.4.2

Since Version: v0.9.5

Minor: 9

API: N/A

Patch: 5


Description

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)

Useful Links

Changelog
  • Added em v0.9.5: