@CzechHek, that's great i guess, i must try it on a server called jartex network, because before that update, when i was toggling the "specificplayer" mode, the npc was the only one hitting and looking.
number |= 0
But according to my test, ~~x is much faster than Math.floor(x) for random positive double value. So you can use bit operation instead of Math.floor(x) and parseInt(x)
if (block != null) blocks.set(blockPos, block); can be simplified to if (block) blocks.set(blockPos, block); or just block && blocks.set(blockPos, block);