Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- trail(projectile, loc -> {
- World world1 = loc.getWorld();
- world1.spawnParticle(Particle.SPELL_WITCH, loc, 10, 0.5, 0.5, 0.5, 0.05, null, true);
- world1.spawnParticle(Particle.ENCHANTMENT_TABLE, loc, 10, 0.5, 0.5, 0.5, 0.15, null, true);
- });
- private void trail(Entity entity, Consumer<Location> consumer) {
- BukkitRunnable bukkitRunnable = new BukkitRunnable() {
- @Override
- public void run() {
- if (entity.isValid()) {
- consumer.accept(entity.getLocation());
- } else cancel();
- }
- };
- Common.runTaskTimer(bukkitRunnable, 1, 1);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement