Help, Check for multiple entitys alive

Started by R_XclusiveNL on

Topic category: Help with Minecraft modding (Java Edition)

Active 2 years ago
Joined Sep 2021
Points:
639

User statistics:

  • Modifications: 0
  • Forum topics: 15
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 41
Help, Check for multiple entitys alive

Hihi

Im working on a specific fun mod, and every single thing has been thought of.

Only thing i have no idea to fix, that if there is multiple specific mobs alive or not

And if these mobs are alive, that it prevents to be spawned in ( even with command )

And that it will send a message to player

Can anyone help me with this procedure? and is it even possible?

Active 1 year ago
Joined Oct 2020
Points:
1629

User statistics:

  • Modifications: 0
  • Forum topics: 15
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1874
global trigger Entity Spawns…
Wed, 10/06/2021 - 15:20

global trigger Entity Spawns

if event target entity is type: MOB

do despawn event target entity

Active 2 years ago
Joined Sep 2021
Points:
639

User statistics:

  • Modifications: 0
  • Forum topics: 15
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 41
That only checks for 1…
Wed, 10/06/2021 - 15:24

That only checks for 1 specific mob right?

I want it to be like this example:

3 Diffrent boss zombies, Shadow zombie, Void Zombie, Ender Zombie

But only can spawn 1 of these, and once its dead you can spawn one of these again

but lets say the Shadow zombie is alive, it prevents from spawning Void zombie and ender zombie

 

Active 1 year ago
Joined Oct 2020
Points:
1629

User statistics:

  • Modifications: 0
  • Forum topics: 15
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1874
do you notice that will not…
Wed, 10/06/2021 - 16:06

do you notice that will not work for multiplayer right

Active 2 years ago
Joined Sep 2021
Points:
639

User statistics:

  • Modifications: 0
  • Forum topics: 15
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 41
Yeah i know i want to focus…
Wed, 10/06/2021 - 16:41

Yeah i know i want to focus this mod on singleplayer rn