How do you script the / craft command?

da
15

I would like to know how to minecraft command for craft / craft maybe that's one of you.

cr

What should happen as soon as you enter / craft?

da

It opens the side of the crating table

da

So you can't "script" something like that.

Such commands are programmed with the help of plugins in Java. If you want to program something like that yourself then you have to learn the Java Basics and then familiarize yourself with the Spigot Api.

Alternatively, you can search for plugins that have a / craft command, and then you can download them.

da

Ok but thanks.

cr

There's a method called Player.openWorkbench (null, true);

This should work!

However, this is a spigot method that can only be performed using the SpigotAPI.

da

@ LukaMc Unfortunately, I can't do the scripting yourself, you can send the finished script with it once, that was very nice

da

Unfortunately, I can't do any scripts myself. You can send the finished script with it once. That was very nice

cr

https://hastebin.com/...vowas.java That would be the simplest method for such a command. I do not know if that helps you a lot…

da

Can you do that with java scripts?

cr

Would you like to use this command in the singleplayer or do you have a server?

da

A server

da

But we only have javascript

cr

What kind of server is that? Spigot?

da

I do not quite know I just need a script (.sk file)

cr

I can't help you with that! But on any standard Minecraft server, you can easily install plugins written with the SpigotAPI in Java.