So, how would I make particles spawn only at the player's feet, not everywhere else, scattered? I want to make a /trail command where it trails particles right at your feet, basically on the block, but showing. Here is my code:
Now, on the skUnity docs, it says that if you set a variable to the location of the player, it sets it to the feet. When I do this, some particles are spawned near the middle of the player. Also, some are scattered around the ground, making it not like a player. Some are to the left and some to the right and some to the middle. I need it to be exactly in the middle where the player walks. I am not sure how to do this, also, I am new to particles. Thanks
EDIT: I fixed it myself. I removed the XYZ 1, 1, 1 which seamed to fix it. It is that which caused the scattering. Thanks
code_language.skript:
command /particles:
trigger:
if {enabled.%player%} is false:
set {enabled.%player%} to true
message "&7Particles&8> &7Particles has been Enabled!"
else:
set {enabled.%player%} to false
message "&7Particles&8> &7Particles has been Disabled!"
while {enabled.%player%} is true:
set {location.%player%} to location of player
drawDot count 1, particle "fireworkspark", XYZ 1, 1, 1, center {location.%player%}, visibleRange 32
wait 3 ticks
Now, on the skUnity docs, it says that if you set a variable to the location of the player, it sets it to the feet. When I do this, some particles are spawned near the middle of the player. Also, some are scattered around the ground, making it not like a player. Some are to the left and some to the right and some to the middle. I need it to be exactly in the middle where the player walks. I am not sure how to do this, also, I am new to particles. Thanks
EDIT: I fixed it myself. I removed the XYZ 1, 1, 1 which seamed to fix it. It is that which caused the scattering. Thanks