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

Started by Olimpiia on Sat, 09/11/2021 - 13:58

Topic category: Help with modding (Java Edition)

Last seen on 12:29, 14. Sep 2021
Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
how to make a command like /command [player's nickname] in mkreator 2021.2
Sat, 09/11/2021 - 13:58

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

Last seen on 16:18, 17. Sep 2021
Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 12:29, 14. Sep 2021
Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 18:33, 20. Sep 2021
Joined Dec 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 17:34, 20. Sep 2021
Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
@p
Wed, 09/15/2021 - 13:19

@p

Last seen on 16:18, 17. Sep 2021
Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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