public void spawn(Vector3f pos, String name) throws ScriptErrorException {
   EntityLiving ent = null;
   if (name.equals("creeper")) {
     ent = new EntityCreeper(_world);
   } else if (name.equals("zombie")) {
     ent = new EntityZombie(_world);
   } else if (name.equals("spider")) {
     ent = new EntitySpider(_world);
   } else if (name.equals("skeleton")) {
     ent = new EntitySkeleton(_world);
   } else if (name.equals("pig")) {
     ent = new EntityPig(_world);
   } else if (name.equals("cow")) {
     ent = new EntityCow(_world);
   } else if (name.equals("chicken")) {
     ent = new EntityChicken(_world);
   } else if (name.equals("pigzombie")) {
     ent = new EntityPigZombie(_world);
   } else if (name.equals("enderman")) {
     ent = new EntityEnderman(_world);
   } else if (name.equals("enderdragon")) {
     ent = new EntityDragon(_world);
   } else if (name.equals("bat")) {
     ent = new EntityBat(_world);
   } else if (name.equals("villager")) {
     ent = new EntityVillager(_world);
   } else {
     throw new ScriptErrorException("Ent not found");
   }
   ent.initCreature();
   ent.setPosition(pos.getX(), pos.getY(), pos.getZ());
   _world.spawnEntityInWorld(ent);
 }
Ejemplo n.º 2
0
  @Override
  public void onUpdateServer() {
    if (!MCA.getConfig().allowHuntingChore) {
      this.notifyAssigningPlayer(Color.RED + "This chore is disabled.");
      reset();
      return;
    }

    if (standPoint.iPosX == 0 && standPoint.iPosY == 0 && standPoint.iPosZ == 0) {
      // Find a point to stand at and hunt.
      List<Point3D> grassBlocks = RadixLogic.getNearbyBlocks(owner, Blocks.grass, 15);

      if (grassBlocks.size() > 0) {
        standPoint = grassBlocks.get(RadixMath.getNumberInRange(0, grassBlocks.size() - 1));
      } else {
        owner.say("hunting.badspot", getAssigningPlayer());
        reset();
      }

      return;
    }

    if (RadixMath.getDistanceToXYZ(owner, standPoint) >= 5.0F && owner.getNavigator().noPath()) {
      boolean successful =
          owner
              .getNavigator()
              .tryMoveToXYZ(standPoint.dPosX, standPoint.dPosY, standPoint.dPosZ, owner.getSpeed());

      if (!successful) {
        owner.say("hunting.badspot", getAssigningPlayer());
        reset();
      }
    } else if (RadixMath.getDistanceToXYZ(owner, standPoint) < 5.0F) {
      ticksActive++;

      if (ticksActive >= Time.SECOND * 20) {
        boolean doSpawn = owner.worldObj.rand.nextBoolean();

        if (doSpawn) {
          try {
            final Class entityClass = RegistryMCA.getRandomHuntingEntity(isTaming);
            final EntityLiving entity =
                (EntityLiving)
                    entityClass.getDeclaredConstructor(World.class).newInstance(owner.worldObj);
            final List<Point3D> nearbyGrass = RadixLogic.getNearbyBlocks(owner, Blocks.grass, 3);
            final Point3D spawnPoint =
                nearbyGrass.get(owner.worldObj.rand.nextInt(nearbyGrass.size()));

            if (spawnPoint != null) {
              entity.setPosition(spawnPoint.iPosX, spawnPoint.iPosY + 1, spawnPoint.iPosZ);
            }

            owner.worldObj.spawnEntityInWorld(entity);

            if (!isTaming) {
              entity.attackEntityFrom(DamageSource.generic, 100.0F);
              owner.swingItem();
            }
          } catch (Exception e) {
            RadixExcept.logErrorCatch(
                e,
                "There was an error spawning an entity for the hunting AI. If you are using a mod that expands MCA's hunting AI, it is likely the problem!");
          }
        }

        List<Entity> nearbyItems =
            RadixLogic.getAllEntitiesOfTypeWithinDistance(EntityItem.class, owner, 5);

        if (nearbyItems.size() != 0) {
          for (Entity entity : nearbyItems) {
            EntityItem item = (EntityItem) entity;
            ItemStack stack = item.getEntityItem();

            addItemStackToInventory(stack);
            item.setDead();
          }
        }

        ticksActive = 0;
      }
    }
  }
