Help!

Started by Angelolian on Sun, 12/18/2016 - 10:59

Topic category: Bugs and solutions

Last seen on 06:03, 17. Jun 2017
Joined Sep 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Help!
Sun, 12/18/2016 - 10:59

When i created a biome a loaded a new world it crash and i don't know why

 

Heres the crash report

---- Minecraft Crash Report ----

WARNING: coremods are present:
Contact their authors BEFORE contacting forge

// You should try our sister game, Minceraft!

Time: 12/18/16 4:32 PM
Description: Exception in server tick loop

java.lang.IllegalArgumentException: bound must be positive
    at java.util.Random.nextInt(Unknown Source)
    at mod.mcreator.mcreator_berryBushWithoutFruit.generateSurface(mcreator_berryBushWithoutFruit.java:131)
    at mod.mcreator.Insekto.generate(Insekto.java:907)
    at net.minecraftforge.fml.common.registry.GameRegistry.generateWorld(GameRegistry.java:113)
    at net.minecraft.world.chunk.Chunk.func_186034_a(Chunk.java:998)
    at net.minecraft.world.chunk.Chunk.func_186030_a(Chunk.java:980)
    at net.minecraft.world.gen.ChunkProviderServer.originalLoadChunk(ChunkProviderServer.java:175)
    at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:126)
    at net.minecraft.world.gen.ChunkProviderServer.func_186025_d(ChunkProviderServer.java:96)
    at net.minecraft.server.MinecraftServer.func_71222_d(MinecraftServer.java:295)
    at net.minecraft.server.integrated.IntegratedServer.func_71247_a(IntegratedServer.java:173)
    at net.minecraft.server.integrated.IntegratedServer.func_71197_b(IntegratedServer.java:196)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:427)
    at java.lang.Thread.run(Unknown Source)

