Hey guys, so my problem here is this; my mod have a bug i cant figger/find - a single mob (the Nile crocodile) from more than 50 of my mod´s mobs are spawning like crazy, and i dont know why; its spawn code clear say 14% chance of spawn (2-4 mobs), yet its like a nile crocodile infection all over the river and river equivalent biomes, i will post his code on the modding section, but for now i wonder if someone know how to:
Use the /kill command to kill a mob from a MOD.
1.12:
/kill @e [type=Creeper] -> this kill all the creepers around.
i tried to use all the mob names i found and the one on .lang file, like
Hey guys, so my problem here is this; my mod have a bug i cant figger/find - a single mob (the Nile crocodile) from more than 50 of my mod´s mobs are spawning like crazy, and i dont know why; its spawn code clear say 14% chance of spawn (2-4 mobs), yet its like a nile crocodile infection all over the river and river equivalent biomes, i will post his code on the modding section, but for now i wonder if someone know how to:
Use the /kill command to kill a mob from a MOD.
1.12:
/kill @e [type=Creeper] -> this kill all the creepers around.
i tried to use all the mob names i found and the one on .lang file, like
/kill @e [type=entity.testenvironmentmod.crocodilenile]
my lang file say:
entity.testenvironmentmod.crocodilenile.name=Nile Crocodile
anybody can help? thank you!
/kill @e [type=testenvironmentmod:crocodilenile]
if that does not happen to be the name just type
/kill @e [type=testenvironmentmod:
then hit the TAB key to autocomplete a list of mob names which should help find the correctnamne
thanks ! i will test this asp!
But i already fix my mod too
So I tried doing something like this with a mod called the Kamen rider craft mod and I typed it like this
/kill @e[type=entity.EvoltMob3.name=Evolt]
And it's not working it keeps saying
Entity type 'minecraft:entity.evoltmob3.name=evolt' is invalid
Selector '@e[type=entity.EvoltMob3.name=Evolt]' found nothing