Create a team using an "Execute command" block

Started by damiansb on

Topic category: Help with Minecraft modding (Java Edition)

Active 4 years ago
Joined Jun 2020
Points:
642

User statistics:

  • Modifications: 0
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 11
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
Active 3 years ago
Joined Nov 2019
Points:
868

User statistics:

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

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

Active 4 years ago
Joined Jun 2020
Points:
642

User statistics:

  • Modifications: 0
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 11
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

Active 3 years ago
Joined Nov 2019
Points:
868

User statistics:

  • Modifications: 0
  • Forum topics: 8
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 387
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

Active 17 hours ago
Joined Feb 2018
Points:
1991

User statistics:

  • Modifications: 1
  • Forum topics: 163
  • Wiki pages: 0
  • MCreator plugins: 3
  • Comments: 786
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.

Active 17 hours ago
Joined Feb 2018
Points:
1991

User statistics:

  • Modifications: 1
  • Forum topics: 163
  • Wiki pages: 0
  • MCreator plugins: 3
  • Comments: 786
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!

Active 5 months ago
Joined Feb 2022
Points:
422

User statistics:

  • Modifications: 0
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 13
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?

Active 1 month ago
Joined Jan 2024
Points:
126

User statistics:

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

Did you find a way to create and use team ?

 

Active 5 months ago
Joined Feb 2022
Points:
422

User statistics:

  • Modifications: 0
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 13
Nnnno
Tue, 05/07/2024 - 22:01

Nnnno

Active 5 months ago
Joined Feb 2022
Points:
422

User statistics:

  • Modifications: 0
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 13
I mean, to be more specific,…
Tue, 05/07/2024 - 22:02

I mean, to be more specific, I'm trying to make support AoE effects that only benefit allies, because if enemiess are benefited that would be really bad for the supporter 😭