AstralEdit

WorldEdit Extension to modify your world in a way you have not seen before.

License

License

GroupId

GroupId

com.github.shynixn
ArtifactId

ArtifactId

astraledit
Last Version

Last Version

1.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

AstralEdit
WorldEdit Extension to modify your world in a way you have not seen before.
Project URL

Project URL

https://github.com/Shynixn/AstralEdit

Download astraledit

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.shynixn/astraledit/ -->
<dependency>
    <groupId>com.github.shynixn</groupId>
    <artifactId>astraledit</artifactId>
    <version>1.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.shynixn/astraledit/
implementation 'com.github.shynixn:astraledit:1.1.0'
// https://jarcasting.com/artifacts/com.github.shynixn/astraledit/
implementation ("com.github.shynixn:astraledit:1.1.0")
'com.github.shynixn:astraledit:jar:1.1.0'
<dependency org="com.github.shynixn" name="astraledit" rev="1.1.0">
  <artifact name="astraledit" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.shynixn', module='astraledit', version='1.1.0')
)
libraryDependencies += "com.github.shynixn" % "astraledit" % "1.1.0"
[com.github.shynixn/astraledit "1.1.0"]

Dependencies

test (2)

Group / Artifact Type Version
org.mockito : mockito-core jar RELEASE
org.junit.jupiter : junit-jupiter-api jar 5.0.0-M4

system (8)

Group / Artifact Type Version
net » minecraft18R1 jar 1.0
net » minecraft18R2 jar 1.0
net » minecraft18R3 jar 1.0
net » minecraft19R1 jar 1.0
net » minecraft19R2 jar 1.0
net » minecraft110R1 jar 1.0
net » minecraft111R1 jar 1.0
net » minecraft112R1 jar 1.0

Project Modules

There are no modules declared in this project.

AstralEdit Build Status GitHub license

branch status coverage version download
master Build Status Coverage GitHub license Download latest release
experimental Build Status Coverage GitHub license Download snapshots

JavaDocs: https://shynixn.github.io/AstralEdit/apidocs/

Description

AstralEdit is a spigot plugin to render WorldEdit selections in Minecraft.

Features

  • View your WorldEdit selection in advance
  • Move, rotate, flip, mirror selections
  • Place your selection anywhere
  • Version support 1.8.R1 - 1.12.R1

Installation

Screenshots

alt tag alt tag

How to use the API

Maven

<dependency>
     <groupId>com.github.shynixn</groupId>
     <artifactId>astraledit</artifactId>
     <version>1.1.0</version>
     <scope>provided</scope>
</dependency>

Gradle

dependencies {
    compileOnly 'com.github.shynixn:astraledit:1.1.0'
}

Rendering the WorldEdit selection of the player and moving it to the player's location

//Get a player and a plugin instance
Player player;
Plugin plugin;

 //It is highly recommend to work with selections asynchronly to increase server performance
Bukkit.getServer().getScheduler().runTaskAsynchronously(plugin, new Runnable() {
   @Override
   public void run() {
       Selection selection = AstralEditApi.render(player);
       selection.move(player.getLocation());
   }
});

Rendering the blocks between two given corners, moving it to a targetLocation and placing the blocks.

//Select the locations
Location corner1 = new Location(Bukkit.getWorld("world"), 20, 5, 20);
Location corner2 = new Location(Bukkit.getWorld("world"), 40, 10, 40);
Location targetLocation  = new Location(Bukkit.getWorld("world"), 70, 8, 40);

//Get a player and a plugin instance
Player player;
Plugin plugin;

Bukkit.getServer().getScheduler().runTaskAsynchronously(plugin, new Runnable() {
        @Override
        public void run() {
            Selection selection = AstralEditApi.renderAndDestroy(player,corner1, corner2);
            selection.move(targetLocation);
            selection.placeBlocks();
            AstralEditApi.clearRenderedObject(player); //Do not forget to clean up the selection
        }
});

Contributing

  • Fork the AstralEdit project on github and clone it to your local environment.
  • Use BuildTools.jar from spigotmc.org to build the following dependencies.
java -jar BuildTools.jar --rev 1.8
java -jar BuildTools.jar --rev 1.8.3
java -jar BuildTools.jar --rev 1.8.8
java -jar BuildTools.jar --rev 1.9
java -jar BuildTools.jar --rev 1.9.4
java -jar BuildTools.jar --rev 1.10
java -jar BuildTools.jar --rev 1.11
java -jar BuildTools.jar --rev 1.12
java -jar BuildTools.jar --rev 1.13
java -jar BuildTools.jar --rev 1.13.1
  • Install the created libraries to your local maven repository.
mvn install:install-file -Dfile=spigot-1.8.jar -DgroupId=org.spigotmc -DartifactId=spigot18R1 -Dversion=1.8.0-R1.0 -Dpackaging=jar
mvn install:install-file -Dfile=spigot-1.8.3.jar -DgroupId=org.spigotmc -DartifactId=spigot18R2 -Dversion=1.8.3-R2.0 -Dpackaging=jar
mvn install:install-file -Dfile=spigot-1.8.8.jar -DgroupId=org.spigotmc -DartifactId=spigot18R3 -Dversion=1.8.8-R3.0 -Dpackaging=jar
mvn install:install-file -Dfile=spigot-1.9.jar -DgroupId=org.spigotmc -DartifactId=spigot19R1 -Dversion=1.9.0-R1.0 -Dpackaging=jar
mvn install:install-file -Dfile=spigot-1.9.4.jar -DgroupId=org.spigotmc -DartifactId=spigot19R2 -Dversion=1.9.4-R2.0 -Dpackaging=jar
mvn install:install-file -Dfile=spigot-1.10.2.jar -DgroupId=org.spigotmc -DartifactId=spigot110R1 -Dversion=1.10.2-R1.0 -Dpackaging=jar
mvn install:install-file -Dfile=spigot-1.11.jar -DgroupId=org.spigotmc -DartifactId=spigot111R1 -Dversion=1.11.0-R1.0 -Dpackaging=jar
mvn install:install-file -Dfile=spigot-1.12.jar -DgroupId=org.spigotmc -DartifactId=spigot112R1 -Dversion=1.12.0-R1.0 -Dpackaging=jar
mvn install:install-file -Dfile=spigot-1.13.jar -DgroupId=org.spigotmc -DartifactId=spigot113R1 -Dversion=1.13.0-R1.0 -Dpackaging=jar
mvn install:install-file -Dfile=spigot-1.13.1.jar -DgroupId=org.spigotmc -DartifactId=spigot113R2 -Dversion=1.13.1-R2.0 -Dpackaging=jar
  • Reimport the AstralEdit maven project and execute 'mvn package' afterwards.
  • The generated astraledit-bukkit-plugin/target/astraledit-bukkit-plugin-version.jar can be used for testing on a server.

Licence

Copyright 2015-2018 Shynixn

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Versions

Version
1.1.0
1.0.0