The script makes a trail behind a player.
How can I use a variable in? Im trying to make the particles change, but the particles is not appereaing. (The problem is in the draw 5 of %{typeofparticles}% at player ~ {_v} with extra 0 to all players, how can i make it work?)
Dont mind in language.
How can I use a variable in? Im trying to make the particles change, but the particles is not appereaing. (The problem is in the draw 5 of %{typeofparticles}% at player ~ {_v} with extra 0 to all players, how can i make it work?)
Dont mind in language.
code_language.skript:
on load:
set {boolean} to yes
set {typeofparticles} to "heart"
on player move:
if player has permission "rmwtrail.trail":
if {boolean} is yes:
draw 5 of %{typeofparticles}% at player ~ {_v} with extra 0 to all players
wait 2 ticks
command /trail [<text>]:
trigger:
if arg 1 is "on":
send "&9&l[&r&6&lRMW Trail&9&l] &aPomyślnie wlączono efekt."
set {boolean} to yes
if arg 1 is "off":
send "&9&l[&r&6&lRMW Trail&9&l] &cPomyślnie wylączono efekt."
set {var::boolean} to no
if arg 1 is "heart":
set {typeofparticles} to "heart"
if arg 1 is "cloud":
set {typeofparticles} to "cloud"
send "%{typeofparticles}%"
on tab complete of "/trail":
set tab completions for position 1 to "on", "off", "heart" and "cloud"