GETID
GETID(<x>,<y>,<z>,[&idvar],[#datavar])
Type: Action
Category: Calculations
Permission: mod.macros.script.inventory.getid
Since Minecraft Version: v1.2.4
Since Version: v0.8.6
Minor: 8
API: N/A
Patch: 6
Description
Gets the ID and optionally the data value of the block at the specified coordinates in the world.
Returns the name of the block.
Example
GETID(0,32,0,&variant1)
&variant2 = GETID(0,32,0,,#data)
Useful Links
Changelog
- Added em v0.8.6:
- Updated em v0.10.4: Minecraft-style relative locations by prepending `~` to the coordinates
- Updated em v0.9.5: Added and then removed relative syntax (`+` and `-`), because it broke negative coordinates
- Updated em v0.9.5: New fifth parameter to retrieve the block metadata