bukkit detect block that nowbal hit
((CraftPlayer)player).getHandle().netServerHandler.sendPacket(new Packet55BlockBreakAnimation(params));
bukkit detect block that nowbal hit
((CraftPlayer)player).getHandle().netServerHandler.sendPacket(new Packet55BlockBreakAnimation(params));
bukkit detect block that nowbal hit
public void onProjectileHit(ProjectileHitEvent event) {
Entity entity = event.getEntity();
if (entity instanceof Snowball) {
Location loc = entity.getLocation();
Vector vec = entity.getVelocity();
Location loc2 = new Location(loc.getWorld(), loc.getX()+vec.getX(), loc.getY()+vec.getY(), loc.getZ()+vec.getZ());
System.out.println(loc2.getBlock().getTypeId());
if (loc2.getBlock().getTypeId()==Block.SNOW_BLOCK.id)
{
...
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us