Update to 1.0.1

This commit is contained in:
bi0qaw 2017-11-25 18:02:35 +01:00
parent b39b60cf74
commit a649463bd0
3 changed files with 28 additions and 0 deletions

View File

@ -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<Location> {
private Expression<Location> locations;

View File

@ -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<Vector> {
private Expression<Vector> vectors;

View File

@ -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<Vector>{
private Expression<Vector> vectors;