Salut voila un exemple en réutilisent l'algorithme de SkqGeometry
faire un cercle au pied du joueur en utilisent SkRayFall et EffectLib
d'abord je te partage ma fonction :)
function ShowCircle(p:player, c:text):
set {_Color::*} to {_c} split by ","
set {_c1} to {_Color::1} parsed as number
set {_c2} to {_Color::2} parsed as number
set {_c3} to {_Color::3} parsed as number
set {_Radius} to 1
set {_Angle} to 1
set {_rotation} to 1
set {_Number} to floor(360 / {_Angle})
set {_Current} to 0
loop {_Number} times:
Set {_calc} to ({_Current} / 180) * 3.14159265358979323846
Set {_x} to (cos {_calc}) * {_Radius}
Set {_z} to (sin {_calc}) * {_Radius}
Set {_y} to (sin ({_rotation} / 180) * 3.14159265358979323846) * {_x}
Set {_mod} to (cos ({_rotation} / 180) * 3.14159265358979323846) * {_x}
add {_Angle} to {_Current}
set {_location} to location of {_p}
increase x-coordinate of {_location} by {_mod}
increase y-coordinate of {_location} by {_y}
increase Z-coordinate of {_location} by {_z}
show 1 Redstone particles at {_location} with color {_c1}, {_c2} and {_c3} offset by 0, 0 and 0
Utilisation Ex:
command /part:
trigger:
set {_Color} to "51,255,51"
ShowCircle(player,{_Color})
la partie importante que tu cherche c'est
show 1 Redstone particles at {_location} with color 255, 255 and 255 offset by 0, 0 and 0
color 255,255 and 255 c'est des couleur RGB seul ' sauf erreur de ma part ' la particule " redstone " supporte la modification de couleur.
l'avantage de cette utilisation ?
ce n'est pas que coté CLIENT, donc tous les joueurs voie les particules sans avoir a fair tous une bidouille pour les montrer a tous les joueurs
en espèrent que cela puisse t'aider