Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Particle syntax doesn't work for dust and block particles #95

Closed
ghost opened this issue Mar 8, 2022 · 1 comment
Closed

Particle syntax doesn't work for dust and block particles #95

ghost opened this issue Mar 8, 2022 · 1 comment

Comments

@ghost
Copy link

ghost commented Mar 8, 2022

What the title says. Block and dust particle commands are expected to work like the rest of particles when they actually have a different syntax.

ERROR  | mecha  Expected identifier or number but got literal '~'.
       | ctm_src\data\class\functions\type\bower\aim\main_arrow.mcfunction:8:58
       |      7 |  execute at @s run particle minecraft:composter ~ ~1 ~ 0 0 0 0 2 force
       |      8 |  execute at @s run particle minecraft:dust 0 1 1 0.9 ~ ~1 ~ 0 0 0 0.01 1 force
       |        :                                                           ^
ERROR  | mecha  Identifier 'yellow_concrete' is not defined.
       | ctm_src\data\playerhp\functions\absorption\destroy.mcfunction:10:44
       |      9 |  execute at @s positioned ^ ^ ^0.25 run particle minecraft:flash ~ ~1.62 ~ 0 0 0 0 1 force
       |     10 |  execute at @s run particle minecraft:block yellow_concrete ~ ~1.62 ~ 0 0.4 0 0 30 force
       |        :                                             ^^^^^^^^^^^^^^^
ERROR  | mecha  Identifier 'minecraft' is not defined.
       | ctm_src\data\playerhp\functions\damage.mcfunction:11:44
       |     10 |  #Reproduces soul bleed effect
       |     11 |  execute at @s run particle minecraft:block minecraft:light_blue_concrete ~ ~1 ~ 0.05 0.1 0.05 0 3
       |        :                                             ^^^^^^^^^
@vberlier
Copy link
Member

vberlier commented Mar 9, 2022

Good catch! This was already handled correctly but there was an oversight in the brand new mecha.contrib.nested_resources plugin that affected the particle command. Just fixed it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant