Create a team using an "Execute command" block

Started by damiansb on

Topic category: Help with modding (Java Edition)

Last seen on 00:48, 29. Oct 2020
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Create a team using an "Execute command" block
Sat, 07/04/2020 - 05:30 (edited)

I'm trying to make some mobs passive when I have a specific armor set equipped. I'm doing this by creating a team, joining it myself and then adding the mob types to the team (zombies and creepers).

I've tested all the commands in the game console, they work fine, but the "execute command" procedure block doesn't seem to work (or fire an error on the console).

The procedure is running on the "On player tick update" global trigger... I don't know if that's enough to meet the dependency permission requirements for the Execute command block to work.

I've tried to debug by putting some "prints" inside the IF's just to see if they're running at all... they do.

Any tips, guys?

Here's the procedure:

Procedure

Edited by damiansb on Sat, 07/04/2020 - 05:30
Last seen on 05:29, 31. Jan 2022
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
try using "Execute command {…
Sat, 07/04/2020 - 17:23

try using "Execute command { } in the name of {event entity}"

Last seen on 00:48, 29. Oct 2020
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you for your help,…
Sun, 07/05/2020 - 12:45

Thank you for your help, ahznb. 

I have updated my procedure, but unfortunately it still doesn't work. The prints inside the IFs fire when I put/remove an armor piece, but the team is never created

I'm playing in survival mode with cheats ON, by the way.

Any help is appreciated!

Updated procedure:

Procedure

Last seen on 05:29, 31. Jan 2022
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i don't know then. maybe try…
Sun, 07/05/2020 - 16:13

i don't know then. maybe try removing the survival mode check

Last seen on 14:00, 24. Apr 2024
Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The Global Trigger "On…
Tue, 03/30/2021 - 08:11

The Global Trigger "On Player Tick Update" means that Event/Target Entity targets the Player not any other Mob! That's why this Procedure not work.

Last seen on 14:00, 24. Apr 2024
Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Try using the Global Trigger…
Tue, 03/30/2021 - 08:13

Try using the Global Trigger "On loaded entity tick update". This Global Trigger is only available on the latest MCreator Snapshot!

Last seen on 16:34, 29. Dec 2023
Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I want to create a team for…
Tue, 03/29/2022 - 01:35

I want to create a team for a singular person that clarifies what role they are playing, granting certain permissions to that player only. I dont know how to create a team, or to make a certain person join. Any help?

Last seen on 08:05, 25. Apr 2024
Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Did you find a way to create…
Thu, 01/04/2024 - 09:43

Did you find a way to create and use team ?