Skip to content

NeuralNetworkAPI Plugin cho Minecraft 1.12

A bukkit plugin for adding neural networks into minecraft.

lượt xem
20 lượt xem
Đã cập nhật
Đã cập nhật 17.10.2026
  • 1.8.1 — 1.12

Giới thiệu plugin NeuralNetworkAPI

NeuralNetworkAPI

A bukkit plugin for adding neural networks into minecraft.

How to use (Basic-Demo)

  • To start, use /nn cnn or /nn createNewNN to see the list of all neural network types. I would recommend selecting LogicalOR to start off with
  • Then, use /nn startlearning to start training the NN.
  • Almost immediately after sending that command, use /nn stoplearning to stop training. Within the seconds of sending these two commands, the bot has gone through over a thousand scenarios, and should be 100% accurate. (For other NNs, you can check the accuracy by checking the console.)
  • Now, to test it, use /nn test to test two inputs, either true or false. (example: /nn test true false)
  • For LogicalOR, it should print out true if either the first and/or the second input is true.

For non-developers

This plugin provides nothing on its own besides a few demos of what this API can achieve. If you do not plan on developing your own NeuralNetwork plugin or using another plugin the uses this API, this plugin may be useless to you.

For plugin developers

There are a few things that you should know before attempting to make a new Neural network type

  • The example package gives a number of examples of how to create NNs. The logic gate NNs should be the easiest to understand.
  • By default, all NNs that extends NNBaseEntity automatically implement ConfigurationSerializable. However, in order for bukkit to be able to load these values from the config, you will need to create a new construcor for the class like so:

public CustomNeuralNetwork(Map<String,Object> map){ super(map); }

...and let the ConfigurationSerialization class register the object in the onEnable or onLoad of the main class like so:

public void onEnable(){ ConfigurationSerialization.registerClass(CustomNeuralNetwork.class); }

  • After this, you should be able to save and load the NNBaseEntity to and from the config. Note that you cannot save the NeuralNetwork instance to the config.
  • Ideally, no other part of your plugin should directly reference your custom neural network object. Instead, all calls to that object should be done through the NeuralNetwork object.
  • For best results, only call DeepReinformentUtil.instantaneousReinforce when the NN failed in any way. Calling it when it returned the correct value tends to make it "forget" what it may have already learned.
  • This API is still in development. Some aspects of this plugin may change in future updates. Continually to check the github page for updates and make sure your project always references the newest version.
  • When traing your NeuralNetwork, if you do not want the console to fill up with debug messages, use NeuralNetwork#setBroadcasting(false); to disable console debugging.
  • If your AI is not return the values you expect, or want to know what your NN is "thinking" given an input, you can open the grapher to have a visualisation of what is happening. Use NeuralNetwork#openGrapher(); to open the grapher instance. Once you are done, you can use NeuralNetwork#closeGrapher(); to propperly shut down the window.
  • Adding more hidden layers to your neural network increases the complexity of patterns that it can learn.
  • In certain cases, having a BiasNeuron can increase or decrease the ability for the network to learn. For situations where certain outputs are needed if there are no inputs (XNOR,NAND, Inverted, for example), then it is better to have atleast 1 bias neuron in the inputs.
  • Having BiasNeurons on the hidden layers may or may not help with certain situations.

How this works

NeuralNetworks start with three basic components, a Sensory array, an AI object, and a Controler object.

  • The Sensory array determins the inputs. This could be booleans, representing a true or false value, or numbers which represent possible states the for the input.
  • The AI is what converts the inputs into outputs. Through a series of neurons, each with their own values and thresholds, the information is passed from the input into outputs based on how the NN has been trained.
  • The Controler is how you convert the outputs into data that you can use. For example, the controler can convert the outputs into a boolean, determining if the AI detected a swear word for a swear filter, or determining the sum of two integers.

GithubPage:

https://github.com/ZombieStriker/NeuralNetworkAPI

This plugin collects stats using bStats:

Bestats only collects information regarding your system architecture, the server version, and plugin version. If you really do not want any of this information being sent, you can disable bstats by going into the config and setting: "enableStats" to false.

Cách cài đặt NeuralNetworkAPI

  1. A server on Paper or Spigot

    The plugin runs on the server core for Minecraft 1.8.1–1.12; players do not need to install anything.

  2. File goes into the plugins folder

    Download the file NeuralNetworkAPI.jar (183 KB) and put it into the server’s plugins folder.

  3. Restart the server

    On startup the plugin creates its own settings folder in plugins.

  4. Use the “To server” button

    On Millida Hosting, the button at the top of the page uploads the file to your server and restarts it for you.

Minecraft 1.12 runs on Java 8: with a different Java version the game may close right after launch.

Phiên bản

Kèm phụ thuộc

MinecraftLoaderTệpNgàyHành động
1.11—NeuralNetworkAPI V1.0.6183 KB

Câu hỏi thường gặp

Which Minecraft versions does NeuralNetworkAPI work on?

There are files for 1.12, 1.11, 1.10, 1.8.1. The newest is 1.12.

Do players need to install NeuralNetworkAPI?

No, the plugin goes only on the server, into the plugins folder: players do not need to download anything.

Which Java does NeuralNetworkAPI need?

Minecraft 1.12 runs on Java 8. If the game closes right after launch, the usual cause is the wrong Java version in the profile settings.

Where can I download NeuralNetworkAPI safely?

On this page: the file NeuralNetworkAPI.jar (183 KB) is stored on Millida’s server, with no link shorteners. SHA-1 checksum: ddba585e5cd50b96f0dc93c2d7523657b9273b43.

Đánh giá

Hãy là người đầu tiên đánh giá NeuralNetworkAPI

Bình luận 0

Đăng nhập để bình luậnĐăng nhập

Plugin tương tự

Tất cả plugin

Thêm về điều này