3.0 rewrite for minecraft 1.8