1. Le forum de Minecraft-France va définitivement fermer ses portes. Celui-ci restera en lecture seule mais vous ne pourrez plus y apporter de nouveaux topics. Nous vous invitons à nous rejoindre sur le Discord de Minecraft-France qui permet de présenter vos projets, discuter avec la communauté etc.. Merci à tous d'avoir fait vivre ce forum de nombreuses années. Pour nous rejoindre sur Discord, Cliquez ici

Résolu Crash quand ma structure structure ce génère.

Discussion dans 'Aide à la création de mod' créé par Arthaïr, 9 Mar 2016.

  1. Arthaïr

    Arthaïr Mineur

    Inscrit:
    1 Août 2014
    Messages:
    344
    Points:
    119
    Sexe:
    Homme
    Salut,
    Je suis en pleine création de mod, et quand ma structure se génère sa crash
    Code (cpp):
    ---- Minecraft Crash Report ----
    // I blame Dinnerbone.'Player778'/489, l='New World', x=275,08, y=115,62, z=-592,74]]
        Chunk stats: ServerChunkCache: 857 Drop: 0
        Level seed: 5780725843714199925
        Level generator: ID 00 - default, ver 1. Features enabled: true
        Level generator options:
        Level spawn location: 214,00,64,00,-82,00 - World: (214,64,-82), Chunk: (at 6,4,14 in 13,-6; contains blocks 208,0,-96 to 223,255,-81), Region: (0,-1; contains chunks 0,-32 to 31,-1, blocks 0,0,-512 to 511,255,-1)
        Level time: 609 game time, 609 day time
        Level dimension: 0
        Level storage version: 0x04ABD - Anvil
        Level weather: Rain time: 54285 (now: false), thunder time: 86768 (now: false)
        Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: true
    Stacktrace:
        at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:764)
        at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:669)
        at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:171)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:540)
        at java.lang.Thread.run(Unknown Source)

    -- System Details --
    Details:
        Minecraft Version: 1.8
        Operating System: Windows 8.1 (amd64) version 6.3
        Java Version: 1.8.0_65, Oracle Corporation
        Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
        Memory: 545458384 bytes (520 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)
        JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
        IntCache: cache: 0, tcache: 0, allocated: 13, tallocated: 95
        FML: MCP v9.10 FML v8.0.99.99 Minecraft Forge 11.14.4.1577 4 mods loaded, 4 mods active
        States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
        UCHIJAAAA    mcp{9.05} [Minecraft Coder Pack] (minecraft.jar)
        UCHIJAAAA    FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.8-11.14.4.1577.jar)
        UCHIJAAAA    Forge{11.14.4.1577} [Minecraft Forge] (forgeSrc-1.8-11.14.4.1577.jar)
        UCHIJAAAA    arthur{1.0.0} [rubisplus] (bin)
        Loaded coremods (and transformers):
        GL info: ~~ERROR~~ RuntimeException: No OpenGL context found in the current thread.
        Profiler Position: N/A (disabled)
        Player Count: 1 / 8; [EntityPlayerMP['Player778'/489, l='New World', x=275,08, y=115,62, z=-592,74]]
        Type: Integrated Server (map_client.txt)
        Is Modded: Definitely; Client brand changed to 'fml,forge'
    Là où il y a ma structure bloc par bloc
    Code (cpp):
    package com.arthur.mod.Structure;

    import java.util.Random;

    import net.minecraft.block.Block;
    import net.minecraft.entity.EntityList;
    import net.minecraft.init.Blocks;
    import net.minecraft.init.Blocks;
    import net.minecraft.util.BlockPos;
    import net.minecraft.world.World;

    import com.arthur.mod.Block.BlockMod;
    import com.sun.xml.internal.stream.Entity;

    public class Structure1
    {
        public boolean genrate(World world, Random random, BlockPos pos)
        {
            int i = pos.getX();
            int j = pos.getY();
            int k = pos.getZ();
           
           
            if(world.getBlockState(new BlockPos(i, j-1, k)) == Blocks.grass.getDefaultState() && world.isAirBlock(new BlockPos(i, j+12, k)))
            {
                world.setBlockState(new BlockPos(i+0, j+0, k+0), Blocks.grass.getDefaultState());;
                world.setBlockState(new BlockPos(i+1, j+0, k+0), Blocks.grass.getDefaultState());;
                world.setBlockState(new BlockPos(i+2, j+0, k+0), Blocks.grass.getDefaultState());;
                world.setBlockState(new BlockPos(i+3, j+0, k+0), Blocks.grass.getDefaultState());;
                world.setBlockState(new BlockPos(i+4, j+0, k+0), Blocks.grass.getDefaultState());
                world.setBlockState(new BlockPos(i+5, j+0, k+0), Blocks.grass.getDefaultState());
                world.setBlockState(new BlockPos(i+6, j+0, k+0), Blocks.grass.getDefaultState());
                world.setBlockState(new BlockPos(i+7, j+0, k+0), Blocks.grass.getDefaultState());
                world.setBlockState(new BlockPos(i+8, j+0, k+0), Blocks.grass.getDefaultState());
                world.setBlockState(new BlockPos(i+9, j+0, k+0), Blocks.grass.getDefaultState());
                world.setBlockState(new BlockPos(i+10, j+0, k+0), Blocks.grass.getDefaultState());
                world.setBlockState(new BlockPos(i+0, j+0, k+1), Blocks.grass.getDefaultState());
                world.setBlockState(new BlockPos(i+1, j+0, k+1), Blocks.grass.getDefaultState());
                world.setBlockState(new BlockPos(i+2, j+0, k+1), Blocks.planks.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+3, j+0, k+1), Blocks.planks.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+4, j+0, k+1), Blocks.grass.getDefaultState());
                world.setBlockState(new BlockPos(i+5, j+0, k+1), Blocks.cobblestone.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+6, j+0, k+1), Blocks.grass.getDefaultState());
                world.setBlockState(new BlockPos(i+7, j+0, k+1), Blocks.planks.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+8, j+0, k+1), Blocks.planks.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+9, j+0, k+1), Blocks.grass.getDefaultState());
                world.setBlockState(new BlockPos(i+10, j+0, k+1), Blocks.grass.getDefaultState());
                world.setBlockState(new BlockPos(i+0, j+0, k+2), Blocks.grass.getDefaultState());
                world.setBlockState(new BlockPos(i+1, j+0, k+2), Blocks.grass.getDefaultState());
                world.setBlockState(new BlockPos(i+2, j+0, k+2), Blocks.planks.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+3, j+0, k+2), Blocks.planks.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+4, j+0, k+2), Blocks.planks.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+5, j+0, k+2), Blocks.planks.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+6, j+0, k+2), Blocks.planks.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+7, j+0, k+2), Blocks.planks.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+8, j+0, k+2), Blocks.planks.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+9, j+0, k+2), Blocks.grass.getDefaultState());
                world.setBlockState(new BlockPos(i+10, j+0, k+2), Blocks.grass.getDefaultState());
                world.setBlockState(new BlockPos(i+0, j+0, k+3), Blocks.grass.getDefaultState());
                world.setBlockState(new BlockPos(i+1, j+0, k+3), Blocks.grass.getDefaultState());
                world.setBlockState(new BlockPos(i+2, j+0, k+3), Blocks.planks.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+3, j+0, k+3), Blocks.planks.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+4, j+0, k+3), Blocks.planks.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+5, j+0, k+3), Blocks.glowstone.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+6, j+0, k+3), Blocks.planks.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+7, j+0, k+3), Blocks.planks.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+8, j+0, k+3), Blocks.planks.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+9, j+0, k+3), Blocks.grass.getDefaultState());
                world.setBlockState(new BlockPos(i+10, j+0, k+3), Blocks.grass.getDefaultState());
                world.setBlockState(new BlockPos(i+0, j+0, k+4), Blocks.grass.getDefaultState());
                world.setBlockState(new BlockPos(i+1, j+0, k+4), Blocks.grass.getDefaultState());
                world.setBlockState(new BlockPos(i+2, j+0, k+4), Blocks.planks.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+3, j+0, k+4), Blocks.planks.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+4, j+0, k+4), Blocks.planks.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+5, j+0, k+4), Blocks.glowstone.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+6, j+0, k+4), Blocks.planks.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+7, j+0, k+4), Blocks.planks.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+8, j+0, k+4), Blocks.planks.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+9, j+0, k+4), Blocks.grass.getDefaultState());
                world.setBlockState(new BlockPos(i+10, j+0, k+4), Blocks.grass.getDefaultState());
                world.setBlockState(new BlockPos(i+0, j+0, k+5), Blocks.grass.getDefaultState());
                world.setBlockState(new BlockPos(i+1, j+0, k+5), Blocks.grass.getDefaultState());
                world.setBlockState(new BlockPos(i+2, j+0, k+5), Blocks.planks.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+3, j+0, k+5), Blocks.planks.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+4, j+0, k+5), Blocks.planks.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+5, j+0, k+5), Blocks.glowstone.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+6, j+0, k+5), Blocks.planks.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+7, j+0, k+5), Blocks.planks.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+8, j+0, k+5), Blocks.planks.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+9, j+0, k+5), Blocks.grass.getDefaultState());
                world.setBlockState(new BlockPos(i+10, j+0, k+5), Blocks.grass.getDefaultState());
                world.setBlockState(new BlockPos(i+0, j+0, k+6), Blocks.grass.getDefaultState());
                world.setBlockState(new BlockPos(i+1, j+0, k+6), Blocks.grass.getDefaultState());
                world.setBlockState(new BlockPos(i+2, j+0, k+6), Blocks.planks.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+3, j+0, k+6), Blocks.planks.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+4, j+0, k+6), Blocks.planks.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+5, j+0, k+6), Blocks.planks.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+6, j+0, k+6), Blocks.planks.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+7, j+0, k+6), Blocks.planks.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+8, j+0, k+6), Blocks.planks.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+9, j+0, k+6), Blocks.grass.getDefaultState());
                world.setBlockState(new BlockPos(i+10, j+0, k+6), Blocks.grass.getDefaultState());
                world.setBlockState(new BlockPos(i+0, j+0, k+7), Blocks.grass.getDefaultState());
                world.setBlockState(new BlockPos(i+1, j+0, k+7), Blocks.grass.getDefaultState());
                world.setBlockState(new BlockPos(i+2, j+0, k+7), Blocks.planks.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+3, j+0, k+7), Blocks.planks.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+4, j+0, k+7), Blocks.planks.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+5, j+0, k+7), Blocks.planks.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+6, j+0, k+7), Blocks.planks.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+7, j+0, k+7), Blocks.planks.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+8, j+0, k+7), Blocks.planks.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+9, j+0, k+7), Blocks.grass.getDefaultState());
                world.setBlockState(new BlockPos(i+10, j+0, k+7), Blocks.grass.getDefaultState());
                world.setBlockState(new BlockPos(i+0, j+0, k+8), Blocks.grass.getDefaultState());
                world.setBlockState(new BlockPos(i+1, j+0, k+8), Blocks.grass.getDefaultState());
                world.setBlockState(new BlockPos(i+2, j+0, k+8), Blocks.grass.getDefaultState());
                world.setBlockState(new BlockPos(i+3, j+0, k+8), Blocks.grass.getDefaultState());
                world.setBlockState(new BlockPos(i+4, j+0, k+8), Blocks.grass.getDefaultState());
                world.setBlockState(new BlockPos(i+5, j+0, k+8), Blocks.grass.getDefaultState());
                world.setBlockState(new BlockPos(i+6, j+0, k+8), Blocks.grass.getDefaultState());
                world.setBlockState(new BlockPos(i+7, j+0, k+8), Blocks.grass.getDefaultState());
                world.setBlockState(new BlockPos(i+8, j+0, k+8), Blocks.grass.getDefaultState());
                world.setBlockState(new BlockPos(i+9, j+0, k+8), Blocks.grass.getDefaultState());
                world.setBlockState(new BlockPos(i+10, j+0, k+8), Blocks.grass.getDefaultState());
                world.setBlockState(new BlockPos(i+1, j+1, k+0), Blocks.tallgrass.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+2, j+1, k+0), Blocks.cobblestone_wall.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+3, j+1, k+0), Blocks.tallgrass.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+7, j+1, k+0), Blocks.tallgrass.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+8, j+1, k+0), Blocks.cobblestone_wall.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+9, j+1, k+0), Blocks.tallgrass.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+10, j+1, k+0), Blocks.tallgrass.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+1, j+1, k+1), Blocks.cobblestone_wall.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+2, j+1, k+1), Blocks.log.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+3, j+1, k+1), Blocks.stonebrick.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+4, j+1, k+1), Blocks.stone_brick_stairs.getStateFromMeta(6), 3);
                world.setBlockState(new BlockPos(i+5, j+1, k+1), Blocks.spruce_door.getStateFromMeta(3), 3);
                world.setBlockState(new BlockPos(i+6, j+1, k+1), Blocks.stone_brick_stairs.getStateFromMeta(6), 3);
                world.setBlockState(new BlockPos(i+7, j+1, k+1), Blocks.stonebrick.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+8, j+1, k+1), Blocks.log.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+9, j+1, k+1), Blocks.cobblestone_wall.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+10, j+1, k+1), Blocks.tallgrass.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+1, j+1, k+2), Blocks.tallgrass.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+2, j+1, k+2), Blocks.stonebrick.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+3, j+1, k+2), Blocks.wall_sign.getStateFromMeta(2), 3);
                world.setBlockState(new BlockPos(i+8, j+1, k+2), Blocks.stonebrick.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+0, j+1, k+3), Blocks.red_flower.getStateFromMeta(8), 3);
                world.setBlockState(new BlockPos(i+1, j+1, k+3), Blocks.tallgrass.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+2, j+1, k+3), Blocks.stone_brick_stairs.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+3, j+1, k+3), Blocks.spruce_stairs.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+5, j+1, k+3), Blocks.carpet.getStateFromMeta(14), 3);
                world.setBlockState(new BlockPos(i+7, j+1, k+3), Blocks.spruce_stairs.getStateFromMeta(4), 3);
                world.setBlockState(new BlockPos(i+8, j+1, k+3), Blocks.stone_brick_stairs.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+9, j+1, k+3), Blocks.tallgrass.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+2, j+1, k+4), Blocks.stonebrick.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+3, j+1, k+4), Blocks.spruce_stairs.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+5, j+1, k+4), Blocks.carpet.getStateFromMeta(14), 3);
                world.setBlockState(new BlockPos(i+7, j+1, k+4), Blocks.spruce_stairs.getStateFromMeta(4), 3);
                world.setBlockState(new BlockPos(i+8, j+1, k+4), Blocks.stonebrick.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+10, j+1, k+4), Blocks.mob_spawner.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+2, j+1, k+5), Blocks.stone_brick_stairs.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+3, j+1, k+5), Blocks.wall_sign.getStateFromMeta(3), 3);
                world.setBlockState(new BlockPos(i+5, j+1, k+5), Blocks.carpet.getStateFromMeta(14), 3);
                world.setBlockState(new BlockPos(i+8, j+1, k+5), Blocks.stone_brick_stairs.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+9, j+1, k+5), Blocks.tallgrass.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+1, j+1, k+6), Blocks.tallgrass.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+2, j+1, k+6), Blocks.stonebrick.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+3, j+1, k+6), Blocks.ladder.getStateFromMeta(2), 3);
                world.setBlockState(new BlockPos(i+7, j+1, k+6), Blocks.cauldron.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+8, j+1, k+6), Blocks.stonebrick.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+9, j+1, k+6), Blocks.tallgrass.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+10, j+1, k+6), Blocks.tallgrass.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+1, j+1, k+7), Blocks.cobblestone_wall.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+2, j+1, k+7), Blocks.log.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+3, j+1, k+7), Blocks.stonebrick.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+4, j+1, k+7), Blocks.stone_brick_stairs.getStateFromMeta(3), 3);
                world.setBlockState(new BlockPos(i+5, j+1, k+7), Blocks.stonebrick.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+6, j+1, k+7), Blocks.stone_brick_stairs.getStateFromMeta(3), 3);
                world.setBlockState(new BlockPos(i+7, j+1, k+7), Blocks.stonebrick.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+8, j+1, k+7), Blocks.log.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+9, j+1, k+7), Blocks.cobblestone_wall.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+10, j+1, k+7), Blocks.tallgrass.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+0, j+1, k+8), Blocks.tallgrass.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+1, j+1, k+8), Blocks.tallgrass.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+2, j+1, k+8), Blocks.cobblestone_wall.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+4, j+1, k+8), Blocks.yellow_flower.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+7, j+1, k+8), Blocks.tallgrass.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+8, j+1, k+8), Blocks.cobblestone_wall.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+9, j+1, k+8), Blocks.tallgrass.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+10, j+1, k+8), Blocks.tallgrass.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+2, j+2, k+0), Blocks.oak_fence.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+8, j+2, k+0), Blocks.oak_fence.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+1, j+2, k+1), Blocks.oak_fence.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+2, j+2, k+1), Blocks.log.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+3, j+2, k+1), Blocks.oak_fence_gate.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+4, j+2, k+1), Blocks.stonebrick.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+5, j+2, k+1), Blocks.spruce_door.getStateFromMeta(8), 3);
                world.setBlockState(new BlockPos(i+6, j+2, k+1), Blocks.stonebrick.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+7, j+2, k+1), Blocks.oak_fence_gate.getStateFromMeta(2), 3);
                world.setBlockState(new BlockPos(i+8, j+2, k+1), Blocks.log.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+9, j+2, k+1), Blocks.oak_fence.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+2, j+2, k+2), Blocks.stonebrick.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+4, j+2, k+2), Blocks.torch.getStateFromMeta(3), 3);
                world.setBlockState(new BlockPos(i+6, j+2, k+2), Blocks.torch.getStateFromMeta(3), 3);
                world.setBlockState(new BlockPos(i+8, j+2, k+2), Blocks.stonebrick.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+2, j+2, k+3), Blocks.oak_fence.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+7, j+2, k+3), Blocks.flower_pot.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+8, j+2, k+3), Blocks.oak_fence.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+2, j+2, k+4), Blocks.stonebrick.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+8, j+2, k+4), Blocks.stonebrick.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+2, j+2, k+5), Blocks.oak_fence.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+8, j+2, k+5), Blocks.oak_fence.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+2, j+2, k+6), Blocks.stonebrick.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+3, j+2, k+6), Blocks.ladder.getStateFromMeta(2), 3);
                world.setBlockState(new BlockPos(i+7, j+2, k+6), Blocks.lever.getStateFromMeta(10), 3);
                world.setBlockState(new BlockPos(i+8, j+2, k+6), Blocks.stonebrick.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+1, j+2, k+7), Blocks.oak_fence.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+2, j+2, k+7), Blocks.log.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+3, j+2, k+7), Blocks.stonebrick.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+4, j+2, k+7), Blocks.oak_fence_gate.getStateFromMeta(2), 3);
                world.setBlockState(new BlockPos(i+5, j+2, k+7), Blocks.stonebrick.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+6, j+2, k+7), Blocks.oak_fence_gate.getStateFromMeta(2), 3);
                world.setBlockState(new BlockPos(i+7, j+2, k+7), Blocks.stonebrick.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+8, j+2, k+7), Blocks.log.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+9, j+2, k+7), Blocks.oak_fence.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+2, j+2, k+8), Blocks.oak_fence.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+8, j+2, k+8), Blocks.oak_fence.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+1, j+3, k+0), Blocks.dark_oak_stairs.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+2, j+3, k+0), Blocks.oak_fence.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+4, j+3, k+0), Blocks.cobblestone_wall.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+6, j+3, k+0), Blocks.cobblestone_wall.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+8, j+3, k+0), Blocks.oak_fence.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+9, j+3, k+0), Blocks.dark_oak_stairs.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+0, j+3, k+1), Blocks.stone_stairs.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+1, j+3, k+1), Blocks.cobblestone.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+2, j+3, k+1), Blocks.log.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+3, j+3, k+1), Blocks.oak_fence.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+4, j+3, k+1), Blocks.stonebrick.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+5, j+3, k+1), Blocks.stonebrick.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+6, j+3, k+1), Blocks.stonebrick.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+7, j+3, k+1), Blocks.oak_fence.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+8, j+3, k+1), Blocks.log.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+9, j+3, k+1), Blocks.cobblestone.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+10, j+3, k+1), Blocks.stone_stairs.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+1, j+3, k+2), Blocks.dark_oak_stairs.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+2, j+3, k+2), Blocks.stonebrick.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+3, j+3, k+2), Blocks.stone_slab.getStateFromMeta(9), 3);
                world.setBlockState(new BlockPos(i+4, j+3, k+2), Blocks.stone_slab.getStateFromMeta(9), 3);
                world.setBlockState(new BlockPos(i+5, j+3, k+2), Blocks.stone_slab.getStateFromMeta(9), 3);
                world.setBlockState(new BlockPos(i+6, j+3, k+2), Blocks.stone_slab.getStateFromMeta(9), 3);
                world.setBlockState(new BlockPos(i+7, j+3, k+2), Blocks.stone_slab.getStateFromMeta(9), 3);
                world.setBlockState(new BlockPos(i+8, j+3, k+2), Blocks.stonebrick.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+9, j+3, k+2), Blocks.dark_oak_stairs.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+1, j+3, k+3), Blocks.dark_oak_stairs.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+2, j+3, k+3), Blocks.stonebrick.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+3, j+3, k+3), Blocks.stone_slab.getStateFromMeta(9), 3);
                world.setBlockState(new BlockPos(i+4, j+3, k+3), Blocks.stone_slab.getStateFromMeta(9), 3);
                world.setBlockState(new BlockPos(i+5, j+3, k+3), Blocks.stone_slab.getStateFromMeta(9), 3);
                world.setBlockState(new BlockPos(i+6, j+3, k+3), Blocks.stone_slab.getStateFromMeta(9), 3);
                world.setBlockState(new BlockPos(i+7, j+3, k+3), Blocks.stone_slab.getStateFromMeta(9), 3);
                world.setBlockState(new BlockPos(i+8, j+3, k+3), Blocks.stonebrick.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+9, j+3, k+3), Blocks.dark_oak_stairs.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+1, j+3, k+4), Blocks.dark_oak_stairs.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+2, j+3, k+4), Blocks.stonebrick.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+3, j+3, k+4), Blocks.stone_slab.getStateFromMeta(9), 3);
                world.setBlockState(new BlockPos(i+4, j+3, k+4), Blocks.stone_slab.getStateFromMeta(9), 3);
                world.setBlockState(new BlockPos(i+5, j+3, k+4), Blocks.stone_slab.getStateFromMeta(9), 3);
                world.setBlockState(new BlockPos(i+6, j+3, k+4), Blocks.stone_slab.getStateFromMeta(9), 3);
                world.setBlockState(new BlockPos(i+7, j+3, k+4), Blocks.stone_slab.getStateFromMeta(9), 3);
                world.setBlockState(new BlockPos(i+8, j+3, k+4), Blocks.stonebrick.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+9, j+3, k+4), Blocks.dark_oak_stairs.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+1, j+3, k+5), Blocks.dark_oak_stairs.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+2, j+3, k+5), Blocks.stonebrick.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+3, j+3, k+5), Blocks.stone_slab.getStateFromMeta(9), 3);
                world.setBlockState(new BlockPos(i+4, j+3, k+5), Blocks.stone_slab.getStateFromMeta(9), 3);
                world.setBlockState(new BlockPos(i+5, j+3, k+5), Blocks.stone_slab.getStateFromMeta(9), 3);
                world.setBlockState(new BlockPos(i+6, j+3, k+5), Blocks.stone_slab.getStateFromMeta(9), 3);
                world.setBlockState(new BlockPos(i+7, j+3, k+5), Blocks.stone_slab.getStateFromMeta(9), 3);
                world.setBlockState(new BlockPos(i+8, j+3, k+5), Blocks.stonebrick.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+9, j+3, k+5), Blocks.dark_oak_stairs.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+1, j+3, k+6), Blocks.dark_oak_stairs.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+2, j+3, k+6), Blocks.stonebrick.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+3, j+3, k+6), Blocks.ladder.getStateFromMeta(2), 3);
                world.setBlockState(new BlockPos(i+4, j+3, k+6), Blocks.stone_slab.getStateFromMeta(9), 3);
                world.setBlockState(new BlockPos(i+5, j+3, k+6), Blocks.stone_slab.getStateFromMeta(9), 3);
                world.setBlockState(new BlockPos(i+6, j+3, k+6), Blocks.stone_slab.getStateFromMeta(9), 3);
                world.setBlockState(new BlockPos(i+7, j+3, k+6), Blocks.stone_slab.getStateFromMeta(9), 3);
                world.setBlockState(new BlockPos(i+8, j+3, k+6), Blocks.stonebrick.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+9, j+3, k+6), Blocks.dark_oak_stairs.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+0, j+3, k+7), Blocks.stone_stairs.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+1, j+3, k+7), Blocks.cobblestone.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+2, j+3, k+7), Blocks.log.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+3, j+3, k+7), Blocks.stonebrick.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+4, j+3, k+7), Blocks.stone_brick_stairs.getStateFromMeta(7), 3);
                world.setBlockState(new BlockPos(i+5, j+3, k+7), Blocks.stonebrick.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+6, j+3, k+7), Blocks.stone_brick_stairs.getStateFromMeta(7), 3);
                world.setBlockState(new BlockPos(i+7, j+3, k+7), Blocks.stonebrick.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+8, j+3, k+7), Blocks.log.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+9, j+3, k+7), Blocks.cobblestone.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+10, j+3, k+7), Blocks.stone_stairs.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+1, j+3, k+8), Blocks.dark_oak_stairs.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+2, j+3, k+8), Blocks.oak_fence.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+3, j+3, k+8), Blocks.cobblestone_wall.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+5, j+3, k+8), Blocks.cobblestone_wall.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+7, j+3, k+8), Blocks.cobblestone_wall.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+8, j+3, k+8), Blocks.oak_fence.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+9, j+3, k+8), Blocks.dark_oak_stairs.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+2, j+4, k+0), Blocks.planks.getStateFromMeta(5), 3);
                world.setBlockState(new BlockPos(i+3, j+4, k+0), Blocks.stone_slab.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+4, j+4, k+0), Blocks.stone_slab.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+5, j+4, k+0), Blocks.stone_slab.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+6, j+4, k+0), Blocks.stone_slab.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+7, j+4, k+0), Blocks.stone_slab.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+8, j+4, k+0), Blocks.planks.getStateFromMeta(5), 3);
                world.setBlockState(new BlockPos(i+1, j+4, k+1), Blocks.stone_stairs.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+2, j+4, k+1), Blocks.planks.getStateFromMeta(5), 3);
                world.setBlockState(new BlockPos(i+3, j+4, k+1), Blocks.wool.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+4, j+4, k+1), Blocks.wool.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+5, j+4, k+1), Blocks.wool.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+6, j+4, k+1), Blocks.wool.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+7, j+4, k+1), Blocks.wool.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+8, j+4, k+1), Blocks.planks.getStateFromMeta(5), 3);
                world.setBlockState(new BlockPos(i+9, j+4, k+1), Blocks.stone_stairs.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+2, j+4, k+2), Blocks.planks.getStateFromMeta(5), 3);
                world.setBlockState(new BlockPos(i+3, j+4, k+2), Blocks.mob_spawner.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+4, j+4, k+2), BlockMod.amazonite.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+6, j+4, k+2), Blocks.bed.getStateFromMeta(3), 3);
                world.setBlockState(new BlockPos(i+7, j+4, k+2), Blocks.bed.getStateFromMeta(11), 3);
                world.setBlockState(new BlockPos(i+8, j+4, k+2), Blocks.planks.getStateFromMeta(5), 3);
                world.setBlockState(new BlockPos(i+2, j+4, k+3), Blocks.planks.getStateFromMeta(5), 3);
                world.setBlockState(new BlockPos(i+3, j+4, k+3), BlockMod.amazoniteblock.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+7, j+4, k+3), Blocks.bookshelf.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+8, j+4, k+3), Blocks.planks.getStateFromMeta(5), 3);
                world.setBlockState(new BlockPos(i+2, j+4, k+4), Blocks.planks.getStateFromMeta(5), 3);
                world.setBlockState(new BlockPos(i+8, j+4, k+4), Blocks.planks.getStateFromMeta(5), 3);
                world.setBlockState(new BlockPos(i+2, j+4, k+5), Blocks.planks.getStateFromMeta(5), 3);
                world.setBlockState(new BlockPos(i+7, j+4, k+5), Blocks.wall_sign.getStateFromMeta(2), 3);
                world.setBlockState(new BlockPos(i+8, j+4, k+5), Blocks.planks.getStateFromMeta(5), 3);
                world.setBlockState(new BlockPos(i+2, j+4, k+6), Blocks.planks.getStateFromMeta(5), 3);
                world.setBlockState(new BlockPos(i+3, j+4, k+6), Blocks.ladder.getStateFromMeta(2), 3);
                world.setBlockState(new BlockPos(i+7, j+4, k+6), Blocks.oak_stairs.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+8, j+4, k+6), Blocks.planks.getStateFromMeta(5), 3);
                world.setBlockState(new BlockPos(i+1, j+4, k+7), Blocks.stone_stairs.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+2, j+4, k+7), Blocks.planks.getStateFromMeta(5), 3);
                world.setBlockState(new BlockPos(i+3, j+4, k+7), Blocks.wool.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+4, j+4, k+7), Blocks.wool.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+5, j+4, k+7), Blocks.wool.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+6, j+4, k+7), Blocks.wool.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+7, j+4, k+7), Blocks.wool.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+8, j+4, k+7), Blocks.planks.getStateFromMeta(5), 3);
                world.setBlockState(new BlockPos(i+9, j+4, k+7), Blocks.stone_stairs.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+2, j+4, k+8), Blocks.planks.getStateFromMeta(5), 3);
                world.setBlockState(new BlockPos(i+3, j+4, k+8), Blocks.stone_slab.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+4, j+4, k+8), Blocks.stone_slab.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+5, j+4, k+8), Blocks.stone_slab.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+6, j+4, k+8), Blocks.stone_slab.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+7, j+4, k+8), Blocks.stone_slab.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+8, j+4, k+8), Blocks.planks.getStateFromMeta(5), 3);
                world.setBlockState(new BlockPos(i+2, j+5, k+0), Blocks.dark_oak_stairs.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+8, j+5, k+0), Blocks.dark_oak_stairs.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+2, j+5, k+1), Blocks.cobblestone.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+3, j+5, k+1), Blocks.wool.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+4, j+5, k+1), Blocks.oak_fence.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+5, j+5, k+1), Blocks.spruce_fence.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+6, j+5, k+1), Blocks.spruce_fence.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+7, j+5, k+1), Blocks.wool.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+8, j+5, k+1), Blocks.cobblestone.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+2, j+5, k+2), Blocks.dark_oak_stairs.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+3, j+5, k+2), BlockMod.amazonite.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+8, j+5, k+2), Blocks.dark_oak_stairs.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+2, j+5, k+3), Blocks.dark_oak_stairs.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+8, j+5, k+3), Blocks.dark_oak_stairs.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+2, j+5, k+4), Blocks.dark_oak_stairs.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+8, j+5, k+4), Blocks.dark_oak_stairs.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+2, j+5, k+5), Blocks.dark_oak_stairs.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+8, j+5, k+5), Blocks.dark_oak_stairs.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+2, j+5, k+6), Blocks.dark_oak_stairs.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+3, j+5, k+6), Blocks.ladder.getStateFromMeta(2), 3);
                world.setBlockState(new BlockPos(i+8, j+5, k+6), Blocks.dark_oak_stairs.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+2, j+5, k+7), Blocks.cobblestone.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+3, j+5, k+7), Blocks.wool.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+4, j+5, k+7), Blocks.spruce_fence.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+5, j+5, k+7), Blocks.oak_fence.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+6, j+5, k+7), Blocks.oak_fence.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+7, j+5, k+7), Blocks.wool.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+8, j+5, k+7), Blocks.cobblestone.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+2, j+5, k+8), Blocks.dark_oak_stairs.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+8, j+5, k+8), Blocks.dark_oak_stairs.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+7, j+6, k+0), Blocks.planks.getStateFromMeta(5), 3);
                world.setBlockState(new BlockPos(i+2, j+6, k+1), Blocks.stone_stairs.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+3, j+6, k+1), Blocks.planks.getStateFromMeta(5), 3);
                world.setBlockState(new BlockPos(i+4, j+6, k+1), Blocks.wool.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+5, j+6, k+1), Blocks.oak_fence.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+6, j+6, k+1), Blocks.wool.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+7, j+6, k+1), Blocks.planks.getStateFromMeta(5), 3);
                world.setBlockState(new BlockPos(i+8, j+6, k+1), Blocks.stone_stairs.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+3, j+6, k+2), Blocks.planks.getStateFromMeta(5), 3);
                world.setBlockState(new BlockPos(i+7, j+6, k+2), Blocks.planks.getStateFromMeta(5), 3);
                world.setBlockState(new BlockPos(i+3, j+6, k+3), Blocks.planks.getStateFromMeta(5), 3);
                world.setBlockState(new BlockPos(i+7, j+6, k+3), Blocks.planks.getStateFromMeta(5), 3);
                world.setBlockState(new BlockPos(i+3, j+6, k+4), Blocks.planks.getStateFromMeta(5), 3);
                world.setBlockState(new BlockPos(i+7, j+6, k+4), Blocks.planks.getStateFromMeta(5), 3);
                world.setBlockState(new BlockPos(i+3, j+6, k+5), Blocks.planks.getStateFromMeta(5), 3);
                world.setBlockState(new BlockPos(i+7, j+6, k+5), Blocks.planks.getStateFromMeta(5), 3);
                world.setBlockState(new BlockPos(i+3, j+6, k+6), Blocks.planks.getStateFromMeta(5), 3);
                world.setBlockState(new BlockPos(i+7, j+6, k+6), Blocks.planks.getStateFromMeta(5), 3);
                world.setBlockState(new BlockPos(i+2, j+6, k+7), Blocks.stone_stairs.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+3, j+6, k+7), Blocks.planks.getStateFromMeta(5), 3);
                world.setBlockState(new BlockPos(i+4, j+6, k+7), Blocks.wool.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+5, j+6, k+7), Blocks.spruce_fence.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+6, j+6, k+7), Blocks.wool.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+7, j+6, k+7), Blocks.planks.getStateFromMeta(5), 3);
                world.setBlockState(new BlockPos(i+8, j+6, k+7), Blocks.stone_stairs.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+3, j+6, k+8), Blocks.planks.getStateFromMeta(5), 3);
                world.setBlockState(new BlockPos(i+7, j+6, k+8), Blocks.planks.getStateFromMeta(5), 3);
                world.setBlockState(new BlockPos(i+3, j+7, k+0), Blocks.dark_oak_stairs.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+7, j+7, k+0), Blocks.dark_oak_stairs.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+3, j+7, k+1), Blocks.cobblestone.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+4, j+7, k+1), Blocks.wool.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+5, j+7, k+1), Blocks.spruce_fence.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+6, j+7, k+1), Blocks.wool.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+7, j+7, k+1), Blocks.cobblestone.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+3, j+7, k+2), Blocks.dark_oak_stairs.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+7, j+7, k+2), Blocks.dark_oak_stairs.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+3, j+7, k+3), Blocks.dark_oak_stairs.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+6, j+7, k+3), Blocks.web.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+7, j+7, k+3), Blocks.dark_oak_stairs.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+3, j+7, k+4), Blocks.dark_oak_stairs.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+4, j+7, k+4), Blocks.web.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+7, j+7, k+4), Blocks.dark_oak_stairs.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+3, j+7, k+5), Blocks.dark_oak_stairs.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+6, j+7, k+5), Blocks.web.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+7, j+7, k+5), Blocks.dark_oak_stairs.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+3, j+7, k+6), Blocks.dark_oak_stairs.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+4, j+7, k+6), Blocks.torch.getStateFromMeta(4), 3);
                world.setBlockState(new BlockPos(i+6, j+7, k+6), Blocks.torch.getStateFromMeta(4), 3);
                world.setBlockState(new BlockPos(i+7, j+7, k+6), Blocks.dark_oak_stairs.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+3, j+7, k+7), Blocks.cobblestone.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+4, j+7, k+7), Blocks.wool.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+5, j+7, k+7), Blocks.spruce_fence.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+6, j+7, k+7), Blocks.wool.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+7, j+7, k+7), Blocks.cobblestone.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+3, j+7, k+8), Blocks.dark_oak_stairs.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+7, j+7, k+8), Blocks.dark_oak_stairs.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+4, j+8, k+0), Blocks.planks.getStateFromMeta(5), 3);
                world.setBlockState(new BlockPos(i+6, j+8, k+0), Blocks.planks.getStateFromMeta(5), 3);
                world.setBlockState(new BlockPos(i+3, j+8, k+1), Blocks.stone_stairs.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+4, j+8, k+1), Blocks.planks.getStateFromMeta(5), 3);
                world.setBlockState(new BlockPos(i+5, j+8, k+1), Blocks.wool.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+6, j+8, k+1), Blocks.planks.getStateFromMeta(5), 3);
                world.setBlockState(new BlockPos(i+7, j+8, k+1), Blocks.stone_stairs.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+4, j+8, k+2), Blocks.planks.getStateFromMeta(5), 3);
                world.setBlockState(new BlockPos(i+6, j+8, k+2), Blocks.planks.getStateFromMeta(5), 3);
                world.setBlockState(new BlockPos(i+4, j+8, k+3), Blocks.planks.getStateFromMeta(5), 3);
                world.setBlockState(new BlockPos(i+6, j+8, k+3), Blocks.planks.getStateFromMeta(5), 3);
                world.setBlockState(new BlockPos(i+4, j+8, k+4), Blocks.planks.getStateFromMeta(5), 3);
                world.setBlockState(new BlockPos(i+6, j+8, k+4), Blocks.planks.getStateFromMeta(5), 3);
                world.setBlockState(new BlockPos(i+4, j+8, k+5), Blocks.planks.getStateFromMeta(5), 3);
                world.setBlockState(new BlockPos(i+6, j+8, k+5), Blocks.planks.getStateFromMeta(5), 3);
                world.setBlockState(new BlockPos(i+4, j+8, k+6), Blocks.planks.getStateFromMeta(5), 3);
                world.setBlockState(new BlockPos(i+6, j+8, k+6), Blocks.planks.getStateFromMeta(5), 3);
                world.setBlockState(new BlockPos(i+3, j+8, k+7), Blocks.stone_stairs.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+4, j+8, k+7), Blocks.planks.getStateFromMeta(5), 3);
                world.setBlockState(new BlockPos(i+5, j+8, k+7), Blocks.wool.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+6, j+8, k+7), Blocks.planks.getStateFromMeta(5), 3);
                world.setBlockState(new BlockPos(i+7, j+8, k+7), Blocks.stone_stairs.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+4, j+8, k+8), Blocks.planks.getStateFromMeta(5), 3);
                world.setBlockState(new BlockPos(i+6, j+8, k+8), Blocks.planks.getStateFromMeta(5), 3);
                world.setBlockState(new BlockPos(i+4, j+9, k+0), Blocks.dark_oak_stairs.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+6, j+9, k+0), Blocks.dark_oak_stairs.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+4, j+9, k+1), Blocks.cobblestone.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+5, j+9, k+1), Blocks.wool.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+6, j+9, k+1), Blocks.cobblestone.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+4, j+9, k+2), Blocks.dark_oak_stairs.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+5, j+9, k+2), Blocks.web.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+6, j+9, k+2), Blocks.dark_oak_stairs.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+4, j+9, k+3), Blocks.dark_oak_stairs.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+6, j+9, k+3), Blocks.dark_oak_stairs.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+4, j+9, k+4), Blocks.dark_oak_stairs.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+6, j+9, k+4), Blocks.dark_oak_stairs.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+4, j+9, k+5), Blocks.dark_oak_stairs.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+6, j+9, k+5), Blocks.dark_oak_stairs.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+4, j+9, k+6), Blocks.dark_oak_stairs.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+5, j+9, k+6), Blocks.web.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+6, j+9, k+6), Blocks.dark_oak_stairs.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+4, j+9, k+7), Blocks.cobblestone.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+5, j+9, k+7), Blocks.wool.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+6, j+9, k+7), Blocks.cobblestone.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+4, j+9, k+8), Blocks.dark_oak_stairs.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+6, j+9, k+8), Blocks.dark_oak_stairs.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+5, j+10, k+0), Blocks.stone_slab.getStateFromMeta(5), 3);
                world.setBlockState(new BlockPos(i+4, j+10, k+1), Blocks.stone_stairs.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+5, j+10, k+1), Blocks.stone_slab.getStateFromMeta(11), 3);
                world.setBlockState(new BlockPos(i+6, j+10, k+1), Blocks.stone_stairs.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+5, j+10, k+2), Blocks.stone_slab.getStateFromMeta(5), 3);
                world.setBlockState(new BlockPos(i+5, j+10, k+3), Blocks.stone_slab.getStateFromMeta(5), 3);
                world.setBlockState(new BlockPos(i+5, j+10, k+4), Blocks.stone_slab.getStateFromMeta(5), 3);
                world.setBlockState(new BlockPos(i+5, j+10, k+5), Blocks.stone_slab.getStateFromMeta(5), 3);
                world.setBlockState(new BlockPos(i+5, j+10, k+6), Blocks.stone_slab.getStateFromMeta(5), 3);
                world.setBlockState(new BlockPos(i+4, j+10, k+7), Blocks.stone_stairs.getStateFromMeta(0), 3);
                world.setBlockState(new BlockPos(i+5, j+10, k+7), Blocks.stone_slab.getStateFromMeta(11), 3);
                world.setBlockState(new BlockPos(i+6, j+10, k+7), Blocks.stone_stairs.getStateFromMeta(1), 3);
                world.setBlockState(new BlockPos(i+5, j+10, k+8), Blocks.stone_slab.getStateFromMeta(5), 3);
                world.setBlockState(new BlockPos(i+5, j+11, k+1), Blocks.stone_slab.getStateFromMeta(3), 3);
                world.setBlockState(new BlockPos(i+5, j+11, k+7), Blocks.stone_slab.getStateFromMeta(3), 3);
                net.minecraft.entity.Entity sentity0=EntityList.createEntityByName("Painting",world);
                if (sentity0!=null){
                sentity0.setLocationAndAngles(i+7.96875,j+2.5,k+4.5,world.rand.nextFloat()*360F,0);
                world.spawnEntityInWorld(sentity0);
                                    }
           
            return false;
            }
            return false;
        }
    }
     
    Mon "WorldGeneration"
    Code (cpp):
    package com.arthur.mod.World;
    import java.util.Random;

    import com.arthur.mod.Structure.Structure1;

    import com.arthur.mod.init.BlockMod;

    import net.minecraft.block.Block;
    import net.minecraft.block.state.IBlockState;
    import net.minecraft.init.Blocks;
    import net.minecraft.util.BlockPos;
    import net.minecraft.world.World;
    import net.minecraft.world.biome.BiomeGenBase;
    import net.minecraft.world.chunk.IChunkProvider;
    import net.minecraft.world.gen.feature.WorldGenMinable;
    import net.minecraftforge.fml.common.IWorldGenerator;

    public class WorldGen implements IWorldGenerator
    {

        @Override
        public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider)
        {
            switch(world.provider.getDimensionId())
            {
                case -1:
                    GenerateNether(world, chunkX * 16, chunkZ * 16, random);
                    break;
                   
                case 0:
                    GenerateOverWorld(world, chunkX * 16, chunkZ * 16, random);
                    break;
                   
                case 1:
                    GenerateEnd(world, chunkX * 16, chunkZ * 16, random);
                    break;
            }
        }
       
        private void addOre(Block block, Block blockSpawn, Random random, World world, int posX, int posZ, int minY, int maxY, int minV, int maxV, int spawnChance)
        {
            for(int i = 0; i < spawnChance; i++)
            {
                int defaultChunkSize = 16;
                int Xpos = posX + random.nextInt(defaultChunkSize);
                int Ypos = minY + random.nextInt(maxY - minY);
                int Zpos = posZ + random.nextInt(defaultChunkSize);
               
                IBlockState state = block.getDefaultState();
                BlockPos blockPos = new BlockPos(Xpos, Ypos, Zpos);
               
                new WorldGenMinable(state, maxV).generate(world, random, blockPos);
            }
        }

        private void GenerateNether(World world, int i, int j, Random random)
        {
           
        }

        private void GenerateOverWorld(World world, int i, int j, Random random)
        {
         
            addOre(BlockMod.amazonite, Blocks.stone, random, world, i, j, 16, 20, 4, 8, 2);
           
            int Xpos = i + random.nextInt(16);
            int Ypos = random.nextInt(128);
            int Zpos = j + random.nextInt(16);
           
            for(int x = 0; x < 500; x++)
            {
                if(world.getBiomeGenForCoords(new BlockPos(Xpos, Ypos, Zpos)) == BiomeGenBase.plains)
                {
                   
                    new Structure1().genrate(world, random, new BlockPos(Xpos, Ypos, Zpos));
                }
            }
        }

        private void GenerateEnd(World world, int i, int j, Random random)
        {
           
        }

    }
    Merci de votre attention.
     
  2. pifou92000

    pifou92000 Mineur de Diamants

    Inscrit:
    23 Juin 2011
    Messages:
    2 690
    Points:
    195
    Sexe:
    Homme
    Tu as une NullPointerException à cette ligne :
    Code (cpp):
    world.setBlockState(new BlockPos(i+4, j+4, k+2), BlockMod.amazonite.getStateFromMeta(0), 3);
    C'est forcément ton bloc "amazonite" qui est null. Tu as donc sûrement oublié de le créer.
     
  3. Arthaïr

    Arthaïr Mineur

    Inscrit:
    1 Août 2014
    Messages:
    344
    Points:
    119
    Sexe:
    Homme
    Maintenant il me surligne setBlockState
    Screenshot_2.png
     
  4. pifou92000

    pifou92000 Mineur de Diamants

    Inscrit:
    23 Juin 2011
    Messages:
    2 690
    Points:
    195
    Sexe:
    Homme
    Utilise la méthode getDefaultState, comme pour les autres lignes.
     
  5. robin4002

    robin4002 Support Technique
    Staff

    Inscrit:
    17 Août 2012
    Messages:
    5 478
    Points:
    229
    Sexe:
    Homme
    La ligne :
    world.setBlockState(new BlockPos(i+4, j+4, k+2), BlockMod.amazonite.getStateFromMeta(0), 3);
    est juste, c'est pas en retirant getStateFromMeta(0), 3 que ça va fonctionner.
    Pour corriger le npe il faut trouver pourquoi amazonite est null et pour ça il nous faudrait la classe BlockMod
     
  6. Arthaïr

    Arthaïr Mineur

    Inscrit:
    1 Août 2014
    Messages:
    344
    Points:
    119
    Sexe:
    Homme
    Ok je donne tous ça ce soir.

    Ps:je ferais un edit sur ce message.

    EDIT: Ma class BlockMod
    Code (cpp):
    package com.arthur.mod.Block;

    import net.minecraft.block.Block;
    import net.minecraft.block.material.Material;
    import net.minecraft.client.Minecraft;
    import net.minecraft.client.resources.model.ModelResourceLocation;
    import net.minecraft.creativetab.CreativeTabs;
    import net.minecraft.item.Item;
    import net.minecraft.item.ItemStack;
    import net.minecraftforge.fml.common.registry.GameRegistry;

    import com.arthur.mod.Block.BlocksMod;
    import com.arthur.mod.Reference;
    import com.arthur.mod.init.ItemsMod;

    public class BlockMod
    {
        public static Block amazonite , amazoniteblock;
       
        public static void init()
        {
            amazonite = new BlocksMod(Material.rock).setUnlocalizedName("amazonite").setCreativeTab(CreativeTabs.tabBlock).setHardness(6);
            amazoniteblock = new BlocksMod(Material.rock).setUnlocalizedName("amazoniteblock").setCreativeTab(CreativeTabs.tabBlock).setHardness(7);
       
        }
        public static void register()
        {
         GameRegistry.registerBlock(amazonite, amazonite.getUnlocalizedName().substring(5));  
         GameRegistry.registerBlock(amazoniteblock, amazoniteblock.getUnlocalizedName().substring(5));
         GameRegistry.addSmelting(BlockMod.amazonite, new ItemStack(ItemsMod.amazoniteitem, 1), 0.5F);
         GameRegistry.addRecipe(new ItemStack(BlockMod.amazoniteblock, 1), new Object[] {"###", "###", "###", '#', ItemsMod.amazoniteitem});
         GameRegistry.addRecipe(new ItemStack(ItemsMod.amazoniteitem, 9), new Object[] {"   ", " # ", "   ", '#', BlockMod.amazoniteblock});
         GameRegistry.addRecipe(new ItemStack(ItemsMod.amazoniteitem, 9), new Object[] {"   ", "#  ", "   ", '#', BlockMod.amazoniteblock});
       
        }
       
       
        public static void registerRenders()
        {
         registerRender(amazonite);
         registerRender(amazoniteblock);
        }
        public static void registerRender(Block block)
        {
          Item item = Item.getItemFromBlock(block);
          Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation(Reference.Mod_ID + ":" + item.getUnlocalizedName().substring(5), "inventory"));
        }
    }
     
     
    #6 Arthaïr, 10 Mar 2016
    Dernière édition: 10 Mar 2016
  7. robin4002

    robin4002 Support Technique
    Staff

    Inscrit:
    17 Août 2012
    Messages:
    5 478
    Points:
    229
    Sexe:
    Homme
    À mon avis tu enregistres ton générateur avant d'appeler la fonction init() de ta classe BlockMod. Ce qui n'est pas bon, il faut faire l'inverse.
    Les initialisations et enregistrement de bloc et item ça va dans preInit. L'enregistrement de générateur ça va dans init.
     
    • Utile Utile x 1
  8. Arthaïr

    Arthaïr Mineur

    Inscrit:
    1 Août 2014
    Messages:
    344
    Points:
    119
    Sexe:
    Homme
  9. robin4002

    robin4002 Support Technique
    Staff

    Inscrit:
    17 Août 2012
    Messages:
    5 478
    Points:
    229
    Sexe:
    Homme
    Pourquoi tu as deux classes BlockMod ? Pas étonnant que tu es des problèmes si ton code est confus.
    Je t'en envoyé un pull request sur github, j'ai formaté le code, fais du nettoyage, appliqué la convention Java et corrigé quelques soucis.
     
    • Sympa Sympa x 1
  10. Arthaïr

    Arthaïr Mineur

    Inscrit:
    1 Août 2014
    Messages:
    344
    Points:
    119
    Sexe:
    Homme
    C'est peut être une question bête mais où on voit le pull request sur github ?
    EDIT:Non en fait c'est bon
    EDIT:Il ne trouve plus mon amazoniteitem

    Screenshot_2.png

    Et dans mon WorldGen il me met ça

    Screenshot_3.png
     
    #10 Arthaïr, 12 Mar 2016
    Dernière édition: 12 Mar 2016
  11. robin4002

    robin4002 Support Technique
    Staff

    Inscrit:
    17 Août 2012
    Messages:
    5 478
    Points:
    229
    Sexe:
    Homme
    Heu ?
    Pourquoi tu as cette ligne :
    private static final String ItemsMod = null;
    ????
     
  12. Arthaïr

    Arthaïr Mineur

    Inscrit:
    1 Août 2014
    Messages:
    344
    Points:
    119
    Sexe:
    Homme
    Heu je sais ps mais je l'ai supprimer et il y à plus l’erreur
    Tu sais pour l'autre erreurs ?
     
  13. robin4002

    robin4002 Support Technique
    Staff

    Inscrit:
    17 Août 2012
    Messages:
    5 478
    Points:
    229
    Sexe:
    Homme
    ça devrait être new Structure1()
     
  14. Arthaïr

    Arthaïr Mineur

    Inscrit:
    1 Août 2014
    Messages:
    344
    Points:
    119
    Sexe:
    Homme
    Generate est toujours souligner.
    Screenshot_3.png
     
  15. pifou92000

    pifou92000 Mineur de Diamants

    Inscrit:
    23 Juin 2011
    Messages:
    2 690
    Points:
    195
    Sexe:
    Homme
    C'est parce que tu as écrit "genrate" au lieu de "generate" dans ta structure.
    Ton code est vraiment mal organisé, c'est pas étonnant que tu aies des problèmes. Tu devrais ranger tout ça et supprimer les choses inutiles.
     
    • J'approuve J'approuve x 1

Partager cette page