The problem with creating a command

Started by Slaimhh on

Topic category: Troubleshooting, bugs, and solutions

Joined Dec 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The problem with creating a command

An error occurs when running the code. I did it using chatgpt. Help me find the error in the code and fix it, please!

Code: https://pastebin.com/KW36eQ8g

Joined Aug 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The error in your code is…
Fri, 12/15/2023 - 18:35

The error in your code is you used ChatGPT so almost the entire code is wrong. It's Java code and it looks like and real code, but it's Java code and not a usable code... all the names are wrong, the structure is wrong, the way of creating the command is wrong. Nothing is good.

Joined Dec 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It's very sad. After all, I…
Fri, 12/15/2023 - 18:43

It's very sad. After all, I do not know Java. And not smart enough to do it using the constructor in MCreator :(