Errors with Structures on Mcreator 1.6.5 for Minecraft 1.8.9

Started by silent0cicadia on Tue, 02/23/2016 - 17:37
Last seen on 06:59, 21. Sep 2018
Joined Feb 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Errors with Structures on Mcreator 1.6.5 for Minecraft 1.8.9
Tue, 02/23/2016 - 17:37

Okay, I've worked on making a custom structure. I try exporting my mod but when I get a message saying "Recompulation has failed because computer found errors." It tells me that what's causing the issue is the structure itself so I delete it. I then remake it and the same message pops up! It says to export my workspace and send it to the guys who made the program and it does the same thing. What is going on and are there any ways I can fix this or get around it?

Last seen on 20:29, 19. Nov 2017
Joined Oct 2014
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
I Get this Smae Problem  
Sun, 04/17/2016 - 19:38

I Get this Smae Problem

 

Last seen on 18:11, 23. Sep 2018
Joined Aug 2013
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • wiki contributor
  • moderator
This is how I fixed it: 
Sun, 04/17/2016 - 20:25

This is how I fixed it:
 

public void generateSurface(World world, Random random, int i2, int k2){

int i = i2 + random.nextInt(15);
int k = k2 + random.nextInt(15);
BlockPos pos = new BlockPos(i,0,k);
int chunkX = i >> 4;
int chunkZ = k >> 4;
int height = world.getChunkFromChunkCoords(chunkX, chunkZ).getHeight(pos);

int j = height-1;
 

 


if((random.nextInt(2000000)+1)<=1500000){
boolean place = true;

if(place){
world.setBlockState(new BlockPos(i+0, j+1, k+0), Block.getBlockById(199).getStateFromMeta(0), 3);
}}

    }