Clones summoned by boss cannot receive message when boss is dead

Started by Ender_explorer on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Clones summoned by boss cannot receive message when boss is dead

I am making a mod that a boss summons several clones, but when the boss is dead the clones will automatically die too. So far I am using global variable with logic type and make the clones have tick update, but it doesn't work well since the clones cannot receive the data. Can it be added in 2020.4 like sending a message to a particular type of clone and do some procedure or something? Or just make a block that directly "kills" some kind of entity?

Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
if you know minecraft…
Wed, 07/22/2020 - 13:02

if you know minecraft commands you can execute a command when the boss dies to kill all entities with a certain property.

Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
When the boss dies make it…
Wed, 07/22/2020 - 13:55

When the boss dies make it run

/kill @e[type=mod_id:mob_name,distance=..64] 

at its position (Run command at position block)
 

You can leave the "distance" parameter out if you just want to kill every clone on the map

Joined Jun 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Try debugging your mod by…
Wed, 07/22/2020 - 14:37

Try debugging your mod by using a procedure that sends some text if the variable is true or not. It might be it is not properly changed (try adding a condition to check if the provided world is not client side and it might work)

Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
So I know about the command…
Thu, 07/23/2020 - 07:33

So I know about the command but is that executed by a function in MCreator?

Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
its in the World management…
Thu, 07/23/2020 - 09:42

https://cdn.discordapp.com/attachments/599250311852458006/735793190145097748/unknown.png

its in the World management set of code blocks. you need to really search through the code blocks before you ask such questions.

ofc it would be nice if it had a search function

Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
uhhhh...I did this but it…
Thu, 07/23/2020 - 10:11

uhhhh...I did this but it did not work. (I am a new programmer)

Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
check your command in game…
Thu, 07/23/2020 - 10:19

check your command in game by typing it in the chat.

Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
So I wanted to kill a mob…
Thu, 07/23/2020 - 10:20

So I wanted to kill a mob named "wizard clone", so what should I type in for mob_id? Is the mob_id thesame with the name of the mob? (I typed in the name as wizard_clone)

Joined Apr 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
ithe mob id would be this:…
Tue, 07/28/2020 - 19:43

ithe mob id would be this: your_mod_name_here:wizard_clone