Block particle help

  • 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 community!

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

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Pumpkani

Member
Jun 10, 2024
10
0
1
So, I've been trying to make a skript that makes every barrel in a 5 block radius of the player to give off lava particles, but have no luck. This is what I have so far:

code_language.skript:
every second:
  loop all players:
    loop all blocks in radius 5 around loop-player:
      if loop-block is barrel:
        play lava at location of loop-block to loop-player

But I keep getting errors such as "Can't understand with condition/effect" and "There's no loop that matches 'loop-block to'" over and over, and I think the issue is just with the last line.
2024-08-05_02.32.30.png
<--- Example of what I want it to do
 
Here, we can use the play to directly play it on the block, if we adjust the 10 it will change the quantity of the lava pops. You were getting an error because "lava" isn't a valid particle. If you are wondering where to find all of the possible particles: https://docs.skriptlang.org/docs.html#visualeffect


Code:
# Tested on Spigot 1.21
# Skript Version 2.9.1
# Requires: Nothing Extra

every second:
    loop all players:
        loop all blocks in radius 5 around loop-player:
            if loop-block is barrel:
                play 10 lava pop on loop-block