Remove Block with Drop Problem! PLEASE HELP

Started by luigil1000 on Sun, 08/30/2015 - 11:23
Last seen on 16:06, 5. Sep 2015
Joined Aug 2013
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Remove Block with Drop Problem! PLEASE HELP
Sun, 08/30/2015 - 11:24 (edited)

Try 1, (code by MCreator 1.5.8)

if(true){
world.getBlockState(new BlockPos(i, j + mcreator_VarList%MAINMODNAME%.Variable, k)), 1);
world.setBlockToAir(new BlockPos(i, j + mcreator_VarList%MAINMODNAME%.Variable, k));

}

Error:

C:\Pylo\MCreator158\forge\build\sources\java\mod\mcreator\mcreator_drill.java:167: error: ';' expected
world.getBlockState(new BlockPos(i, j + mcreator_VarListTestEnvironmentMod.Variable, k)), 1);
                                                                                        ^

Try 2, (code by MCreator 1.5.6)

if(true){
world.getBlock(i, j + mcreator_VarListTestEnvironmentMod.Variable, k).dropBlockAsItem(world, i, j + 2, k, 1, 1);
world.setBlockToAir(i, j + mcreator_VarListTestEnvironmentMod.Variable, k);

}

Error (works on 1.5.6 but this is the Error of 1.5.8):

C:\Pylo\MCreator158\forge\build\sources\java\mod\mcreator\mcreator_drill.java:167: error: ')' expected
world.getBlock(i, j + mcreator_VarListTestEnvironmentMod.dropBlockAsItem(world, i, j + 2, k, 1, 1);
                                                                                                  ^

 

 

SOMEONE HELP, thanks!

Edited by luigil1000 on Sun, 08/30/2015 - 11:24