Posted 09 May 2017 - 10:33 PM
Hey!
I'm trying to make a simple Script to emit a Redstone Signal when x Mobs (Witches) are near the Computer.
I stumbled over this Post (http://www.computercraft.info/forums2/index.php?/topic/22816-openperipheral-counting-child-mobs-with-the-sensor/) and tried to rewrite it. Beside that getMobIds() and getMobData() are depricatet i cant find a way to count specific Mob Types (Witch).
Normaly when i write a Script/Programm i print everything and use Google and my Brain but i stuck at the Output from getEntityData(id, "mob") cause its all functions and i dont know how to get on the data behind these.
I dont know its the time (11:35 pm in Germany) or if i'm to dump to find a way…^^
Could someone enlighten me, maybe with a script to count a single Mobs Type?
Thanks
Merlin
I'm trying to make a simple Script to emit a Redstone Signal when x Mobs (Witches) are near the Computer.
I stumbled over this Post (http://www.computercraft.info/forums2/index.php?/topic/22816-openperipheral-counting-child-mobs-with-the-sensor/) and tried to rewrite it. Beside that getMobIds() and getMobData() are depricatet i cant find a way to count specific Mob Types (Witch).
Normaly when i write a Script/Programm i print everything and use Google and my Brain but i stuck at the Output from getEntityData(id, "mob") cause its all functions and i dont know how to get on the data behind these.
I dont know its the time (11:35 pm in Germany) or if i'm to dump to find a way…^^
Could someone enlighten me, maybe with a script to count a single Mobs Type?
Thanks
Merlin