only check inventory every N ticks

N is 20 or 21, randomly chosen, so that everything doesn't tick at the
same time.

also, add the code base for ignoring NBT's, and for pipes to fetch the
expected cache.