A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- System Details --
Details:
    Minecraft Version: 1.9
    Operating System: Windows 10 (amd64) version 10.0
    Java Version: 1.8.0_111, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 448721184 bytes (427 MB) / 1060372480 bytes (1011 MB) up to 1060372480 bytes (1011 MB)
    JVM Flags: 6 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx1G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M
    IntCache: cache: 0, tcache: 0, allocated: 13, tallocated: 95
    FML: MCP 9.23 Powered by Forge 12.16.1.1934 Optifine OptiFine_1.9_HD_U_B3 14 mods loaded, 14 mods active
    States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
    UCHIJAAAAAAA    mcp{9.19} [Minecraft Coder Pack] (minecraft.jar)
    UCHIJAAAAAAA    FML{8.0.99.99} [Forge Mod Loader] (forge-1.9-12.16.1.1934.jar)
    UCHIJAAAAAAA    Forge{12.16.1.1934} [Minecraft Forge] (forge-1.9-12.16.1.1934.jar)
    UCHIJAAAAAAA    JEI{3.3.3.200} [Just Enough Items] (jei_1.9-3.3.3.200.jar)
    UCHIJAAAAAAA    BloodMagic{1.9-2.0.0-38} [Blood Magic: Alchemical Wizardry] (BloodMagic-1.9-2.0.0-38.jar)
    UCHIJAAAAAAA    HealthBar{1.0.2} [Health Bar] (HealthBar-1.9-1.0.2-13.jar)
    UCHIJAAAAAAA    hopperducts{1.4.7} [Hopper Ducts] (hopperducts-mc1.9-1.4.7.jar)
    UCHIJAAAAAAA    Insekto{0.0.7.9} [Insekto] (Insekto.jar)
    UCHIJAAAAAAA    InventoryPets{1.4.8.1} [Inventory Pets] (inventorypets-1.9-1.4.8.1.jar)
    UCHIJAAAAAAA    mantle{1.9-0.10.1.jenkins141} [Mantle] (Mantle-1.9-0.10.1.jar)
    UCHIJAAAAAAA    SimpleGraves{1.9-1.0.0-8} [SimpleGraves] (SimpleGraves-1.9-1.0.0-8.jar)
    UCHIJAAAAAAA    tconstruct{1.9-2.3.1.jenkins227} [Tinkers' Construct] (TConstruct-1.9-2.3.1a.jar)
    UCHIJAAAAAAA    TinkersAddons{1.0.2} [Tinkers' Addons] (Tinkers' Addons-1.9-1.0.2.jar)
    UCHIJAAAAAAA    worldedit{6.1.1} [WorldEdit] (worldedit-forge-mc1.9-6.1.1-dist.jar)
    Loaded coremods (and transformers):
    GL info: ~~ERROR~~ RuntimeException: No OpenGL context found in the current thread.
    Pulsar/tconstruct loaded Pulses:
        - TinkerCommons (Enabled/Forced)
        - TinkerWorld (Enabled/Not Forced)
        - TinkerTools (Enabled/Not Forced)
        - TinkerSmeltery (Enabled/Not Forced)
        - TinkerGadgets (Enabled/Not Forced)
        - TinkerOredict (Enabled/Forced)
        - TinkerIntegration (Enabled/Forced)
        - TinkerFluids (Enabled/Forced)
        - TinkerMaterials (Enabled/Forced)

    Profiler Position: N/A (disabled)
    Player Count: 0 / 8; []
    Type: Integrated Server (map_client.txt)
    Is Modded: Definitely; Client brand changed to 'fml,forge'
    OptiFine Version: OptiFine_1.9_HD_U_B3
    Render Distance Chunks: 3
    Mipmaps: 4
    Anisotropic Filtering: 1
    Antialiasing: 0
    Multitexture: false
    Shaders: null
    OpenGlVersion: 4.4.0 - Build 20.19.15.4390
    OpenGlRenderer: Intel(R) HD Graphics 5500
    OpenGlVendor: Intel
    CpuCount: 4

Last seen on 00:21, 11. Aug 2019
Joined Aug 2013
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • wiki contributor
  • moderator
Can you show code of mcreator
Sun, 12/18/2016 - 11:09

Can you show code of mcreator_berryBushWithoutFruit?

Last seen on 06:03, 17. Jun 2017
Joined Sep 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
RE:Can you show code of mcreator
Sun, 12/18/2016 - 11:28

Here

 

[spoiler]

public class mcreator_berryBushWithoutFruit {

public mcreator_berryBushWithoutFruit(){}

public static BlockBerryBushWithoutFruit block;

public static Object instance;public int addFuel(ItemStack fuel){return 0;}
public void serverLoad(FMLServerStartingEvent event){}
public void preInit(FMLPreInitializationEvent event){
}
public void registerRenderers(){}
public void load(FMLInitializationEvent event){
if(event.getSide() == Side.CLIENT){
Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(Item.getItemFromBlock(block), 0, new ModelResourceLocation("TestEnvironmentMod:BerryBushWithoutFruit", "inventory"));}
}

static{

block = (BlockBerryBushWithoutFruit)(new BlockBerryBushWithoutFruit().setHardness(0.0F)
.setResistance(5.0F)
.setLightLevel(0.0F)
.setUnlocalizedName("BerryBushWithoutFruit")
.setLightOpacity(0)
.setCreativeTab(CreativeTabs.tabBlock)
);block.setHarvestLevel("pickaxe", 0);
}

public void generateSurface(World world, java.util.Random rand, int chunkX, int chunkZ){
for(int i = 0; i < 2; i++){
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(0)+128;
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(mcreator_berryBushWithoutFruit.block.getDefaultState(), 1)).generate(world, rand, new BlockPos(randPosX, randPosY, randPosZ));
}
}

public void generateNether(World world, Random random, int chunkX, int chunkZ){}
static class BlockBerryBushWithoutFruit extends Block
{

int a1 = 0,a2 = 0,a3 = 0,a4 = 0,a5 = 0,a6 = 0;

boolean red = false;

 

 

protected BlockBerryBushWithoutFruit()
{
        super(Material.plants);

GameRegistry.registerBlock(this, "BerryBushWithoutFruit");
setStepSound(SoundType.PLANT);

}

@Override
public void onBlockAdded(World world, BlockPos pos, IBlockState state){
int i = pos.getX();int j = pos.getY();int k = pos.getZ();world.scheduleUpdate(new BlockPos(i, j, k), this, this.tickRate(world));

}
@Override
public int getWeakPower(IBlockState blockState, IBlockAccess blockAccess, BlockPos pos, EnumFacing side){
return red?15:0;
}
@Override
public int getStrongPower(IBlockState blockState, IBlockAccess blockAccess, BlockPos pos, EnumFacing side){
return red?15:0;
}
@Override
public void updateTick(World world, BlockPos pos, IBlockState state, Random random){
int i = pos.getX();int j = pos.getY();int k = pos.getZ();EntityPlayer entity = Minecraft.getMinecraft().thePlayer;

if((Math.random()*100) <= 50){

if((Math.random()*100) <= 50){

if((Math.random()*100) <= 50){
world.setBlockState(new BlockPos(i, j, k), mcreator_berryBushWithFruit.block.getDefaultState(), 3);
}

}

}

world.scheduleUpdate(new BlockPos(i, j, k), this, this.tickRate(world));
}
@Override
public boolean isOpaqueCube(IBlockState state)
{
return false;
}

@SideOnly(Side.CLIENT)
@Override
public BlockRenderLayer getBlockLayer()
{
return BlockRenderLayer.TRANSLUCENT;
}

@Override
public AxisAlignedBB getSelectedBoundingBox(IBlockState blockState, World worldIn, BlockPos pos)
{
return NULL_AABB;
}

@Override
public boolean isFullCube(IBlockState state)
{
return false;
}

@Override
public AxisAlignedBB getBoundingBox(IBlockState state, IBlockAccess source, BlockPos pos)
{
return new AxisAlignedBB(0.1D,0.0D,0.1D,0.9D,0.8D,0.9D);
}

@Override
public int tickRate(World world)
{
    return 500;
}

@Override
public int quantityDropped(Random par1Random){
return 1;
}

}
}

@#1

[/spoiler]

Last seen on 00:21, 11. Aug 2019
Joined Aug 2013
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • wiki contributor
  • moderator
Try change:int randPosY =
Sun, 12/18/2016 - 12:12

Try change:
int randPosY = rand.nextInt(0)+128;
 

to:

 

int randPosY = rand.nextInt(128);