This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
Do zombies (or mobs on general) *not* activate the attacker parameter of attackHook() ?? I can't make anything happen after a zombie hits another mob, or hits the player. Script:
function attackHook(a,v){
if(Entity.getEntityTypeId(a)==32) {
clientMessage("Hit!"); }
}
Why does nothing happen?
It works fine with deathHook() though.
thanks.
http://www.minecraftforum.net/forums/minecraft-pocket-edition/mcpe-mods-tools/2610428-0-13-emeraldcraft-metalurgic-gems-alchemy
Do zombies (or mobs on general) *not* activate the attacker parameter of attackHook() ?? I can't make anything happen after a zombie hits another mob, or hits the player. Script:
function attackHook(a,v){
if(Entity.getEntityTypeId(a)==32) {
clientMessage("Hit!"); }
}
Why does nothing happen?
It works fine with deathHook() though.
thanks.
http://www.minecraftforum.net/forums/minecraft-pocket-edition/mcpe-mods-tools/2610428-0-13-emeraldcraft-metalurgic-gems-alchemy