Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal
  • 0
nnystyxx

Computronics particle card trouble

Question

I'm attempting to spawn particles with the Particle Effects Card from Computronics. In the lua interpreter, I have tried a number of different approaches to inputting the arguments, but I always get the same error.

 

=component.particle.spawn
function(name:string, xCoord:number, yCoord:number, zCoord:number [, defaultVelo:number]):boolean; function(name:string, xCoord:number, yCoord:number, zCoord:number [, xVelo:number, yVelo:number, zVelo:number ]):boolean; Spawns a particle effect at the specified relative coordinates optionally with the specified velocity

Here's the component and command.

component.particle.spawn(minecraft:barrier xCoord:3)
stdin:1: function arguments expected near 'xCoord'

component.particle.spawn(minecraft:barrier, 1, 1, 1)
stdin:1: function arguments expected near ,

And here's what happens when I attempt to actually use the command. Anything coming after the particle identifier gives me that 'function arguments expected near' error. Is this a problem on my end? Can the interpreter not be used for this? Or is there a glitch with the card itself?

Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

That's because you're missing " before and after the string. Instead of just minecraft:barrier, you need to use "minecraft:barrier".

Also I'm pretty sure you don't need that minecraft: at the start of the particle name.

component.particle.spawn("barrier", 1, 1, 1)

 

Link to post
Share on other sites
  • 0
1 hour ago, Fingercomp said:

That's because you're missing " before and after the string. Instead of just minecraft:barrier, you need to use "minecraft:barrier".

Also I'm pretty sure you don't need that minecraft: at the start of the particle name.


component.particle.spawn("barrier", 1, 1, 1)

 

 

That's exactly what it is, thank you. It was returning it as nil without the minecraft: part, but without it and with quotes it works perfectly. Thanks a bunch!

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.