Important
I plan to rewrite this library very soon. Stay tuned.
Webhook API is an API that makes dealing with Discord Webhooks much easier than using raw requests. API covers 100% support of Discord possibilities and is built on-top a single Minecraft library!
Navigate to releases and download the latest one.
Install
index.jsandindex.d.tsfiles and drag them into your project.Start using our API in your code! You can use examples to check if you have done eveyrthing right.
Before you will begin with installation this API, create a basic add-on template before. It should have atleast a manifest and a scripting folder.
- Activate Experimental Beta API experiment in a world. You can find this option in Experiments section of a world.
- Add
@minecraft/server-netmodule to server's permissions (config/default/permissions.json):{ "allowed_modules": [ // Other modules do not matter."@minecraft/server-gametest", "@minecraft/server", "@minecraft/server-ui", "@minecraft/server-admin", "@minecraft/server-editor", "@minecraft/server-net"// Paste this module at the end of a file. ] } - Add
@minecraft/server-netto pack's manifest:{ "dependencies": [ // Other dependencies. { "module_name": "@minecraft/server-net", "version": "1.0.0-beta"// Version does not matter. } ] }
At this moment, worlds are not supported. Consider using redirects with
@minecraft/server-adminandtransferPlayerfunction to an external server.
