Custom commands minecraft java server 1.15.2?

ha
- in Servers
2

How do I add custom commands to my MC Java Server?

Yes, I have already googled tutorials and up to 12 year olds with bad mic and 240p video quality, I didn't find much.

Is there syntax to save a custom command in the server when you are an OP?

I could imagine it like this (in chat):

I want e.g. A command that always automatically teleports me to the same place

"/ set newCommand = (tp x, y, z)"

To run

"/ newCommand"

Is there such a thing or is it not possible?

Or do I have to do this in the server shell or even in a file?

I can program php, mysql, python etc. But I have no idea about Java and hope that somebody knows more about Minecraft…

st

I know of no way to create your own command. Have a look at Yt's tutorials on Minecraft programming by lonzbonz, who explains it quickly and easily. If you can already program, that shouldn't be a problem for you. ^^

ha

Just found one if you should also be interested.

In the video (16min) he explains how you can add functions by creating your own datapack. Step by step. I think it's pretty nice. This will help us a lot with our server. (But you can also in single player worlds and realms)