Started by
Rye
on
Topic category: Help with Minecraft modding (Java Edition)
I'm trying to make a block that, upon right click, kills every mob of a certain type in a radius around it, then triggers something else if at least one mob is killed.
Is this possible without coding? I have yet to mess with code at all, but if it's necessary I'd try, any help would be great.
https://mcreator.net/tracker/hot
use the "Execute command" procedure block (in the World Management category). Put in the command "/kill @e[type=zombie,r=20]", where the mob to kill is a zombie and radius is 20
Is there a way to check whether the command actually killed anything or not, though? As I need something to trigger only if at least one mob was killed.
read this: https://minecraft.gamepedia.com/Commands/execute
it has all you need to learn vanilla minecraft commands.
You can implement something like area effect cloud.