Clones summoned by boss cannot receive message when boss is dead

Started by Ender_explorer on

Topic category: Help with Minecraft modding (Java Edition)

Active 4 years ago
Joined Jul 2020
Points:
684

User statistics:

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

Active 3 years ago
Joined Nov 2019
Points:
877

User statistics:

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

Active 4 years ago
Joined Jun 2020
Points:
653

User statistics:

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

Active 4 years ago
Joined Jun 2016
Points:
3744

User statistics:

  • Modifications: 10
  • Forum topics: 39
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 5484
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)

Active 4 years ago
Joined Jul 2020
Points:
684

User statistics:

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

Active 3 years ago
Joined Nov 2019
Points:
877

User statistics:

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

Active 4 years ago
Joined Jul 2020
Points:
684

User statistics:

  • Modifications: 0
  • Forum topics: 10
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 31
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)

Active 3 years ago
Joined Nov 2019
Points:
877

User statistics:

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

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

Active 4 years ago
Joined Jul 2020
Points:
684

User statistics:

  • Modifications: 0
  • Forum topics: 10
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 31
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)

Active 2 days ago
Joined Apr 2019
Points:
855

User statistics:

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

ithe mob id would be this: your_mod_name_here:wizard_clone