20 juin 2017, 13:38

Ceci est un extrait des sources minecraft sur les puits ça pourrait t’intéresser

  public static class Well extends StructureVillagePieces.Village
        {
            public Well()
            {
            }

            public Well(StructureVillagePieces.Start start, int type, Random rand, int x, int z)
            {
                super(start, type);
                this.setCoordBaseMode(EnumFacing.Plane.HORIZONTAL.random(rand));

                if (this.getCoordBaseMode().getAxis() == EnumFacing.Axis.Z)
                {
                    this.boundingBox = new StructureBoundingBox(x, 64, z, x + 6 - 1, 78, z + 6 - 1);
                }
                else
                {
                    this.boundingBox = new StructureBoundingBox(x, 64, z, x + 6 - 1, 78, z + 6 - 1);
                }
            }