You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/java/com/sovdee/skriptparticles/elements/expressions/constructors/ExprHeart.java
+23-15Lines changed: 23 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -12,37 +12,39 @@
12
12
importch.njol.skript.lang.util.SimpleExpression;
13
13
importch.njol.util.Kleenean;
14
14
importcom.sovdee.skriptparticles.shapes.Heart;
15
+
importcom.sovdee.skriptparticles.shapes.Shape;
15
16
importcom.sovdee.skriptparticles.util.MathUtil;
16
17
importorg.bukkit.event.Event;
17
18
importorg.jetbrains.annotations.Nullable;
18
19
19
20
@Name("Particle Heart")
20
21
@Description({
21
-
"Creates a heart shape with the given width and height, and optionally eccentricity. The width and height must be greater than 0.",
22
+
"Creates a heart shape with the given width and height, and optionally eccentricity. The width (x) and length (z) must be greater than 0.",
22
23
"The eccentricity defaults to 3, but must be at least 1. This determines how round/pointy the heart is. Values between 1 and 5 are recommended.",
23
-
"Note that the width and heights are not exact, but they're roughly the width and height of the heart.",
24
+
"Note that the width and length are not exact, but they're roughly the width and length of the heart.",
24
25
"Finally, this shape does not support the particle count expression and its particle density is not uniform. If anyone knows a good way to compute the complete elliptic integral of the second kind, please let me know."
25
26
})
26
27
@Examples({
27
-
"set {_heart} to heart with width 5 and height 4",
28
-
"set {_heart} to heart shape with width 5, height 7, and eccentricity 2",
29
-
"draw a heart of width 2 and height 2 at player"
28
+
"set {_heart} to heart with width 5 and length 4",
29
+
"set {_heart} to heart shape with width 5, length 7, and eccentricity 2",
"Creates a star shape with the given number of points, inner radius, and outer radius. The number of points must be at least 2, and the inner and outer radii must be greater than 0.",
22
+
"Note that \"points\" in this context is referring to the tips of the star, not the number of particles."
23
+
})
24
+
@Examples({
25
+
"set {_shape} to star with 5 points, inner radius 1, and outer radius 2",
26
+
"draw a star with 4 points, inner radius 2, and outer radius 4 at player"
0 commit comments