bukkit detect block that nowbal hit

Solutions on MaxInterview for bukkit detect block that nowbal hit by the best coders in the world

showing results for - "bukkit detect block that nowbal hit"
Aoibheann
10 May 2017
1((CraftPlayer)player).getHandle().netServerHandler.sendPacket(new Packet55BlockBreakAnimation(params));
Josué
11 Jun 2019
1public void onProjectileHit(ProjectileHitEvent event) {
2        Entity entity = event.getEntity();
3        if (entity instanceof Snowball) {
4            Location loc = entity.getLocation();
5            Vector vec = entity.getVelocity();
6            Location loc2 = new Location(loc.getWorld(), loc.getX()+vec.getX(), loc.getY()+vec.getY(), loc.getZ()+vec.getZ());
7            System.out.println(loc2.getBlock().getTypeId());
8            if (loc2.getBlock().getTypeId()==Block.SNOW_BLOCK.id)
9            {
10...