Faire apparaitre des structure en jeu.



  • Salut à toutes et à tousses.

    Ça fais un moment, même avent la 1.5, Que je cherchai à faire apparaitre des structures en jeu, à partir de fichier (.schematic).
    Un schematic sous Minecraft pour se qui ne save pas, et une construction enregistré sous se format gràce a MCedit (programme) ou encore Worldedit (plugin/mod).

    Le truc est que les base java ne me suffise pas a faire cette parti la de mon mod, alors si une âme généreuse voudrait bien me metre sur une piste en BÉTON, je l’appellerai "Maître" pendant un semaine, "Ironie" XD !

    J'ai déjà cherché pas mal de temps une solution mais rien, mise à par convertir le .shematic en .java, "merci a Narsi91 de m'avoir mit sur cette piste sur le forum de minecraft.fr".

    Bon en gros quand je fais un clique droit sur un bloc avec un items bien spécifique, la structure apparait.
    Un peu comme avec un arbre, mais ce n'est pas une génération, c'est bien une structure prédéfini.

    Cordialement.

    PS: dite moi si il y a besoin de déplacer le sujet, car il n'y a ni code, ni erreur ou bug x).
    –-----

    Après avoir relut le commentaire de Narsi91 sur Minecraft.fr, Je vais essayé des chose, Je vous tien au courent, et si sa fonctionne je ferais un tuto dans le topique adéquate avec l'autorisation des admins bien avidement ^^.

    PS: Oui je me suit trompai c’était pas robin4002 qui m’avais envoyer sur cette piste mais Narsi91 x), j'ai modifier :).



  • En implémentant une dépendance de WE, il devrait y avoir moyen de faire en sorte que quand un joueur fait un clic droit avec tel objet, cela appel la commande //paste.
    Un peu comme sur craftbukkit avec :

    [CODE_Java]
    onRightClickEvent(/Event/ e){
    e.getPlayer().processCommand("//paste"));
    }
    [/CODE_Java]
    (Edit de Gugu42 : J'ai converti en code Java )

    Je suis pas sûr du processCommand, pourtant je l'ai utilisé il y a pas longtemps ^^

    PS : Par pitié, attention à l'orthographe !
    PS² : Comment on mais du java dans les balises "code" ?


  • Moddeurs confirmés Rédacteurs Administrateurs

    @'Rems19':

    PS : Par pitié, attention à l'orthographe !
    PS² : Comment on mais du java dans les balises "code" ?

    met et pas mais 😛
    c'est code_java puis /code_java, c'est Woryk qui a mit ça en place, donc merci à lui 🙂



  • okok ^^'.

    Sinon après avoir générai la structure en .java sa me donne sa:

    Class de ma structure:
    -Erreur
    :::

    [CODE_Java]
    package genetical_modifier.structure;
    import java.util.Random;

    import net.minecraft.block.Block;
    import net.minecraft.world.World;
    import net.minecraft.world.gen.feature.WorldGenerator;

    public class GiantGreenMushroom_structure extends WorldGenerator
    {
    public GiantGreenMushroom_structure() { }

    public boolean generate(World world, Random rand, int i, int j, int k) {
    world.setBlockAndMetadata(i + 0, j + 17, k + 7, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 0, j + 17, k + 8, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 0, j + 17, k + 9, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 0, j + 17, k + 10, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 0, j + 17, k + 11, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 0, j + 17, k + 12, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 0, j + 17, k + 13, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 0, j + 18, k + 7, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 0, j + 18, k + 8, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 0, j + 18, k + 9, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 0, j + 18, k + 10, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 0, j + 18, k + 11, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 0, j + 18, k + 12, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 0, j + 18, k + 13, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 0, j + 19, k + 7, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 0, j + 19, k + 8, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 0, j + 19, k + 9, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 0, j + 19, k + 10, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 0, j + 19, k + 11, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 0, j + 19, k + 12, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 0, j + 19, k + 13, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 0, j + 20, k + 7, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 0, j + 20, k + 8, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 0, j + 20, k + 9, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 0, j + 20, k + 10, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 0, j + 20, k + 11, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 0, j + 20, k + 12, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 0, j + 20, k + 13, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 0, j + 21, k + 7, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 0, j + 21, k + 8, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 0, j + 21, k + 9, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 0, j + 21, k + 10, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 0, j + 21, k + 11, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 0, j + 21, k + 12, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 0, j + 21, k + 13, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 0, j + 22, k + 7, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 0, j + 22, k + 8, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 0, j + 22, k + 9, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 0, j + 22, k + 10, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 0, j + 22, k + 11, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 0, j + 22, k + 12, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 0, j + 22, k + 13, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 0, j + 23, k + 8, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 0, j + 23, k + 9, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 0, j + 23, k + 10, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 0, j + 23, k + 11, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 0, j + 23, k + 12, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 0, j + 24, k + 9, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 0, j + 24, k + 10, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 0, j + 24, k + 11, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 1, j + 17, k + 5, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 1, j + 17, k + 6, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 1, j + 17, k + 14, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 1, j + 17, k + 15, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 1, j + 18, k + 5, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 1, j + 18, k + 6, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 1, j + 18, k + 14, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 1, j + 18, k + 15, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 1, j + 19, k + 5, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 1, j + 19, k + 6, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 1, j + 19, k + 14, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 1, j + 19, k + 15, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 1, j + 20, k + 5, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 1, j + 20, k + 6, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 1, j + 20, k + 14, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 1, j + 20, k + 15, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 1, j + 21, k + 5, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 1, j + 21, k + 6, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 1, j + 21, k + 14, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 1, j + 21, k + 15, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 1, j + 22, k + 5, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 1, j + 22, k + 6, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 1, j + 22, k + 14, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 1, j + 22, k + 15, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 1, j + 23, k + 5, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 1, j + 23, k + 6, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 1, j + 23, k + 7, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 1, j + 23, k + 13, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 1, j + 23, k + 14, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 1, j + 23, k + 15, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 1, j + 24, k + 6, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 1, j + 24, k + 7, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 1, j + 24, k + 8, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 1, j + 24, k + 12, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 1, j + 24, k + 13, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 1, j + 24, k + 14, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 1, j + 25, k + 7, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 1, j + 25, k + 8, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 1, j + 25, k + 9, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 1, j + 25, k + 10, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 1, j + 25, k + 11, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 1, j + 25, k + 12, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 1, j + 25, k + 13, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 1, j + 26, k + 8, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 1, j + 26, k + 9, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 1, j + 26, k + 10, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 1, j + 26, k + 11, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 1, j + 26, k + 12, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 2, j + 17, k + 4, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 2, j + 17, k + 16, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 2, j + 18, k + 4, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 2, j + 18, k + 16, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 2, j + 19, k + 4, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 2, j + 19, k + 16, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 2, j + 20, k + 4, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 2, j + 20, k + 16, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 2, j + 21, k + 4, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 2, j + 21, k + 16, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 2, j + 22, k + 4, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 2, j + 22, k + 16, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 2, j + 23, k + 4, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 2, j + 23, k + 16, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 2, j + 24, k + 4, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 2, j + 24, k + 5, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 2, j + 24, k + 15, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 2, j + 24, k + 16, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 2, j + 25, k + 5, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 2, j + 25, k + 6, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 2, j + 25, k + 14, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 2, j + 25, k + 15, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 2, j + 26, k + 6, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 2, j + 26, k + 7, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 2, j + 26, k + 13, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 2, j + 26, k + 14, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 2, j + 27, k + 7, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 2, j + 27, k + 8, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 2, j + 27, k + 9, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 2, j + 27, k + 10, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 2, j + 27, k + 11, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 2, j + 27, k + 12, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 2, j + 27, k + 13, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 3, j + 17, k + 3, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 3, j + 17, k + 17, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 3, j + 18, k + 3, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 3, j + 18, k + 17, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 3, j + 19, k + 3, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 3, j + 19, k + 17, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 3, j + 20, k + 3, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 3, j + 20, k + 17, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 3, j + 21, k + 3, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 3, j + 21, k + 17, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 3, j + 22, k + 3, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 3, j + 22, k + 17, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 3, j + 23, k + 3, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 3, j + 23, k + 17, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 3, j + 24, k + 3, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 3, j + 24, k + 17, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 3, j + 25, k + 4, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 3, j + 25, k + 16, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 3, j + 26, k + 4, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 3, j + 26, k + 5, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 3, j + 26, k + 15, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 3, j + 26, k + 16, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 3, j + 27, k + 5, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 3, j + 27, k + 6, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 3, j + 27, k + 14, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 3, j + 27, k + 15, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 3, j + 28, k + 7, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 3, j + 28, k + 8, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 3, j + 28, k + 9, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 3, j + 28, k + 10, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 3, j + 28, k + 11, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 3, j + 28, k + 12, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 3, j + 28, k + 13, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 4, j + 17, k + 2, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 4, j + 17, k + 18, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 4, j + 18, k + 2, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 4, j + 18, k + 18, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 4, j + 19, k + 2, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 4, j + 19, k + 18, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 4, j + 20, k + 2, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 4, j + 20, k + 18, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 4, j + 21, k + 2, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 4, j + 21, k + 18, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 4, j + 22, k + 2, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 4, j + 22, k + 18, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 4, j + 23, k + 2, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 4, j + 23, k + 18, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 4, j + 24, k + 2, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 4, j + 24, k + 18, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 4, j + 25, k + 3, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 4, j + 25, k + 17, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 4, j + 26, k + 3, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 4, j + 26, k + 17, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 4, j + 27, k + 4, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 4, j + 27, k + 16, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 4, j + 28, k + 5, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 4, j + 28, k + 6, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 4, j + 28, k + 14, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 4, j + 28, k + 15, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 4, j + 29, k + 7, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 4, j + 29, k + 8, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 4, j + 29, k + 9, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 4, j + 29, k + 10, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 4, j + 29, k + 11, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 4, j + 29, k + 12, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 4, j + 29, k + 13, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 5, j + 17, k + 1, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 5, j + 17, k + 19, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 5, j + 18, k + 1, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 5, j + 18, k + 19, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 5, j + 19, k + 1, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 5, j + 19, k + 19, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 5, j + 20, k + 1, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 5, j + 20, k + 19, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 5, j + 21, k + 1, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 5, j + 21, k + 19, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 5, j + 22, k + 1, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 5, j + 22, k + 19, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 5, j + 23, k + 1, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 5, j + 23, k + 19, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 5, j + 24, k + 2, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 5, j + 24, k + 18, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 5, j + 25, k + 2, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 5, j + 25, k + 18, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 5, j + 26, k + 3, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 5, j + 26, k + 17, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 5, j + 27, k + 3, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 5, j + 27, k + 17, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 5, j + 28, k + 4, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 5, j + 28, k + 5, Block.cloth.blockID, 9);
    world.setBlockAndMetadata(i + 5, j + 28, k + 15, Block.cloth.blockID, 9);
    world.setBlockAndMetadata(i + 5, j + 28, k + 16, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 5, j + 29, k + 6, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 5, j + 29, k + 7, Block.cloth.blockID, 9);
    world.setBlockAndMetadata(i + 5, j + 29, k + 13, Block.cloth.blockID, 9);
    world.setBlockAndMetadata(i + 5, j + 29, k + 14, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 5, j + 30, k + 8, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 5, j + 30, k + 9, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 5, j + 30, k + 10, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 5, j + 30, k + 11, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 5, j + 30, k + 12, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 6, j + 17, k + 1, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 6, j + 17, k + 19, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 6, j + 18, k + 1, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 6, j + 18, k + 19, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 6, j + 19, k + 1, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 6, j + 19, k + 19, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 6, j + 20, k + 1, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 6, j + 20, k + 19, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 6, j + 21, k + 1, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 6, j + 21, k + 19, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 6, j + 22, k + 1, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 6, j + 22, k + 19, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 6, j + 23, k + 1, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 6, j + 23, k + 19, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 6, j + 24, k + 1, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 6, j + 24, k + 19, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 6, j + 25, k + 2, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 6, j + 25, k + 18, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 6, j + 26, k + 2, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 6, j + 26, k + 18, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 6, j + 27, k + 3, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 6, j + 27, k + 17, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 6, j + 28, k + 4, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 6, j + 28, k + 16, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 6, j + 29, k + 5, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 6, j + 29, k + 6, Block.cloth.blockID, 9);
    world.setBlockAndMetadata(i + 6, j + 29, k + 14, Block.cloth.blockID, 9);
    world.setBlockAndMetadata(i + 6, j + 29, k + 15, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 6, j + 30, k + 7, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 6, j + 30, k + 8, Block.cloth.blockID, 9);
    world.setBlockAndMetadata(i + 6, j + 30, k + 9, Block.cloth.blockID, 9);
    world.setBlockAndMetadata(i + 6, j + 30, k + 10, Block.cloth.blockID, 9);
    world.setBlockAndMetadata(i + 6, j + 30, k + 11, Block.cloth.blockID, 9);
    world.setBlockAndMetadata(i + 6, j + 30, k + 12, Block.cloth.blockID, 9);
    world.setBlockAndMetadata(i + 6, j + 30, k + 13, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 7, j + 17, k + 0, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 7, j + 17, k + 20, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 7, j + 18, k + 0, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 7, j + 18, k + 20, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 7, j + 19, k + 0, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 7, j + 19, k + 20, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 7, j + 20, k + 0, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 7, j + 20, k + 20, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 7, j + 21, k + 0, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 7, j + 21, k + 20, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 7, j + 22, k + 0, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 7, j + 22, k + 20, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 7, j + 23, k + 1, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 7, j + 23, k + 19, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 7, j + 24, k + 1, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 7, j + 24, k + 19, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 7, j + 25, k + 1, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 7, j + 25, k + 19, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 7, j + 26, k + 2, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 7, j + 26, k + 18, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 7, j + 27, k + 2, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 7, j + 27, k + 18, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 7, j + 28, k + 3, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 7, j + 28, k + 17, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 7, j + 29, k + 4, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 7, j + 29, k + 5, Block.cloth.blockID, 9);
    world.setBlockAndMetadata(i + 7, j + 29, k + 15, Block.cloth.blockID, 9);
    world.setBlockAndMetadata(i + 7, j + 29, k + 16, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 7, j + 30, k + 6, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 7, j + 30, k + 7, Block.cloth.blockID, 9);
    world.setBlockAndMetadata(i + 7, j + 30, k + 8, Block.cloth.blockID, 9);
    world.setBlockAndMetadata(i + 7, j + 30, k + 12, Block.cloth.blockID, 9);
    world.setBlockAndMetadata(i + 7, j + 30, k + 13, Block.cloth.blockID, 9);
    world.setBlockAndMetadata(i + 7, j + 30, k + 14, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 7, j + 31, k + 9, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 7, j + 31, k + 10, Block.cloth.blockID, 3);
    world.setBlockAndMetadata(i + 7, j + 31, k + 11, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 8, j + 17, k + 0, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 8, j + 17, k + 20, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 8, j + 18, k + 0, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 8, j + 18, k + 20, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 8, j + 19, k + 0, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 8, j + 19, k + 20, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 8, j + 20, k + 0, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 8, j + 20, k + 20, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 8, j + 21, k + 0, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 8, j + 21, k + 20, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 8, j + 22, k + 0, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 8, j + 22, k + 20, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 8, j + 23, k + 0, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 8, j + 23, k + 20, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 8, j + 24, k + 1, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 8, j + 24, k + 19, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 8, j + 25, k + 1, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 8, j + 25, k + 19, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 8, j + 26, k + 1, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 8, j + 26, k + 19, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 8, j + 27, k + 2, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 8, j + 27, k + 18, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 8, j + 28, k + 3, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 8, j + 28, k + 17, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 8, j + 29, k + 4, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 8, j + 29, k + 16, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 8, j + 30, k + 5, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 8, j + 30, k + 6, Block.cloth.blockID, 9);
    world.setBlockAndMetadata(i + 8, j + 30, k + 7, Block.cloth.blockID, 9);
    world.setBlockAndMetadata(i + 8, j + 30, k + 13, Block.cloth.blockID, 9);
    world.setBlockAndMetadata(i + 8, j + 30, k + 14, Block.cloth.blockID, 9);
    world.setBlockAndMetadata(i + 8, j + 30, k + 15, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 8, j + 31, k + 8, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 8, j + 31, k + 9, Block.cloth.blockID, 9);
    world.setBlockAndMetadata(i + 8, j + 31, k + 10, Block.cloth.blockID, 9);
    world.setBlockAndMetadata(i + 8, j + 31, k + 11, Block.cloth.blockID, 9);
    world.setBlockAndMetadata(i + 8, j + 31, k + 12, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 9, j + 0, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 9, j + 1, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 9, j + 2, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 9, j + 3, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 9, j + 4, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 9, j + 5, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 9, j + 6, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 9, j + 7, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 9, j + 8, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 9, j + 9, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 9, j + 10, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 9, j + 11, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 9, j + 12, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 9, j + 13, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 9, j + 14, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 9, j + 15, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 9, j + 16, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 9, j + 17, k + 0, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 9, j + 17, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 9, j + 17, k + 20, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 9, j + 18, k + 0, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 9, j + 18, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 9, j + 18, k + 20, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 9, j + 19, k + 0, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 9, j + 19, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 9, j + 19, k + 20, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 9, j + 20, k + 0, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 9, j + 20, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 9, j + 20, k + 20, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 9, j + 21, k + 0, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 9, j + 21, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 9, j + 21, k + 20, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 9, j + 22, k + 0, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 9, j + 22, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 9, j + 22, k + 20, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 9, j + 23, k + 0, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 9, j + 23, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 9, j + 23, k + 20, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 9, j + 24, k + 0, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 9, j + 24, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 9, j + 24, k + 20, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 9, j + 25, k + 1, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 9, j + 25, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 9, j + 25, k + 19, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 9, j + 26, k + 1, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 9, j + 26, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 9, j + 26, k + 19, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 9, j + 27, k + 2, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 9, j + 27, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 9, j + 27, k + 18, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 9, j + 28, k + 3, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 9, j + 28, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 9, j + 28, k + 17, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 9, j + 29, k + 4, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 9, j + 29, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 9, j + 29, k + 16, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 9, j + 30, k + 5, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 9, j + 30, k + 6, Block.cloth.blockID, 9);
    world.setBlockAndMetadata(i + 9, j + 30, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 9, j + 30, k + 14, Block.cloth.blockID, 9);
    world.setBlockAndMetadata(i + 9, j + 30, k + 15, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 9, j + 31, k + 7, Block.cloth.blockID, 2);
    world.setBlockAndMetadata(i + 9, j + 31, k + 8, Block.cloth.blockID, 9);
    world.setBlockAndMetadata(i + 9, j + 31, k + 9, Block.cloth.blockID, 9);
    world.setBlockAndMetadata(i + 9, j + 31, k + 10, Block.cloth.blockID, 9);
    world.setBlockAndMetadata(i + 9, j + 31, k + 11, Block.cloth.blockID, 9);
    world.setBlockAndMetadata(i + 9, j + 31, k + 12, Block.cloth.blockID, 9);
    world.setBlockAndMetadata(i + 9, j + 31, k + 13, Block.cloth.blockID, 4);
    world.setBlockAndMetadata(i + 10, j + 0, k + 9, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 0, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 0, k + 11, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 1, k + 9, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 1, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 1, k + 11, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 2, k + 9, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 2, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 2, k + 11, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 3, k + 9, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 3, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 3, k + 11, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 4, k + 9, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 4, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 4, k + 11, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 5, k + 9, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 5, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 5, k + 11, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 6, k + 9, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 6, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 6, k + 11, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 7, k + 9, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 7, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 7, k + 11, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 8, k + 9, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 8, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 8, k + 11, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 9, k + 9, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 9, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 9, k + 11, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 10, k + 9, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 10, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 10, k + 11, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 11, k + 9, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 11, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 11, k + 11, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 12, k + 9, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 12, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 12, k + 11, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 13, k + 9, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 13, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 13, k + 11, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 14, k + 9, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 14, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 14, k + 11, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 15, k + 9, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 15, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 15, k + 11, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 16, k + 9, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 16, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 16, k + 11, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 17, k + 0, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 10, j + 17, k + 9, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 17, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 17, k + 11, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 17, k + 20, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 10, j + 18, k + 0, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 10, j + 18, k + 9, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 18, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 18, k + 11, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 18, k + 20, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 10, j + 19, k + 0, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 10, j + 19, k + 9, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 19, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 19, k + 11, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 19, k + 20, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 10, j + 20, k + 0, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 10, j + 20, k + 9, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 20, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 20, k + 11, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 20, k + 20, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 10, j + 21, k + 0, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 10, j + 21, k + 9, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 21, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 21, k + 11, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 21, k + 20, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 10, j + 22, k + 0, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 10, j + 22, k + 9, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 22, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 22, k + 11, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 22, k + 20, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 10, j + 23, k + 0, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 10, j + 23, k + 9, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 23, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 23, k + 11, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 23, k + 20, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 10, j + 24, k + 0, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 10, j + 24, k + 9, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 24, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 24, k + 11, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 24, k + 20, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 10, j + 25, k + 1, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 10, j + 25, k + 9, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 25, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 25, k + 11, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 25, k + 19, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 10, j + 26, k + 1, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 10, j + 26, k + 9, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 26, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 26, k + 11, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 26, k + 19, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 10, j + 27, k + 2, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 10, j + 27, k + 9, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 27, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 27, k + 11, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 27, k + 18, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 10, j + 28, k + 3, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 10, j + 28, k + 9, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 28, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 28, k + 11, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 28, k + 17, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 10, j + 29, k + 4, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 10, j + 29, k + 9, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 29, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 29, k + 11, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 29, k + 16, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 10, j + 30, k + 5, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 10, j + 30, k + 6, Block.cloth.blockID, 9);
    world.setBlockAndMetadata(i + 10, j + 30, k + 9, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 30, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 30, k + 11, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 10, j + 30, k + 14, Block.cloth.blockID, 9);
    world.setBlockAndMetadata(i + 10, j + 30, k + 15, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 10, j + 31, k + 7, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 10, j + 31, k + 8, Block.cloth.blockID, 9);
    world.setBlockAndMetadata(i + 10, j + 31, k + 9, Block.cloth.blockID, 9);
    world.setBlockAndMetadata(i + 10, j + 31, k + 10, Block.cloth.blockID, 9);
    world.setBlockAndMetadata(i + 10, j + 31, k + 11, Block.cloth.blockID, 9);
    world.setBlockAndMetadata(i + 10, j + 31, k + 12, Block.cloth.blockID, 9);
    world.setBlockAndMetadata(i + 10, j + 31, k + 13, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 11, j + 0, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 11, j + 1, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 11, j + 2, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 11, j + 3, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 11, j + 4, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 11, j + 5, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 11, j + 6, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 11, j + 7, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 11, j + 8, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 11, j + 9, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 11, j + 10, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 11, j + 11, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 11, j + 12, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 11, j + 13, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 11, j + 14, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 11, j + 15, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 11, j + 16, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 11, j + 17, k + 0, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 11, j + 17, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 11, j + 17, k + 20, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 11, j + 18, k + 0, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 11, j + 18, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 11, j + 18, k + 20, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 11, j + 19, k + 0, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 11, j + 19, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 11, j + 19, k + 20, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 11, j + 20, k + 0, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 11, j + 20, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 11, j + 20, k + 20, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 11, j + 21, k + 0, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 11, j + 21, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 11, j + 21, k + 20, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 11, j + 22, k + 0, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 11, j + 22, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 11, j + 22, k + 20, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 11, j + 23, k + 0, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 11, j + 23, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 11, j + 23, k + 20, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 11, j + 24, k + 0, Block.cloth.blockID, 8);
    world.setBlockAndMetadata(i + 11, j + 24, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 11, j + 24, k + 20, Block.cloth.blockID, 6);
    world.setBlockAndMetadata(i + 11, j + 25, k + 1, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 11, j + 25, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 11, j + 25, k + 19, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 11, j + 26, k + 1, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 11, j + 26, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 11, j + 26, k + 19, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 11, j + 27, k + 2, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 11, j + 27, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 11, j + 27, k + 18, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 11, j + 28, k + 3, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 11, j + 28, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 11, j + 28, k + 17, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 11, j + 29, k + 4, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 11, j + 29, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 11, j + 29, k + 16, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 11, j + 30, k + 5, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 11, j + 30, k + 6, Block.cloth.blockID, 9);
    world.setBlockAndMetadata(i + 11, j + 30, k + 10, Block.cloth.blockID, 10);
    world.setBlockAndMetadata(i + 11, j + 30, k + 14, Block.cloth.blockID, 9);
    world.setBlockAndMetadata(i + 11, j + 30, k + 15, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 11, j + 31, k + 7, Block.cloth.blockID, 8);
    world.setBlockAndMetadata(i + 11, j + 31, k + 8, Block.cloth.blockID, 9);
    world.setBlockAndMetadata(i + 11, j + 31, k + 9, Block.cloth.blockID, 9);
    world.setBlockAndMetadata(i + 11, j + 31, k + 10, Block.cloth.blockID, 9);
    world.setBlockAndMetadata(i + 11, j + 31, k + 11, Block.cloth.blockID, 9);
    world.setBlockAndMetadata(i + 11, j + 31, k + 12, Block.cloth.blockID, 9);
    world.setBlockAndMetadata(i + 11, j + 31, k + 13, Block.cloth.blockID, 6);
    world.setBlockAndMetadata(i + 12, j + 17, k + 0, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 12, j + 17, k + 20, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 12, j + 18, k + 0, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 12, j + 18, k + 20, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 12, j + 19, k + 0, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 12, j + 19, k + 20, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 12, j + 20, k + 0, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 12, j + 20, k + 20, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 12, j + 21, k + 0, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 12, j + 21, k + 20, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 12, j + 22, k + 0, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 12, j + 22, k + 20, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 12, j + 23, k + 0, Block.cloth.blockID, 8);
    world.setBlockAndMetadata(i + 12, j + 23, k + 20, Block.cloth.blockID, 6);
    world.setBlockAndMetadata(i + 12, j + 24, k + 1, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 12, j + 24, k + 19, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 12, j + 25, k + 1, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 12, j + 25, k + 19, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 12, j + 26, k + 1, Block.cloth.blockID, 8);
    world.setBlockAndMetadata(i + 12, j + 26, k + 19, Block.cloth.blockID, 6);
    world.setBlockAndMetadata(i + 12, j + 27, k + 2, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 12, j + 27, k + 18, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 12, j + 28, k + 3, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 12, j + 28, k + 17, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 12, j + 29, k + 4, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 12, j + 29, k + 16, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 12, j + 30, k + 5, Block.cloth.blockID, 8);
    world.setBlockAndMetadata(i + 12, j + 30, k + 6, Block.cloth.blockID, 9);
    world.setBlockAndMetadata(i + 12, j + 30, k + 7, Block.cloth.blockID, 9);
    world.setBlockAndMetadata(i + 12, j + 30, k + 13, Block.cloth.blockID, 9);
    world.setBlockAndMetadata(i + 12, j + 30, k + 14, Block.cloth.blockID, 9);
    world.setBlockAndMetadata(i + 12, j + 30, k + 15, Block.cloth.blockID, 6);
    world.setBlockAndMetadata(i + 12, j + 31, k + 8, Block.cloth.blockID, 8);
    world.setBlockAndMetadata(i + 12, j + 31, k + 9, Block.cloth.blockID, 9);
    world.setBlockAndMetadata(i + 12, j + 31, k + 10, Block.cloth.blockID, 9);
    world.setBlockAndMetadata(i + 12, j + 31, k + 11, Block.cloth.blockID, 9);
    world.setBlockAndMetadata(i + 12, j + 31, k + 12, Block.cloth.blockID, 6);
    world.setBlockAndMetadata(i + 13, j + 17, k + 0, Block.cloth.blockID, 8);
    world.setBlockAndMetadata(i + 13, j + 17, k + 20, Block.cloth.blockID, 6);
    world.setBlockAndMetadata(i + 13, j + 18, k + 0, Block.cloth.blockID, 8);
    world.setBlockAndMetadata(i + 13, j + 18, k + 20, Block.cloth.blockID, 6);
    world.setBlockAndMetadata(i + 13, j + 19, k + 0, Block.cloth.blockID, 8);
    world.setBlockAndMetadata(i + 13, j + 19, k + 20, Block.cloth.blockID, 6);
    world.setBlockAndMetadata(i + 13, j + 20, k + 0, Block.cloth.blockID, 8);
    world.setBlockAndMetadata(i + 13, j + 20, k + 20, Block.cloth.blockID, 6);
    world.setBlockAndMetadata(i + 13, j + 21, k + 0, Block.cloth.blockID, 8);
    world.setBlockAndMetadata(i + 13, j + 21, k + 20, Block.cloth.blockID, 6);
    world.setBlockAndMetadata(i + 13, j + 22, k + 0, Block.cloth.blockID, 8);
    world.setBlockAndMetadata(i + 13, j + 22, k + 20, Block.cloth.blockID, 6);
    world.setBlockAndMetadata(i + 13, j + 23, k + 1, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 13, j + 23, k + 19, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 13, j + 24, k + 1, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 13, j + 24, k + 19, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 13, j + 25, k + 1, Block.cloth.blockID, 8);
    world.setBlockAndMetadata(i + 13, j + 25, k + 19, Block.cloth.blockID, 6);
    world.setBlockAndMetadata(i + 13, j + 26, k + 2, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 13, j + 26, k + 18, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 13, j + 27, k + 2, Block.cloth.blockID, 8);
    world.setBlockAndMetadata(i + 13, j + 27, k + 18, Block.cloth.blockID, 6);
    world.setBlockAndMetadata(i + 13, j + 28, k + 3, Block.cloth.blockID, 8);
    world.setBlockAndMetadata(i + 13, j + 28, k + 17, Block.cloth.blockID, 6);
    world.setBlockAndMetadata(i + 13, j + 29, k + 4, Block.cloth.blockID, 8);
    world.setBlockAndMetadata(i + 13, j + 29, k + 5, Block.cloth.blockID, 9);
    world.setBlockAndMetadata(i + 13, j + 29, k + 15, Block.cloth.blockID, 9);
    world.setBlockAndMetadata(i + 13, j + 29, k + 16, Block.cloth.blockID, 6);
    world.setBlockAndMetadata(i + 13, j + 30, k + 6, Block.cloth.blockID, 8);
    world.setBlockAndMetadata(i + 13, j + 30, k + 7, Block.cloth.blockID, 9);
    world.setBlockAndMetadata(i + 13, j + 30, k + 8, Block.cloth.blockID, 9);
    world.setBlockAndMetadata(i + 13, j + 30, k + 12, Block.cloth.blockID, 9);
    world.setBlockAndMetadata(i + 13, j + 30, k + 13, Block.cloth.blockID, 9);
    world.setBlockAndMetadata(i + 13, j + 30, k + 14, Block.cloth.blockID, 6);
    world.setBlockAndMetadata(i + 13, j + 31, k + 9, Block.cloth.blockID, 8);
    world.setBlockAndMetadata(i + 13, j + 31, k + 10, Block.cloth.blockID, 7);
    world.setBlockAndMetadata(i + 13, j + 31, k + 11, Block.cloth.blockID, 6);
    world.setBlockAndMetadata(i + 14, j + 17, k + 1, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 14, j + 17, k + 19, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 14, j + 18, k + 1, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 14, j + 18, k + 19, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 14, j + 19, k + 1, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 14, j + 19, k + 19, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 14, j + 20, k + 1, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 14, j + 20, k + 19, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 14, j + 21, k + 1, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 14, j + 21, k + 19, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 14, j + 22, k + 1, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 14, j + 22, k + 19, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 14, j + 23, k + 1, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 14, j + 23, k + 19, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 14, j + 24, k + 1, Block.cloth.blockID, 8);
    world.setBlockAndMetadata(i + 14, j + 24, k + 19, Block.cloth.blockID, 6);
    world.setBlockAndMetadata(i + 14, j + 25, k + 2, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 14, j + 25, k + 18, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 14, j + 26, k + 2, Block.cloth.blockID, 8);
    world.setBlockAndMetadata(i + 14, j + 26, k + 18, Block.cloth.blockID, 6);
    world.setBlockAndMetadata(i + 14, j + 27, k + 3, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 14, j + 27, k + 17, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 14, j + 28, k + 4, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 14, j + 28, k + 16, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 14, j + 29, k + 5, Block.cloth.blockID, 8);
    world.setBlockAndMetadata(i + 14, j + 29, k + 6, Block.cloth.blockID, 9);
    world.setBlockAndMetadata(i + 14, j + 29, k + 14, Block.cloth.blockID, 9);
    world.setBlockAndMetadata(i + 14, j + 29, k + 15, Block.cloth.blockID, 6);
    world.setBlockAndMetadata(i + 14, j + 30, k + 7, Block.cloth.blockID, 8);
    world.setBlockAndMetadata(i + 14, j + 30, k + 8, Block.cloth.blockID, 9);
    world.setBlockAndMetadata(i + 14, j + 30, k + 9, Block.cloth.blockID, 9);
    world.setBlockAndMetadata(i + 14, j + 30, k + 10, Block.cloth.blockID, 9);
    world.setBlockAndMetadata(i + 14, j + 30, k + 11, Block.cloth.blockID, 9);
    world.setBlockAndMetadata(i + 14, j + 30, k + 12, Block.cloth.blockID, 9);
    world.setBlockAndMetadata(i + 14, j + 30, k + 13, Block.cloth.blockID, 6);
    world.setBlockAndMetadata(i + 15, j + 17, k + 1, Block.cloth.blockID, 8);
    world.setBlockAndMetadata(i + 15, j + 17, k + 19, Block.cloth.blockID, 6);
    world.setBlockAndMetadata(i + 15, j + 18, k + 1, Block.cloth.blockID, 8);
    world.setBlockAndMetadata(i + 15, j + 18, k + 19, Block.cloth.blockID, 6);
    world.setBlockAndMetadata(i + 15, j + 19, k + 1, Block.cloth.blockID, 8);
    world.setBlockAndMetadata(i + 15, j + 19, k + 19, Block.cloth.blockID, 6);
    world.setBlockAndMetadata(i + 15, j + 20, k + 1, Block.cloth.blockID, 8);
    world.setBlockAndMetadata(i + 15, j + 20, k + 19, Block.cloth.blockID, 6);
    world.setBlockAndMetadata(i + 15, j + 21, k + 1, Block.cloth.blockID, 8);
    world.setBlockAndMetadata(i + 15, j + 21, k + 19, Block.cloth.blockID, 6);
    world.setBlockAndMetadata(i + 15, j + 22, k + 1, Block.cloth.blockID, 8);
    world.setBlockAndMetadata(i + 15, j + 22, k + 19, Block.cloth.blockID, 6);
    world.setBlockAndMetadata(i + 15, j + 23, k + 1, Block.cloth.blockID, 8);
    world.setBlockAndMetadata(i + 15, j + 23, k + 19, Block.cloth.blockID, 6);
    world.setBlockAndMetadata(i + 15, j + 24, k + 2, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 15, j + 24, k + 18, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 15, j + 25, k + 2, Block.cloth.blockID, 8);
    world.setBlockAndMetadata(i + 15, j + 25, k + 18, Block.cloth.blockID, 6);
    world.setBlockAndMetadata(i + 15, j + 26, k + 3, Block.cloth.blockID, 1);
    world.setBlockAndMetadata(i + 15, j + 26, k + 17, Block.cloth.blockID, 5);
    world.setBlockAndMetadata(i + 15, j + 27, k + 3, Block.cloth.blockID, 8);
    world.setBlockAndMetadata(i + 15, j + 27, k + 17, Block.cloth.blockID, 6);
    world.setBlockAndMetadata(i + 15, j + 28, k + 4, Block.cloth.blockID, 8);
    world.setBlockAndMetadata(i + 15, j + 28, k + 5, Block.cloth.blockID, 9);
    world.setBlockAndMetadata(i + 15, j + 28, k + 15, Block.cloth.blockID, 9);
    world.setBlockAndMetadata(i + 15, j + 28, k + 16, Block.cloth.blockID, 6);
    world.setBlockAndMetadata(i + 15, j + 29, k + 6, Block.cloth.blockID, 8);
    world.setBlockAndMetadata(i + 15, j + 29, k + 7, Block.cloth.blockID, 9);
    world.setBlockAndMetadata(i + 15, j + 29, k + 13, Block.cloth.blockID, 9);
    world.setBlockAndMetadata(i + 15, j + 29, k + 14, Block.cloth.blockID, 6);
    world.setBlockAndMetadata(i + 15, j + 30, k + 8, Block.cloth.blockID, 8);
    world.setBlockAndMetadata(i + 15, j + 30, k + 9, Block.cloth.blockID, 7);
    world.setBlockAndMetadata(i + 15, j + 30, k + 10, Block.cloth.blockID, 7);
    world.setBlockAndMetadata(i + 15, j + 30, k + 11, Block.cloth.blockID, 7);
    world.setBlockAndMetadata(i + 15, j + 30, k + 12, Block.cloth.blockID, 6);
    world.setBlockAndMetadata(i + 16, j + 17, k + 2, Block.cloth.blockID, 8);
    world.setBlockAndMetadata(i + 16, j + 17, k + 18, Block.cloth.blockID, 6);
    world.setBlockAndMetadata(i + 16, j + 18, k + 2, Block.cloth.blockID, 8);
    world.setBlockAndMetadata(i + 16, j + 18, k + 18, Block.cloth.blockID, 6);
    world.setBlockAndMetadata(i + 16, j + 19, k + 2, Block.cloth.blockID, 8);
    world.setBlockAndMetadata(i + 16, j + 19, k + 18, Block.cloth.blockID, 6);
    world.setBlockAndMetadata(i + 16, j + 20, k + 2, Block.cloth.blockID, 8);
    world.setBlockAndMetadata(i + 16, j + 20, k + 18, Block.cloth.blockID, 6);
    world.setBlockAndMetadata(i + 16, j + 21, k + 2, Block.cloth.blockID, 8);
    world.setBlockAndMetadata(i + 16, j + 21, k + 18, Block.cloth.blockID, 6);
    world.setBlockAndMetadata(i + 16, j + 22, k + 2, Block.cloth.blockID, 8);
    world.setBlockAndMetadata(i + 16, j + 22, k + 18, Block.cloth.blockID, 6);
    world.setBlockAndMetadata(i + 16, j + 23, k + 2, Block.cloth.blockID, 8);
    world.setBlockAndMetadata(i + 16, j + 23, k + 18, Block.cloth.blockID, 6);
    world.setBlockAndMetadata(i + 16, j + 24, k + 2, Block.cloth.blockID, 8);
    world.setBlockAndMetadata(i + 16, j + 24, k + 18, Block.cloth.blockID, 6);
    world.setBlockAndMetadata(i + 16, j + 25, k + 3, Block.cloth.blockID, 8);
    world.setBlockAndMetadata(i + 16, j + 25, k + 17, Block.cloth.blockID, 6);
    world.setBlockAndMetadata(i + 16, j + 26, k + 3, Block.cloth.blockID, 8);
    world.setBlockAndMetadata(i + 16, j + 26, k + 17, Block.cloth.blockID, 6);
    world.setBlockAndMetadata(i + 16, j + 27, k + 4, Block.cloth.blockID, 8);
    world.setBlockAndMetadata(i + 16, j + 27, k + 16, Block.cloth.blockID, 6);
    world.setBlockAndMetadata(i + 16, j + 28, k + 5, Block.cloth.blockID, 8);
    world.setBlockAndMetadata(i + 16, j + 28, k + 6, Block.cloth.blockID, 7);
    world.setBlockAndMetadata(i + 16, j + 28, k + 14, Block.cloth.blockID, 7);
    world.setBlockAndMetadata(i + 16, j + 28, k + 15, Block.cloth.blockID, 6);
    world.setBlockAndMetadata(i + 16, j + 29, k + 7, Block.cloth.blockID, 8);
    world.setBlockAndMetadata(i + 16, j + 29, k + 8, Block.cloth.blockID, 7);
    world.setBlockAndMetadata(i + 16, j + 29, k + 9, Block.cloth.blockID, 7);

    return true;
    }
    }
    [/CODE_Java]

    :::

    Tout les "setBlockAndMetadata" son souligné en rouge et me dit:
    The method setBlockAndMetadata(int, int, int, int, int) is undefined for the type World.

    Une idée ?

    Merci d'avance.


  • Moddeurs confirmés Rédacteurs Administrateurs

    La méthode n'existe plus en 1.5, remplace tout les setBlockAndMetadata par setBlock
    Il faut que tu ajoute aussi un argument de plus, le flag, mets 3 ducoup :
    [code_java]world.setBlockAndMetadata(i + 0, j + 17, k + 7, Block.cloth.blockID, 2);[/code_java]
    donne ça :
    [code_java]world.setBlock(i + 0, j + 17, k + 7, Block.cloth.blockID, 2, 3);[/code_java]



  • Ok je regarde sa de se pas, je tien au courent, merci.

    PS: pour le moment c'est des bloque de laine, mais c'est en attendent car le logiciel qui transforme le .shematic en java, ne j'aire pas les bloques modée et les metadatas de s'est bloque x).
    –--

    J'ai du faire une fausse manip sa n'a pas enregistrai se que j'ai rajoutait:
    Pour quoi 3 pour le flag ? Je ne fais pas le lien entre les deux, une explication ?

    Sinon j'ai plus d'erreur, merci.



  • PS : Par pitié, attention à l'orthographe !
    PS² : Comment on mais du java dans les balises "code" ?
    met et pas mais
    c'est code_java puis /code_java, c'est Woryk qui a mit ça en place, donc merci à lui Smile

    Ok je vais me pendre ! Putain xD



  • Ne soit pas si pessimiste stp 😞
    XD
    Et pour info sinon, c'est de la bone meal "Poudre d'os" avec lequel je vais faire un clique droit sur le bloque.
    Donc la je regarde la class de l’arbre pour voir si je trouve se que je veux.

    PS: oui oui --', je joue avec la version anglaise XD, en français je trouve que c'est mal traduit des fois.



  • Ne t'inquiète pas, c'est à cause de moi que je vais me pendre, je t'ai fait une remarque sur l'orthographe et Robin m'a fait remarquer que j'avais fait une faute impardonnable à la ligne d'en dessous ! 😂



  • Alors sa s'est se qui s’appelle se prendre une baffe x).


  • Administrateurs

    D'ailleurs pour ceux qui voudraient le logiciel, tenez ! https://mega.co.nz/#!ZEMTjbRb!O949hQJFz40YUVsnMgFTtEGibM8rcfcwBhZAZAIXs0g



  • Mais eu ! Je voulais passer le lien si j’étais autorisé à faire le tuto x).
    Enfin bon … merci, j'aurai ça de moins à faire °-°. XD

    Ha oui, je ne trouve pas ce qu'il me faut pour pouvoir faire apparaître la structure. Un indice ?


  • Administrateurs

    GameRegistry.registerWorldGenerator(new WorldGenBLABLA());



  • Merci pour se boue de code, mais la comme ça je ne vois vraiment pas comme l'utiliser x).
    Mais je vais chercher :).
    –----

    Bon la je suis dsl mais je vois vraiment pas '-'.
    Bon bain du coup sa sera pas moi qui fera un tuto dessus tempi x).



  • up
    "Oui ! le premier up de ma vie ! Champagne !!!" XD



  • up

    Après mainte et mainte essais, teste ect, je n'est toujours pas de résulta pour se que je veux faire …
    Je vais simplifier, en gros, c'est comme un arbre, mais avec une structure prédéfini et il n'y a pas d’aléatoire.

    J'ai déjà le code pour la structure, il faudrait juste que j'arrive a remplacer le code de génération de l'arbre par le mien ...
    mais sa ne fonctionne pas XD, un petit coup de main svp ?

    PS: a oui, et du coup désolé triple poste, mais comme s'est un up, je savais pas trop si je pouvais le mètre dans un autre message en edit.


  • Administrateurs

    Le game registry que je t'ai donné se met dans la fonction nommé "init" de ton mod, ou "load" 🙂


  • Administrateurs

    @'robin4002':

    La méthode n'existe plus en 1.5, remplace tout les setBlockAndMetadata par setBlock
    Il faut que tu ajoute aussi un argument de plus, le flag, mets 3 ducoup :
    [code_java]world.setBlockAndMetadata(i + 0, j + 17, k + 7, Block.cloth.blockID, 2);[/code_java]
    donne ça :
    [code_java]world.setBlock(i + 0, j + 17, k + 7, Block.cloth.blockID, 2, 3);[/code_java]

    Le mieux serait d'utiliser setBlockMetadataWithNotify



  • okok, je vais faire sa. mais par contre je ne souhaite pas que ma structure se génère sur ma map attention, c'est juste une pouce craftable x), c'est vrais que j'ai oublier de précisai se poins, mais je vais regardai sa tout de suite.
    Ou alors j'ai mal compris x).
    –--

    Le "setBlockMetadataWithNotify" ne me mais pas d'erreur, par contre il faut que j’enlève le 3 a la fin de toute les ligne x)


    Pour faire pousser un arbre ou autre sous forge en 1.4.7 il fallait rajoutais sa dans le @Init

    Erreur
    [CODE_Java]MinecraftForge.EVENT_BUS.register(new TutoBoneMeal());[/CODE_Java]
    source: http://minecraft.fr/forum/index.php?threads/modding-1-5-2-créer-un-mod-avec-minecraft-forge-en-cour-dupdate.59416/
    Et créer la classe "TutoBoneMeal"
    :::
    [CODE_Java]package robin4002.modtuto.common;

    import net.minecraftforge.event.Event;
    import net.minecraftforge.event.ForgeSubscribe;
    import net.minecraftforge.event.entity.player.BonemealEvent;

    public class TutoBoneMeal
    {

    @ForgeSubscribe
    public void onUseBonemeal(BonemealEvent event)
    {
    if (event.ID == modtuto.TutoSapling.blockID)
    {
    if (!event.world.isRemote)
    {
    ((TutoSapling)modtuto.TutoSapling).growTree(event.world, event.X, event.Y, event.Z, event.world.rand);
    event.setResult(Event.Result.ALLOW);
    }
    }
    }
    }[/CODE_Java]
    :::
    source: http://minecraft.fr/forum/index.php?threads/modding-1-5-2-créer-un-mod-avec-minecraft-forge-en-cour-dupdate.59416/
    Mais du coup ce n'est plus d’actualité, en 1.5.1, je n'est pas encor fini pour la génération de ma structure avec la pouce mais j'en aurais besoin pour testait plus rapidement au lieu de poirotai voir si sa pouce x).

    Je sais j'en demande beaucoup, un coup de main ? XD

    Merci d'avance.



  • Je suis peut être trop curieux mais si tu ne génères pas la structure sur la map , tu la génères où?!?

    Ceci et cela donne ça et celle de l'autre est la sienne donc sa
    et un pouce n'est pas une pousse ^^ respire que tu écris 🙂


Log in to reply