Started by
Ender_explorer
on
Topic category: Help with Minecraft modding (Java Edition)
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?
if you know minecraft commands you can execute a command when the boss dies to kill all entities with a certain property.
When the boss dies make it run
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
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)
So I know about the command but is that executed by a function in MCreator?
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
uhhhh...I did this but it did not work. (I am a new programmer)
check your command in game by typing it in the chat.
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)
ithe mob id would be this: your_mod_name_here:wizard_clone