Ejemplo n.º 3
0
  public boolean createPart1() {
    world.setBlock(i + 0, j + 0, k + 7, 13);
    world.setBlock(i + 0, j + 0, k + 6, 3);
    world.setBlock(i + 0, j + 0, k + 5, 3);
    world.setBlock(i + 0, j + 0, k + 4, 3);
    world.setBlock(i + 0, j + 0, k + 3, 3);
    world.setBlock(i + 0, j + 0, k + 2, 3);
    world.setBlock(i + 0, j + 0, k + 1, 3);
    world.setBlock(i + 0, j + 0, k + 0, 3);
    world.setBlock(i + 1, j + 0, k + 7, 13);
    world.setBlock(i + 1, j + 0, k + 6, 3);
    world.setBlock(i + 1, j + 0, k + 5, 3);
    world.setBlock(i + 1, j + 0, k + 4, 3);
    world.setBlock(i + 1, j + 0, k + 3, 3);
    world.setBlock(i + 1, j + 0, k + 2, 3);
    world.setBlock(i + 1, j + 0, k + 1, 3);
    world.setBlock(i + 1, j + 0, k + 0, 3);
    world.setBlock(i + 2, j + 0, k + 7, 13);
    world.setBlock(i + 2, j + 0, k + 6, 3);
    world.setBlock(i + 2, j + 0, k + 5, 3);
    world.setBlock(i + 2, j + 0, k + 4, 3);
    world.setBlock(i + 2, j + 0, k + 3, 3);
    world.setBlock(i + 2, j + 0, k + 2, 3);
    world.setBlock(i + 2, j + 0, k + 1, 3);
    world.setBlock(i + 2, j + 0, k + 0, 3);
    world.setBlock(i + 3, j + 0, k + 7, 13);
    world.setBlock(i + 3, j + 0, k + 6, 3);
    world.setBlock(i + 3, j + 0, k + 5, 3);
    world.setBlock(i + 3, j + 0, k + 4, 3);
    world.setBlock(i + 3, j + 0, k + 3, 3);
    world.setBlock(i + 3, j + 0, k + 2, 3);
    world.setBlock(i + 3, j + 0, k + 1, 3);
    world.setBlock(i + 3, j + 0, k + 0, 3);
    world.setBlock(i + 4, j + 0, k + 7, 13);
    world.setBlock(i + 4, j + 0, k + 6, 3);
    world.setBlock(i + 4, j + 0, k + 5, 3);
    world.setBlock(i + 4, j + 0, k + 4, 3);
    world.setBlock(i + 4, j + 0, k + 3, 3);
    world.setBlock(i + 4, j + 0, k + 2, 3);
    world.setBlock(i + 4, j + 0, k + 1, 3);
    world.setBlock(i + 4, j + 0, k + 0, 3);
    world.setBlock(i + 5, j + 0, k + 7, 13);
    world.setBlock(i + 5, j + 0, k + 6, 3);
    world.setBlock(i + 5, j + 0, k + 5, 3);
    world.setBlock(i + 5, j + 0, k + 4, 3);
    world.setBlock(i + 5, j + 0, k + 3, 3);
    world.setBlock(i + 5, j + 0, k + 2, 3);
    world.setBlock(i + 5, j + 0, k + 1, 3);
    world.setBlock(i + 5, j + 0, k + 0, 3);
    world.setBlock(i + 6, j + 0, k + 7, 13);
    world.setBlock(i + 6, j + 0, k + 6, 3);
    world.setBlock(i + 6, j + 0, k + 5, 3);
    world.setBlock(i + 6, j + 0, k + 4, 3);
    world.setBlock(i + 6, j + 0, k + 3, 3);
    world.setBlock(i + 6, j + 0, k + 2, 3);
    world.setBlock(i + 6, j + 0, k + 1, 3);
    world.setBlock(i + 6, j + 0, k + 0, 3);
    world.setBlock(i + 7, j + 0, k + 7, 13);
    world.setBlock(i + 7, j + 0, k + 6, 3);
    world.setBlock(i + 7, j + 0, k + 5, 3);
    world.setBlock(i + 7, j + 0, k + 4, 3);
    world.setBlock(i + 7, j + 0, k + 3, 3);
    world.setBlock(i + 7, j + 0, k + 2, 3);
    world.setBlock(i + 7, j + 0, k + 1, 3);
    world.setBlock(i + 7, j + 0, k + 0, 3);
    world.setBlock(i + 8, j + 0, k + 7, 13);
    world.setBlock(i + 8, j + 0, k + 6, 3);
    world.setBlock(i + 8, j + 0, k + 5, 3);
    world.setBlock(i + 8, j + 0, k + 4, 3);
    world.setBlock(i + 8, j + 0, k + 3, 3);
    world.setBlock(i + 8, j + 0, k + 2, 3);
    world.setBlock(i + 8, j + 0, k + 1, 3);
    world.setBlock(i + 8, j + 0, k + 0, 3);
    world.setBlock(i + 9, j + 0, k + 7, 13);
    world.setBlock(i + 9, j + 0, k + 6, 3);
    world.setBlock(i + 9, j + 0, k + 5, 3);
    world.setBlock(i + 9, j + 0, k + 4, 3);
    world.setBlock(i + 9, j + 0, k + 3, 3);
    world.setBlock(i + 9, j + 0, k + 2, 3);
    world.setBlock(i + 9, j + 0, k + 1, 3);
    world.setBlock(i + 9, j + 0, k + 0, 3);
    world.setBlock(i + 0, j + 1, k + 6, 4);
    world.setBlock(i + 0, j + 1, k + 5, 4);
    world.setBlock(i + 0, j + 1, k + 4, 4);
    world.setBlock(i + 0, j + 1, k + 3, 4);
    world.setBlock(i + 0, j + 1, k + 2, 4);
    world.setBlock(i + 0, j + 1, k + 1, 4);
    world.setBlock(i + 0, j + 1, k + 0, 4);
    world.setBlock(i + 1, j + 1, k + 6, 4);
    world.setBlock(i + 1, j + 1, k + 5, 43);
    world.setBlock(i + 1, j + 1, k + 4, 43);
    world.setBlock(i + 1, j + 1, k + 3, 43);
    world.setBlock(i + 1, j + 1, k + 2, 43);
    world.setBlock(i + 1, j + 1, k + 1, 43);
    world.setBlock(i + 1, j + 1, k + 0, 4);
    world.setBlock(i + 2, j + 1, k + 6, 4);
    world.setBlock(i + 2, j + 1, k + 5, 43);
    world.setBlock(i + 2, j + 1, k + 4, 43);
    world.setBlock(i + 2, j + 1, k + 3, 43);
    world.setBlock(i + 2, j + 1, k + 2, 43);
    world.setBlock(i + 2, j + 1, k + 1, 43);
    world.setBlock(i + 2, j + 1, k + 0, 4);
    world.setBlock(i + 3, j + 1, k + 6, 4);
    world.setBlock(i + 3, j + 1, k + 5, 43);
    world.setBlock(i + 3, j + 1, k + 4, 4);
    world.setBlock(i + 3, j + 1, k + 3, 43);
    world.setBlock(i + 3, j + 1, k + 2, 43);
    world.setBlock(i + 3, j + 1, k + 1, 43);
    world.setBlock(i + 3, j + 1, k + 0, 4);
    world.setBlock(i + 4, j + 1, k + 6, 4);
    world.setBlock(i + 4, j + 1, k + 5, 4);
    world.setBlock(i + 4, j + 1, k + 4, 4);
    world.setBlock(i + 4, j + 1, k + 3, 4);
    world.setBlock(i + 4, j + 1, k + 2, 43);
    world.setBlock(i + 4, j + 1, k + 1, 4);
    world.setBlock(i + 4, j + 1, k + 0, 4);
    world.setBlock(i + 5, j + 1, k + 6, 4);
    world.setBlock(i + 5, j + 1, k + 5, 4);
    world.setBlock(i + 5, j + 1, k + 4, 4);
    world.setBlock(i + 5, j + 1, k + 3, 4);
    world.setBlock(i + 5, j + 1, k + 2, 4);
    world.setBlock(i + 5, j + 1, k + 1, 4);
    world.setBlock(i + 5, j + 1, k + 0, 4);
    world.setBlock(i + 6, j + 1, k + 7, 67);
    world.setBlock(i + 6, j + 1, k + 6, 4);
    world.setBlock(i + 6, j + 1, k + 5, 4);
    world.setBlock(i + 6, j + 1, k + 4, 4);
    world.setBlock(i + 6, j + 1, k + 3, 4);
    world.setBlock(i + 6, j + 1, k + 2, 4);
    world.setBlock(i + 6, j + 1, k + 1, 4);
    world.setBlock(i + 6, j + 1, k + 0, 4);
    world.setBlock(i + 7, j + 1, k + 7, 67);
    world.setBlock(i + 7, j + 1, k + 6, 4);
    world.setBlock(i + 7, j + 1, k + 5, 4);
    world.setBlock(i + 7, j + 1, k + 4, 4);
    world.setBlock(i + 7, j + 1, k + 3, 4);
    world.setBlock(i + 7, j + 1, k + 2, 4);
    world.setBlock(i + 7, j + 1, k + 1, 4);
    world.setBlock(i + 7, j + 1, k + 0, 4);
    world.setBlock(i + 8, j + 1, k + 7, 67);
    world.setBlock(i + 8, j + 1, k + 6, 4);
    world.setBlock(i + 8, j + 1, k + 5, 4);
    world.setBlock(i + 8, j + 1, k + 4, 4);
    world.setBlock(i + 8, j + 1, k + 3, 4);
    world.setBlock(i + 8, j + 1, k + 2, 4);
    world.setBlock(i + 8, j + 1, k + 1, 4);
    world.setBlock(i + 8, j + 1, k + 0, 4);
    world.setBlock(i + 9, j + 1, k + 6, 4);
    world.setBlock(i + 9, j + 1, k + 5, 4);
    world.setBlock(i + 9, j + 1, k + 4, 4);
    world.setBlock(i + 9, j + 1, k + 3, 4);
    world.setBlock(i + 9, j + 1, k + 2, 4);
    world.setBlock(i + 9, j + 1, k + 1, 4);
    world.setBlock(i + 9, j + 1, k + 0, 4);
    world.setBlock(i + 0, j + 2, k + 6, 17);
    world.setBlock(i + 0, j + 2, k + 5, 4);
    world.setBlock(i + 0, j + 2, k + 4, 4);
    world.setBlock(i + 0, j + 2, k + 3, 4);
    world.setBlock(i + 0, j + 2, k + 2, 4);
    world.setBlock(i + 0, j + 2, k + 1, 4);
    world.setBlock(i + 0, j + 2, k + 0, 17);
    world.setBlock(i + 1, j + 2, k + 6, 4);
    world.setBlock(i + 1, j + 2, k + 0, 4);
    world.setBlock(i + 2, j + 2, k + 6, 4);
    world.setBlock(i + 2, j + 2, k + 0, 4);
    world.setBlock(i + 3, j + 2, k + 6, 17);
    world.setBlock(i + 3, j + 2, k + 5, 64);
    world.setBlock(i + 3, j + 2, k + 4, 5);
    world.setBlock(i + 3, j + 2, k + 0, 4);
    world.setBlock(i + 4, j + 2, k + 3, 5);
    world.setBlock(i + 4, j + 2, k + 2, 85);
    world.setBlock(i + 4, j + 2, k + 1, 53);
    world.setBlock(i + 4, j + 2, k + 0, 4);
    world.setBlock(i + 5, j + 2, k + 6, 85);
    world.setBlock(i + 5, j + 2, k + 3, 5);
    world.setBlock(i + 5, j + 2, k + 2, 53);
    world.setBlock(i + 5, j + 2, k + 1, 53);
    world.setBlock(i + 5, j + 2, k + 0, 4);
    world.setBlock(i + 6, j + 2, k + 3, 4);
    world.setBlock(i + 6, j + 2, k + 2, 4);
    world.setBlock(i + 6, j + 2, k + 1, 4);
    world.setBlock(i + 6, j + 2, k + 0, 4);
    world.setBlock(i + 7, j + 2, k + 2, 4);
    world.setBlock(i + 7, j + 2, k + 1, 11);
    world.setBlock(i + 7, j + 2, k + 0, 4);
    world.setBlock(i + 8, j + 2, k + 5, 43);
    world.setBlock(i + 8, j + 2, k + 2, 4);
    world.setBlock(i + 8, j + 2, k + 1, 11);
    world.setBlock(i + 8, j + 2, k + 0, 4);
    world.setBlock(i + 9, j + 2, k + 6, 85);
    world.setBlock(i + 9, j + 2, k + 2, 4);
    world.setBlock(i + 9, j + 2, k + 1, 4);
    world.setBlock(i + 9, j + 2, k + 0, 4);
    world.setBlock(i + 0, j + 3, k + 6, 17);
    world.setBlock(i + 0, j + 3, k + 5, 4);
    world.setBlock(i + 0, j + 3, k + 4, 102);
    world.setBlock(i + 0, j + 3, k + 3, 4);
    world.setBlock(i + 0, j + 3, k + 2, 102);
    world.setBlock(i + 0, j + 3, k + 1, 4);
    world.setBlock(i + 0, j + 3, k + 0, 17);
    world.setBlock(i + 1, j + 3, k + 6, 4);
    world.setBlock(i + 1, j + 3, k + 0, 4);
    world.setBlock(i + 2, j + 3, k + 6, 4);
    world.setBlock(i + 2, j + 3, k + 4, 143);
    world.setBlock(i + 2, j + 3, k + 0, 102);
    world.setBlock(i + 3, j + 3, k + 6, 17);
    world.setBlock(i + 3, j + 3, k + 5, 64);
    world.setBlock(i + 3, j + 3, k + 4, 5);
    world.setBlock(i + 3, j + 3, k + 0, 4);
    world.setBlock(i + 4, j + 3, k + 6, 50);
    world.setBlock(i + 4, j + 3, k + 4, 143);
    world.setBlock(i + 4, j + 3, k + 3, 5);
    world.setBlock(i + 4, j + 3, k + 2, 72);
    world.setBlock(i + 4, j + 3, k + 0, 102);
    world.setBlock(i + 5, j + 3, k + 6, 85);
    world.setBlock(i + 5, j + 3, k + 3, 5);
    world.setBlock(i + 5, j + 3, k + 0, 4);
    world.setBlock(i + 6, j + 3, k + 3, 4);
    world.setBlock(i + 6, j + 3, k + 2, 4);
    world.setBlock(i + 6, j + 3, k + 1, 4);
    world.setBlock(i + 6, j + 3, k + 0, 4);
    world.setBlock(i + 7, j + 3, k + 2, 101);
    world.setBlock(i + 7, j + 3, k + 0, 4);
    world.setBlock(i + 8, j + 3, k + 2, 101);
    world.setBlock(i + 8, j + 3, k + 0, 4);
    world.setBlock(i + 9, j + 3, k + 6, 85);
    world.setBlock(i + 9, j + 3, k + 2, 101);
    world.setBlock(i + 9, j + 3, k + 1, 101);
    world.setBlock(i + 9, j + 3, k + 0, 4);
    world.setBlock(i + 0, j + 4, k + 6, 17);
    world.setBlock(i + 0, j + 4, k + 5, 4);
    world.setBlock(i + 0, j + 4, k + 4, 4);
    world.setBlock(i + 0, j + 4, k + 3, 4);
    world.setBlock(i + 0, j + 4, k + 2, 4);
    world.setBlock(i + 0, j + 4, k + 1, 4);
    world.setBlock(i + 0, j + 4, k + 0, 17);
    world.setBlock(i + 1, j + 4, k + 6, 4);
    world.setBlock(i + 1, j + 4, k + 1, 50);
    world.setBlock(i + 1, j + 4, k + 0, 4);
    world.setBlock(i + 2, j + 4, k + 6, 4);
    world.setBlock(i + 2, j + 4, k + 0, 4);
    world.setBlock(i + 3, j + 4, k + 6, 17);
    world.setBlock(i + 3, j + 4, k + 5, 5);
    world.setBlock(i + 3, j + 4, k + 4, 5);
    world.setBlock(i + 3, j + 4, k + 0, 4);
    world.setBlock(i + 4, j + 4, k + 3, 5);
    world.setBlock(i + 4, j + 4, k + 0, 4);
    world.setBlock(i + 5, j + 4, k + 6, 85);
    world.setBlock(i + 5, j + 4, k + 3, 5);
    world.setBlock(i + 5, j + 4, k + 1, 50);
    world.setBlock(i + 5, j + 4, k + 0, 4);
    world.setBlock(i + 6, j + 4, k + 3, 4);
    world.setBlock(i + 6, j + 4, k + 2, 4);
    world.setBlock(i + 6, j + 4, k + 1, 4);
    world.setBlock(i + 6, j + 4, k + 0, 4);
    world.setBlock(i + 7, j + 4, k + 2, 4);
    world.setBlock(i + 7, j + 4, k + 1, 4);
    world.setBlock(i + 7, j + 4, k + 0, 4);
    world.setBlock(i + 8, j + 4, k + 2, 4);
    world.setBlock(i + 8, j + 4, k + 1, 4);
    world.setBlock(i + 8, j + 4, k + 0, 4);
    world.setBlock(i + 9, j + 4, k + 6, 85);
    world.setBlock(i + 9, j + 4, k + 2, 4);
    world.setBlock(i + 9, j + 4, k + 1, 4);
    world.setBlock(i + 9, j + 4, k + 0, 4);
    world.setBlock(i + 0, j + 5, k + 6, 17);
    world.setBlock(i + 0, j + 5, k + 5, 4);
    world.setBlock(i + 0, j + 5, k + 4, 4);
    world.setBlock(i + 0, j + 5, k + 3, 4);
    world.setBlock(i + 0, j + 5, k + 2, 4);
    world.setBlock(i + 0, j + 5, k + 1, 4);
    world.setBlock(i + 0, j + 5, k + 0, 17);
    world.setBlock(i + 1, j + 5, k + 6, 4);
    world.setBlock(i + 1, j + 5, k + 5, 4);
    world.setBlock(i + 1, j + 5, k + 4, 4);
    world.setBlock(i + 1, j + 5, k + 3, 4);
    world.setBlock(i + 1, j + 5, k + 2, 4);
    world.setBlock(i + 1, j + 5, k + 1, 4);
    world.setBlock(i + 1, j + 5, k + 0, 4);
    world.setBlock(i + 2, j + 5, k + 6, 4);
    world.setBlock(i + 2, j + 5, k + 5, 4);
    world.setBlock(i + 2, j + 5, k + 4, 4);
    world.setBlock(i + 2, j + 5, k + 3, 4);
    world.setBlock(i + 2, j + 5, k + 2, 4);
    world.setBlock(i + 2, j + 5, k + 1, 4);
    world.setBlock(i + 2, j + 5, k + 0, 4);
    world.setBlock(i + 3, j + 5, k + 6, 17);
    world.setBlock(i + 3, j + 5, k + 5, 4);
    world.setBlock(i + 3, j + 5, k + 4, 4);
    world.setBlock(i + 3, j + 5, k + 3, 4);
    world.setBlock(i + 3, j + 5, k + 2, 4);
    world.setBlock(i + 3, j + 5, k + 1, 4);
    world.setBlock(i + 3, j + 5, k + 0, 4);
    world.setBlock(i + 4, j + 5, k + 6, 4);
    world.setBlock(i + 4, j + 5, k + 5, 4);
    world.setBlock(i + 4, j + 5, k + 4, 4);
    world.setBlock(i + 4, j + 5, k + 3, 4);
    world.setBlock(i + 4, j + 5, k + 2, 4);
    world.setBlock(i + 4, j + 5, k + 1, 4);
    world.setBlock(i + 4, j + 5, k + 0, 4);
    world.setBlock(i + 5, j + 5, k + 6, 4);
    world.setBlock(i + 5, j + 5, k + 5, 4);
    world.setBlock(i + 5, j + 5, k + 4, 4);
    world.setBlock(i + 5, j + 5, k + 3, 4);
    world.setBlock(i + 5, j + 5, k + 2, 4);
    world.setBlock(i + 5, j + 5, k + 1, 4);
    world.setBlock(i + 5, j + 5, k + 0, 4);
    world.setBlock(i + 6, j + 5, k + 6, 4);
    world.setBlock(i + 6, j + 5, k + 5, 4);
    world.setBlock(i + 6, j + 5, k + 4, 4);
    world.setBlock(i + 6, j + 5, k + 3, 4);
    world.setBlock(i + 6, j + 5, k + 2, 4);
    world.setBlock(i + 6, j + 5, k + 1, 4);
    world.setBlock(i + 6, j + 5, k + 0, 4);
    world.setBlock(i + 7, j + 5, k + 6, 4);
    world.setBlock(i + 7, j + 5, k + 5, 4);
    world.setBlock(i + 7, j + 5, k + 4, 4);
    world.setBlock(i + 7, j + 5, k + 3, 4);
    world.setBlock(i + 7, j + 5, k + 2, 4);
    world.setBlock(i + 7, j + 5, k + 1, 4);
    world.setBlock(i + 7, j + 5, k + 0, 4);
    world.setBlock(i + 8, j + 5, k + 6, 4);
    world.setBlock(i + 8, j + 5, k + 5, 4);
    world.setBlock(i + 8, j + 5, k + 4, 4);
    world.setBlock(i + 8, j + 5, k + 3, 4);
    world.setBlock(i + 8, j + 5, k + 2, 4);
    world.setBlock(i + 8, j + 5, k + 1, 4);
    world.setBlock(i + 8, j + 5, k + 0, 4);
    world.setBlock(i + 9, j + 5, k + 6, 4);
    world.setBlock(i + 9, j + 5, k + 5, 4);
    world.setBlock(i + 9, j + 5, k + 4, 4);
    world.setBlock(i + 9, j + 5, k + 3, 4);
    world.setBlock(i + 9, j + 5, k + 2, 4);
    world.setBlock(i + 9, j + 5, k + 1, 4);
    world.setBlock(i + 9, j + 5, k + 0, 4);
    world.setBlock(i + 0, j + 6, k + 6, 53);
    world.setBlock(i + 0, j + 6, k + 5, 5);
    world.setBlock(i + 0, j + 6, k + 4, 5);
    world.setBlock(i + 0, j + 6, k + 3, 5);
    world.setBlock(i + 0, j + 6, k + 2, 5);
    world.setBlock(i + 0, j + 6, k + 1, 5);
    world.setBlock(i + 0, j + 6, k + 0, 53);
    world.setBlock(i + 1, j + 6, k + 6, 53);
    world.setBlock(i + 1, j + 6, k + 0, 53);
    world.setBlock(i + 2, j + 6, k + 6, 53);
    world.setBlock(i + 2, j + 6, k + 0, 53);
    world.setBlock(i + 3, j + 6, k + 6, 53);
    world.setBlock(i + 3, j + 6, k + 0, 53);
    world.setBlock(i + 4, j + 6, k + 6, 53);
    world.setBlock(i + 4, j + 6, k + 0, 53);
    world.setBlock(i + 5, j + 6, k + 6, 53);
    world.setBlock(i + 5, j + 6, k + 0, 53);
    world.setBlock(i + 6, j + 6, k + 6, 53);
    world.setBlock(i + 6, j + 6, k + 0, 53);
    world.setBlock(i + 7, j + 6, k + 6, 53);
    world.setBlock(i + 7, j + 6, k + 0, 53);
    world.setBlock(i + 8, j + 6, k + 6, 53);
    world.setBlock(i + 8, j + 6, k + 0, 53);
    world.setBlock(i + 9, j + 6, k + 6, 53);
    world.setBlock(i + 9, j + 6, k + 5, 5);
    world.setBlock(i + 9, j + 6, k + 4, 5);
    world.setBlock(i + 9, j + 6, k + 3, 5);
    world.setBlock(i + 9, j + 6, k + 2, 5);
    world.setBlock(i + 9, j + 6, k + 1, 5);
    world.setBlock(i + 9, j + 6, k + 0, 53);
    world.setBlock(i + 0, j + 7, k + 5, 53);
    world.setBlock(i + 0, j + 7, k + 4, 5);
    world.setBlock(i + 0, j + 7, k + 3, 5);
    world.setBlock(i + 0, j + 7, k + 2, 5);
    world.setBlock(i + 0, j + 7, k + 1, 53);
    world.setBlock(i + 1, j + 7, k + 5, 53);
    world.setBlock(i + 1, j + 7, k + 3, 50);
    world.setBlock(i + 1, j + 7, k + 1, 53);
    world.setBlock(i + 2, j + 7, k + 5, 53);
    world.setBlock(i + 2, j + 7, k + 1, 53);
    world.setBlock(i + 3, j + 7, k + 5, 53);
    world.setBlock(i + 3, j + 7, k + 1, 53);
    world.setBlock(i + 4, j + 7, k + 5, 53);
    world.setBlock(i + 4, j + 7, k + 1, 53);
    world.setBlock(i + 5, j + 7, k + 5, 53);
    world.setBlock(i + 5, j + 7, k + 1, 53);
    world.setBlock(i + 6, j + 7, k + 5, 53);
    world.setBlock(i + 6, j + 7, k + 1, 53);
    world.setBlock(i + 7, j + 7, k + 5, 53);
    world.setBlock(i + 7, j + 7, k + 1, 53);
    world.setBlock(i + 8, j + 7, k + 5, 53);
    world.setBlock(i + 8, j + 7, k + 3, 50);
    world.setBlock(i + 8, j + 7, k + 1, 53);
    world.setBlock(i + 9, j + 7, k + 5, 53);
    world.setBlock(i + 9, j + 7, k + 4, 5);
    world.setBlock(i + 9, j + 7, k + 3, 5);
    world.setBlock(i + 9, j + 7, k + 2, 5);
    world.setBlock(i + 9, j + 7, k + 1, 53);
    world.setBlock(i + 0, j + 8, k + 4, 53);
    world.setBlock(i + 0, j + 8, k + 3, 5);
    world.setBlock(i + 0, j + 8, k + 2, 53);
    world.setBlock(i + 1, j + 8, k + 4, 53);
    world.setBlock(i + 1, j + 8, k + 3, 5);
    world.setBlock(i + 1, j + 8, k + 2, 53);
    world.setBlock(i + 2, j + 8, k + 4, 53);
    world.setBlock(i + 2, j + 8, k + 3, 5);
    world.setBlock(i + 2, j + 8, k + 2, 53);
    world.setBlock(i + 3, j + 8, k + 4, 53);
    world.setBlock(i + 3, j + 8, k + 3, 5);
    world.setBlock(i + 3, j + 8, k + 2, 53);
    world.setBlock(i + 4, j + 8, k + 4, 53);
    world.setBlock(i + 4, j + 8, k + 3, 5);
    world.setBlock(i + 4, j + 8, k + 2, 53);
    world.setBlock(i + 5, j + 8, k + 4, 53);
    world.setBlock(i + 5, j + 8, k + 3, 5);
    world.setBlock(i + 5, j + 8, k + 2, 53);
    world.setBlock(i + 6, j + 8, k + 4, 53);
    world.setBlock(i + 6, j + 8, k + 3, 5);
    world.setBlock(i + 6, j + 8, k + 2, 53);
    world.setBlock(i + 7, j + 8, k + 4, 53);
    world.setBlock(i + 7, j + 8, k + 3, 5);
    world.setBlock(i + 7, j + 8, k + 2, 53);
    world.setBlock(i + 8, j + 8, k + 4, 53);
    world.setBlock(i + 8, j + 8, k + 3, 5);
    world.setBlock(i + 8, j + 8, k + 2, 53);
    world.setBlock(i + 9, j + 8, k + 4, 53);
    world.setBlock(i + 9, j + 8, k + 3, 5);

    EntityLiving entity = new EntityGuildMaster(world);
    entity.setPosition(i + 2.5D, j + 2.0D, k + 3.0D);
    world.spawnEntityInWorld(entity);

    return world.setBlock(i + 9, j + 8, k + 2, 53);
  }