Importing Procedures Incorrectly

Started by Sisi on

Topic category: Help with MCreator software

Joined Dec 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Importing Procedures Incorrectly

When I import this procedure it only imports the beginning, at the end of the procedure there is a big part collapsed and it doesn't import it correctly

This is in the console but I made it a bit shorter since it says this message like 10 times

Executing Gradle task: build
Build info: MCreator 2021.3.51610, forge-1.16.5, 64-bit, 16333 MB, Windows 10, JVM 16.0.2, JAVA_HOME: F:\Program Files\Pylo\MCreator\jdk
 
> Task :compileJava FAILED
F:\MCMods\custom_crops_workspace\src\main\java\net\mcreator\crops\procedures\AlienRootGrowthScoreConditionProcedure.java:45: error: illegal start of expression  textNamespace = "crops";textTag = "alien_root"; blockFarmland = Blocks.FARMLAND.getDefaultState();numberScore = 0;if ((world.getBlockState(new BlockPos((int)x,(int)(y-1),(int)z))).getBlock() == (blockFarmland).getBlock()&&==7) {numberScore = (numberScore+1);}if ((world.getBlockState(new BlockPos((int)(x-1),(int)(y-1),(int)z))).getBlock() == (blockFarmland).getBlock()&&==7) {numberScore = (numberScore+1);}if ((world.getBlockState(new BlockPos((int)(x+1),(int)(y-1),(int)z))).getBlock() == (blockFarmland).getBlock()&&==7) {numberScore = (numberScore+1);}if ((world.getBlockState(new BlockPos((int)x,(int)(y-1),(int)(z+1)))).getBlock() == (blockFarmland).getBlock()&&==7) {numberScore = (numberScore+1);}if ((world.getBlockState(new BlockPos((int)x,(int)(y-1),(int)(z-1)))).getBlock() == (blockFarmland).getBlock()&&==7) {numberScore = (numberScore+1);}if ((world.getBlockState(new BlockPos((int)(x-1),(int)(y-1),(int)(z-1)))).getBlock() == (blockFarmland).getBlock()&&==7) {numberScore = (numberScore+1);}if ((world.getBlockState(new BlockPos((int)(x+1),(int)(y-1),(int)(z-1)))).getBlock() == (blockFarmland).getBlock()&&==7) {numberScore = (numberScore+1);}if ((world.getBlockState(new BlockPos((int)(x+1),(int)(y-1),(int)(z+1)))).getBlock() == (blockFarmland).getBlock()&&==7) {numberScore = (numberScore+1);}if ((world.getBlockState(new BlockPos((int)(x-1),(int)(y-1),(int)(z+1)))).getBlock() == (blockFarmland).getBlock()&&==7) {numberScore = (numberScore+1);}if ((BlockTags.getCollection().getTagByID(new ResourceLocation(((textNamespace+":"+textTag)).toLowerCase(java.util.Locale.ENGLISH))).contains((world.getBlockState(new BlockPos((int)(x-1),(int)y,(int)z))).getBlock())||BlockTags.getCollection().getTagByID(new ResourceLocation(((textNamespace+":"+textTag)).toLowerCase(java.util.Locale.ENGLISH))).contains((world.getBlockState(new BlockPos((int)(x+1),(int)y,(int)z))).getBlock()))&&!BlockTags.getCollection().getTagByID(new ResourceLocation(((textNamespace+":"+textTag)).toLowerCase(java.util.Locale.ENGLISH))).contains((world.getBlockState(new BlockPos((int)x,(int)y,(int)(z-1)))).getBlock())&&!BlockTags.getCollection().getTagByID(new ResourceLocation(((textNamespace+":"+textTag)).toLowerCase(java.util.Locale.ENGLISH))).contains((world.getBlockState(new BlockPos((int)x,(int)y,(int)(z+1)))).getBlock())) {numberScore = (numberScore+1);}else if (!BlockTags.getCollection().getTagByID(new ResourceLocation(((textNamespace+":"+textTag)).toLowerCase(java.util.Locale.ENGLISH))).contains((world.getBlockState(new BlockPos((int)(x-1),(int)y,(int)z))).getBlock())&&!BlockTags.getCollection().getTagByID(new ResourceLocation(((textNamespace+":"+textTag)).toLowerCase(java.util.Locale.ENGLISH))).contains((world.getBlockState(new BlockPos((int)(x+1),(int)y,(int)z))).getBlock())&&(BlockTags.getCollection().getTagByID(new ResourceLocation(((textNamespace+":"+textTag)).toLowerCase(java.util.Locale.ENGLISH))).contains((world.getBlockState(new BlockPos((int)x,(int)y,(int)(z-1)))).getBlock())||BlockTags.getCollection().getTagByID(new ResourceLocation(((textNamespace+":"+textTag)).toLowerCase(java.util.Locale.ENGLISH))).contains((world.getBlockState(new BlockPos((int)x,(int)y,(int)(z+1)))).getBlock()))) {numberScore = (numberScore+1);}if (BlockTags.getCollection().getTagByID(new ResourceLocation(((textNamespace+":"+textTag)).toLowerCase(java.util.Locale.ENGLISH))).contains((world.getBlockState(new BlockPos((int)(x-1),(int)y,(int)z))).getBlock())&&BlockTags.getCollection().getTagByID(new ResourceLocation(((textNamespace+":"+textTag)).toLowerCase(java.util.Locale.ENGLISH))).contains((world.getBlockState(new BlockPos((int)(x+1),(int)y,(int)z))).getBlock())&&BlockTags.getCollection().getTagByID(new ResourceLocation(((textNamespace+":"+textTag)).toLowerCase(java.util.Locale.ENGLISH))).contains((world.getBlockState(new BlockPos((int)x,(int)y,(int)(z-1)))).getBlock())&&BlockTags.getCollection().getTagByID(new ResourceLocation(((textNamespace+":"+textTag)).toLowerCase(java.util.Locale.ENGLISH))).contains((world.getBlockState(new BlockPos((int)x,(int)y,(int)(z+1)))).getBlock())) {numberScore = (numberScore-3);}else if ((BlockTags.getCollection().getTagByID(new ResourceLocation(((textNamespace+":"+textTag)).toLowerCase(java.util.Locale.ENGLISH))).contains((world.getBlockState(new BlockPos((int)(x-1),(int)y,(int)z))).getBlock())||BlockTags.getCollection().getTagByID(new ResourceLocation(((textNamespace+":"+textTag)).toLowerCase(java.util.Locale.ENGLISH))).contains((world.getBlockState(new BlockPos((int)(x+1),(int)y,(int)z))).getBlock()))&&BlockTags.getCollection().getTagByID(new ResourceLocation(((textNamespace+":"+textTag)).toLowerCase(java.util.Locale.ENGLISH))).contains((world.getBlockState(new BlockPos((int)x,(int)y,(int)(z-1)))).getBlock())&&BlockTags.getCollection().getTagByID(new ResourceLocation(((textNamespace+":"+textTag)).toLowerCase(java.util.Locale.ENGLISH))).contains((world.getBlockState(new BlockPos((int)x,(int)y,(int)(z+1)))).getBlock())) {numberScore = (numberScore-2);}else if (BlockTags.getCollection().getTagByID(new ResourceLocation(((textNamespace+":"+textTag)).toLowerCase(java.util.Locale.ENGLISH))).contains((world.getBlockState(new BlockPos((int)(x-1),(int)y,(int)z))).getBlock())&&BlockTags.getCollection().getTagByID(new ResourceLocation(((textNamespace+":"+textTag)).toLowerCase(java.util.Locale.ENGLISH))).contains((world.getBlockState(new BlockPos((int)(x+1),(int)y,(int)z))).getBlock())&&(BlockTags.getCollection().getTagByID(new ResourceLocation(((textNamespace+":"+textTag)).toLowerCase(java.util.Locale.ENGLISH))).contains((world.getBlockState(new BlockPos((int)x,(int)y,(int)(z-1)))).getBlock())||BlockTags.getCollection().getTagByID(new ResourceLocation(((textNamespace+":"+textTag)).toLowerCase(java.util.Locale.ENGLISH))).contains((world.getBlockState(new BlockPos((int)x,(int)y,(int)(z+1)))).getBlock()))) {numberScore = (numberScore-2);}else if ((BlockTags.getCollection().getTagByID(new ResourceLocation(((textNamespace+":"+textTag)).toLowerCase(java.util.Locale.ENGLISH))).contains((world.getBlockState(new BlockPos((int)(x-1),(int)y,(int)z))).getBlock())||BlockTags.getCollection().getTagByID(new ResourceLocation(((textNamespace+":"+textTag)).toLowerCase(java.util.Locale.ENGLISH))).contains((world.getBlockState(new BlockPos((int)(x+1),(int)y,(int)z))).getBlock()))&&(BlockTags.getCollection().getTagByID(new ResourceLocation(((textNamespace+":"+textTag)).toLowerCase(java.util.Locale.ENGLISH))).contains((world.getBlockState(new BlockPos((int)x,(int)y,(int)(z-1)))).getBlock())||BlockTags.getCollection().getTagByID(new ResourceLocation(((textNamespace+":"+textTag)).toLowerCase(java.util.Locale.ENGLISH))).contains((world.getBlockState(new BlockPos((int)x,(int)y,(int)(z+1)))).getBlock()))) {numberScore = (numberScore-1);}return
                               ^