This repository has been archived on 2021-07-14. You can view files and clone it, but cannot push or open issues or pull requests.
scriptcraft/mcp-deprecated/optional/GuiIngame.patch
walterhiggins 4a434dfdd2 reorog
2013-01-07 23:48:43 +00:00

11 lines
584 B
Diff

466a467,475
> //
> // wph 20121231 show the block id and metadata for in-focus block
> //
> MovingObjectPosition omo = this.mc.objectMouseOver;
> if (omo != null){
> int bi = this.mc.theWorld.getBlockId(omo.blockX,omo.blockY,omo.blockZ);
> int md = this.mc.theWorld.getBlockMetadata(omo.blockX,omo.blockY,omo.blockZ);
> this.drawString(var8,"Mouse:" + omo.blockX + ", " + omo.blockY + ", " + omo.blockZ + " block data value: " + bi + ":" + md,2,112,14737632);
> }