if (chip.getIn(1).is()) {
String id = chip.getText().getLine3();
String rider = chip.getText().getLine4();
if (c.isValidMob(id)) {
Vector pos = chip.getBlockPosition();
int maxY = Math.min(128, pos.getBlockY() + 10);
int x = pos.getBlockX();
int z = pos.getBlockZ();
for (int y = pos.getBlockY() + 1; y <= maxY; y++) {
if (BlockType.canPassThrough(world.getId(x, y, z))) {
if (rider.length() != 0 && c.isValidMob(rider)) {
world.spawnMob(x, y, z, id, rider);
} else {
world.spawnMob(x, y, z, id);