How to add player arguments to custom command

Started by Raito on

Topic category: Help with MCreator software

Last seen on 14:33, 28. Feb 2020
Joined Feb 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to add player arguments to custom command

I'm currently trying to make a command that makes a lightning strike at an entity (sort of as a substitute for /summon Lightning_bolt). I'm wondering how I can make the mod take player arguments (@p, @a, etc)?

Last seen on 01:34, 21. May 2020
Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I am not sure that you can,…
Fri, 02/28/2020 - 23:16

I am not sure that you can, maybe you could just make it part of the command itself. eg. /Spawn @p lightning bolt, where @p is just part of the command, because I think that is what it does anyway

Last seen on 03:51, 31. Jul 2023
Joined Apr 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can use <player>
Mon, 03/02/2020 - 01:19

You can use <player>

Last seen on 03:10, 19. Feb 2022
Joined Jun 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
There is X Y Z in the …
Mon, 03/02/2020 - 01:32

There is X Y Z in the "Minecraft Components" section

Last seen on 17:49, 31. Jan 2021
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you can use /execute at @p/…
Sat, 04/11/2020 - 08:47

you can use /execute at @p/@a/@e/@s run summon lightning_bolt