Here's how to 'bypass' (check if ores are legit).
1. Make a method that checks bordering blocks
Wherever you render your blocks:
There, now your client only renders blocks with air bordering them, have a nice day.
1. Make a method that checks bordering blocks
Code:
public boolean shouldBlockBeRenderedOrebfuscater(Block block){
(block.xpos + 1, block.ypos, block.zpos);
(block.xpos - 1, block.ypos, block.zpos);
(block.xpos, block.ypos + 1, block.zpos);
(block.xpos, block.ypos - 1, block.zpos);
(block.xpos, block.ypos, block.zpos + 1);
(block.xpos, block.ypos, block.zpos - 1);
}
//If one of these is air, orebfuscater doesn't block it
Wherever you render your blocks:
Code:
return Vanity.xrayblocks[block.blockID] && Vanity.shouldBlockBeRenderedOrebfuscater(block);
There, now your client only renders blocks with air bordering them, have a nice day.
No comments:
Post a Comment