diff --git a/src/main/java/io/github/bi0qaw/biosphere/expression/ExprLocationPath.java b/src/main/java/io/github/bi0qaw/biosphere/expression/ExprLocationPath.java index 360f9de..0a376e5 100644 --- a/src/main/java/io/github/bi0qaw/biosphere/expression/ExprLocationPath.java +++ b/src/main/java/io/github/bi0qaw/biosphere/expression/ExprLocationPath.java @@ -1,5 +1,8 @@ package io.github.bi0qaw.biosphere.expression; +import ch.njol.skript.doc.Description; +import ch.njol.skript.doc.Examples; +import ch.njol.skript.doc.Name; import ch.njol.skript.lang.Expression; import ch.njol.skript.lang.SkriptParser; import ch.njol.skript.lang.util.SimpleExpression; @@ -8,6 +11,12 @@ import io.github.bi0qaw.biosphere.util.LocationLib; import org.bukkit.Location; import org.bukkit.event.Event; + +@Name("Location Path") +@Description("Creates a path between the locations. The density value controls the amount of points. A higher number increases the amount of points. A density of 1 corresponds to 1 point per block.") +@Examples({"set {_polygon::*} to polygon at player with 7 points and radius 3", + "set {_path::*} to path between {_polygon::*} with density 5", + "show happy villager at {_path::*}"}) public class ExprLocationPath extends SimpleExpression { private Expression locations; diff --git a/src/main/java/io/github/bi0qaw/biosphere/expression/ExprVectorOffset.java b/src/main/java/io/github/bi0qaw/biosphere/expression/ExprVectorOffset.java index 5557448..e52a0b3 100644 --- a/src/main/java/io/github/bi0qaw/biosphere/expression/ExprVectorOffset.java +++ b/src/main/java/io/github/bi0qaw/biosphere/expression/ExprVectorOffset.java @@ -1,5 +1,8 @@ package io.github.bi0qaw.biosphere.expression; +import ch.njol.skript.doc.Description; +import ch.njol.skript.doc.Examples; +import ch.njol.skript.doc.Name; import ch.njol.skript.lang.Expression; import ch.njol.skript.lang.SkriptParser; import ch.njol.skript.lang.util.SimpleExpression; @@ -8,6 +11,14 @@ import io.github.bi0qaw.biosphere.util.VectorLib; import org.bukkit.event.Event; import org.bukkit.util.Vector; + +@Name("Vector Offset") +@Description("Adds each offset to all vectors") +@Examples({"#creates a 8 circles on the vertices of a cube and displays them with particles around the player", + "set {_cube::*} to cube with radius 3", + "set {_circle::*} to circle with radius 2 and density 5", + "set {_cube-circles::*} to vectors {_cube::*} offset by {_circle::*}", + "show happy villager at player offset by {_cube-circles::*}"}) public class ExprVectorOffset extends SimpleExpression { private Expression vectors; diff --git a/src/main/java/io/github/bi0qaw/biosphere/expression/ExprVectorPath.java b/src/main/java/io/github/bi0qaw/biosphere/expression/ExprVectorPath.java index bcd23ed..d9dce5f 100644 --- a/src/main/java/io/github/bi0qaw/biosphere/expression/ExprVectorPath.java +++ b/src/main/java/io/github/bi0qaw/biosphere/expression/ExprVectorPath.java @@ -1,5 +1,8 @@ package io.github.bi0qaw.biosphere.expression; +import ch.njol.skript.doc.Description; +import ch.njol.skript.doc.Examples; +import ch.njol.skript.doc.Name; import ch.njol.skript.lang.Expression; import ch.njol.skript.lang.SkriptParser; import ch.njol.skript.lang.util.SimpleExpression; @@ -8,6 +11,11 @@ import io.github.bi0qaw.biosphere.util.VectorLib; import org.bukkit.event.Event; import org.bukkit.util.Vector; +@Name("Vector Path") +@Description("Creates a path between vectors. The density value controls the amount of points. A higher number increases the amount of points. A density of 1 corresponds to 1 point per block.") +@Examples({"set {_polygon::*} to polygon with 7 points and radius 3", + "set {_path::*} to vector path between {_polygon::*} with density 5", + "show happy villager at player offset by {_path::*}"}) public class ExprVectorPath extends SimpleExpression{ private Expression vectors;