Bukkit/Spigot MC Server Side Plugin to utilize own AI (MC 1.12.2)
Using NMSUtils from jetp250 (https://www.spigotmc.org/members/jetp250.105311/)
wget "https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar" -O BuildTools.jar
java -jar BuildTools.jar --rev 1.12.2
Place generated spigot-1.12.2.jar
in spigotmc
folder. See below for directory structure for use with IntelliJ IDE.
If you don't use IntelliJ simply ignore the folder .idea
and the GoldRushChicken.iml
project file. The project uses spigot jar and java sdk as module dependencies.
The directory structure for the IntelliJ project:
$HOME/Documents/GoldRushChicken:
* out: IntelliJ build files
* server: place spigot jar here for execution
* server/plugin: generated plugin jar goes here by calling "Build artifacts"
* spigotmc: generate spigot jar here by executing the build tools, used as module dependency
* mc: place mc client jar here for execution
* src: source files
$HOME
is detected on both windows and linux.
Start the server with the following command for remote debugging:
java -Xmx2G -Xms2G -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 -jar ./spigot-1.12.2.jar
command /grc
spawns a gold rush chicken near the player
command /grd
spawns a skeletal digga (skeletal whither) near the player
Add one seed to the chicken inventory and it will spawn a skeletal digga and follow him to collect digged ore.