How to add player arguments to custom command

Started by Raito on

Topic category: Help with MCreator software

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)?

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

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>

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

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