Entity Detector (FirePeripherals)

The Entity Detector is a block added by FirePeripherals that iteracts with the Computers of ComputerCraft and detects the last entity that has went on the block.

Usage
The Entity Detector detects and returns the name of the last entity, which passes the top of the block. The detector don't detect entity in the surrounding environment. The block can be placed directly on a Computer, or can be connected with a Wired Modem and Networking Cable, respectively with a Wireless Modem, with a computer.

entityd = peripheral.wrap("side") The variable "entityd" is the address of the block for the following commands and can be chosen arbitrarily. For the parameter side the values "left", "right", "bottom", "top", "front" and "back" can be entered depending on which side of the computer the Redstone I/O block is.
 * At first the Entity Detector must be wrapped to the computer with following command :

entityd.getLastEntityName It returns for example the string "EntityPlayerMP" for the player, and "EntityChicken" for a chicken.
 * The following command ask the Intity Detector after the last entity that went over the block and returns a string with the name of the entity :