Shoot particle without addon

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

code_language.skript:
#FUNCTION USAGE: line(<from>, <to>, <particle name (text)>)
function line(loc1: location, loc2: location, particle: text):
  loop blocks between block at {_loc1} and block at {_loc2}:
    show ({_particle} parsed as visual effect) at location of loop-block
      
      
      
#EXAMPLE USAGE
command /line <text>:
  usage: /line ender signal, mobspawner flames, potion break, smoke, hurt, sheep eating, wolf hearts, wolf shaking, wolf smoke, firework's spark, critical hit, magical critical hit, potion swirl, transparent potion swirl, spell, spell, witch spell, note, portal, flying glyph, flame, lava pop, footstep, water splash, smoke particle, huge explosion, large explosion, explosion, void fog, small smoke, cloud, coloured dust, snowball break, water drip, lava drip, snow shovel, slime, heart, angry villager, happy villager, large smoke, item crack, block break, block dust, totem, spit, squid ink, bubble pop, current down, bubble column up, nautilus, dolphin
  trigger:
    line(location of player, location of block 5 meters in front of player, arg 1)
    send "Line particle complete."

There you go. You can use this with the line() function inside your skripts.