• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
  • Minecraft 1.16.220 Update + Bug/Crash Fixes
    Added MCPE 1.16.220 version and fixed crashes for multiple plugins. You can view the full changelist here.
  • Forum Updates - 4/11/2021
    Various changes have been made to the forums and a few categories. You can view the full changelist here.

Important MadCommands - Getting Started

Warning!
Hello , there have been no replies in this thread for more than 30 days.
Please make sure you have a valid reason before you reply to this thread or you may face moderation action.
Status
Not open for further replies.

madhon

MadCommands Dev
#1
MadCommands makes you as a Minecraft server owner able to define your own commands which perform actions consisting of other already defined commands. It works just like a very simple scripting/programming system. You can use the new commands from the console, or even invoke them from other plugins.

If you smartly combine this plugin with other plugins, you can even create your own automated minigames, all without knowing anything about programming your own plugin or having access to the server’s file system.

With MadCommands you can:
  • Create custom procedures using a simple BASIC-like programming language
  • Use conditions and loops in the custom procedures
  • Examine and modify world blocks, players’ inventories,
  • Register new commands to run the custom procedures
  • Override existing commands with custom procedures
  • Assign procedures to be triggered by game events

Watch the following video for a quick demo of what MadCommands can do:



If you like it, then go ahead and continue learning by watching the video tutorials:
MadCommands Video Tutorials

Or get started without video simply by following the instructions below…


Creating your first command

Start by defining a new command:

Code:
/cmd create helloworld
Now add some functionality to it:
Code:
/cmd add helloworld /say Hello everyone!
/cmd add helloworld /me says Hello!
And now try it out:
Code:
/helloworld

Setting up triggers

Assign your command to an event:
Code:
/cmd trigger login helloworld
Verify the triggers assignments:
Code:
/cmd triger
You should see something like this:
Code:
On login run helloworld
On leave do nothing
On spawn do nothing
On bed do nothing
On gm do nothing
On eat do nothing
On damage do nothing
On death do nothing
On cheat do nothing
On place do nothing
On break do nothing
Now try it out:
  1. Disconnect from your server
  2. Re-connect to your server


Learning from examples

See what examples are available for you to install and examine:
Code:
/cmd install
Choose one or more, and install them:
Code:
/cmd install countdown
/cmd install playerinfo
/cmd install blockinfo
/cmd install copyblock
Check what has been installed/defined:
Code:
/cmd list
Choose one command and examine it:
Code:
/cmd list countdown
Try to understand what it does, then try it out to see if you’ve guessed right:
Code:
/countdown
Now go, learn, and write your own amazing commands :wink:


Getting Help

If you get stuck at any time, try to use help.

MadCommands has very complete and detailed help built into it.

Just try it out:
Code:
/cmd help
and follow the instructions you get:

Code:
[MadCommands vX.Y.Z build ABCD] Help: Topics

Type /cmd help <topicname> to show more details about:

editing      how to define and edit your custom command
usage        how to run your custom commands
commands     special commands to use in your scripts
expressions  how to write expressions and calculations
operators    list of supported binary operatory
functions    list of supported functions
variables    list of special pre-defined variables
events       list of supported event names
permissions  permission nodes you can use
license      license conditions for using this plugin
all          display all help topics at once
The whole help is also available online.


Enjoy MadCommands…
…and if you build something great with it, don’t forget to let others know.
 
Status
Not open for further replies.