Update to 1.0.1
This commit is contained in:
parent
b39b60cf74
commit
a649463bd0
@ -1,5 +1,8 @@
|
|||||||
package io.github.bi0qaw.biosphere.expression;
|
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.Expression;
|
||||||
import ch.njol.skript.lang.SkriptParser;
|
import ch.njol.skript.lang.SkriptParser;
|
||||||
import ch.njol.skript.lang.util.SimpleExpression;
|
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.Location;
|
||||||
import org.bukkit.event.Event;
|
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<Location> {
|
public class ExprLocationPath extends SimpleExpression<Location> {
|
||||||
|
|
||||||
private Expression<Location> locations;
|
private Expression<Location> locations;
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
package io.github.bi0qaw.biosphere.expression;
|
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.Expression;
|
||||||
import ch.njol.skript.lang.SkriptParser;
|
import ch.njol.skript.lang.SkriptParser;
|
||||||
import ch.njol.skript.lang.util.SimpleExpression;
|
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.event.Event;
|
||||||
import org.bukkit.util.Vector;
|
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<Vector> {
|
public class ExprVectorOffset extends SimpleExpression<Vector> {
|
||||||
|
|
||||||
private Expression<Vector> vectors;
|
private Expression<Vector> vectors;
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
package io.github.bi0qaw.biosphere.expression;
|
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.Expression;
|
||||||
import ch.njol.skript.lang.SkriptParser;
|
import ch.njol.skript.lang.SkriptParser;
|
||||||
import ch.njol.skript.lang.util.SimpleExpression;
|
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.event.Event;
|
||||||
import org.bukkit.util.Vector;
|
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<Vector>{
|
public class ExprVectorPath extends SimpleExpression<Vector>{
|
||||||
|
|
||||||
private Expression<Vector> vectors;
|
private Expression<Vector> vectors;
|
||||||
|
Loading…
Reference in New Issue
Block a user