火球修复:落点产生爆炸并点燃方块
Auto Release / build (push) Successful in 30s

- fb.setYield(1.5f) 爆炸半径约1.5格
- fb.setIsIncendiary(true) 点燃爆炸范围内方块
This commit is contained in:
2026-07-23 19:07:07 +08:00
parent 89525a4e6b
commit b8ccd56818
@@ -1172,11 +1172,11 @@ public class PVPArenaManager implements Listener {
player.getInventory().setItemInMainHand(null); player.getInventory().setItemInMainHand(null);
} }
// 发射火焰弹(不破坏地形、不引火) // 发射火焰弹(落点爆炸 + 点燃方块)
Vector dir = player.getLocation().getDirection().normalize().multiply(2.0); Vector dir = player.getLocation().getDirection().normalize().multiply(2.0);
SmallFireball fb = player.launchProjectile(SmallFireball.class, dir); SmallFireball fb = player.launchProjectile(SmallFireball.class, dir);
fb.setYield(0); fb.setYield(1.5f); // 爆炸威力约1.5格半径
fb.setIsIncendiary(false); fb.setIsIncendiary(true); // 点燃爆炸范围内方块
player.playSound(player.getLocation(), Sound.ENTITY_BLAZE_SHOOT, 0.5f, 1.2f); player.playSound(player.getLocation(), Sound.ENTITY_BLAZE_SHOOT, 0.5f, 1.2f);
} }