how to make a command like /command [player's nickname] in mkreator 2021.2

Started by Olimpiia on

Topic category: Help with modding (Java Edition)

Last seen on 10:48, 14. May 2022
Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how to make a command like /command [player's nickname] in mkreator 2021.2

how to make a command like /command [player's nickname] in mkreator 2021.2

Last seen on 07:36, 20. Apr 2023
Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hello Olimpiia, what do you…
Mon, 09/13/2021 - 08:59

Hello Olimpiia,

what do you mean by that? If you are asking how to do something TO a player you could check if the 0 parameter of the command (the first parameter) is referring to a player and do something to that player

If: length of "command parameter with index 0" > 0 

   Do: send message get display name of "command parameter with index 0"

And you can now do whatever you want with that player

Last seen on 10:48, 14. May 2022
Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
and I don't write code I do…
Tue, 09/14/2021 - 12:30

and I don't write code I do everything in the mkreator 2021.2

Last seen on 10:49, 31. Jul 2023
Joined Dec 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It's pretty easy actually,…
Tue, 09/14/2021 - 15:01

It's pretty easy actually, there's a procedure/brick called "Execute Command ............" whit that, you can make commands!

Last seen on 07:36, 20. Apr 2023
Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Everything I said is based…
Wed, 09/15/2021 - 14:17

Everything I said is based on procedure blocks, you can try it out

Last seen on 10:48, 14. May 2022
Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
sMarthz and tell us how to…
Sat, 09/25/2021 - 16:05

sMarthz and tell us how to do it please

Last seen on 10:48, 14. May 2022
Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The_librarian and…
Sat, 09/25/2021 - 16:07

The_librarian and DiegosStuff I have something else, and I use this block I need the team to look like this: / team [player's nickname]