Execute Tellraw Command After Right-Click on a Block Error

Status
Works as designed
Type
Product/platform
MCreator/Windows
Priority
Normal
Issue description

I'm trying to create a block. It works fine; I click on all the Next buttons and it successfully compiles itself. Then when I go back to edit it I add this command that gets executed after you right click on the block: tellraw @a ["",{"text":"MEOW!!!","color":"dark_purple","bold":true,"underlined":true}]

Then it gives me an error and here's the error log:

Executing gradle command: clean build
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
C:\Pylo\MCreator178>cd forge
C:\Pylo\MCreator178\forge>SET "JAVA_HOME=C:\Pylo\MCreator178\jdk\"
C:\Pylo\MCreator178\forge>SET JAVA_EXE=%JAVA_HOME%\bin\java.exe
C:\Pylo\MCreator178\forge>SET PATH=%JAVA_HOME%\bin\;%PATH%
C:\Pylo\MCreator178\forge>SET "GRADLE_USER_HOME=C:\Users\NOA\.mcreator\gradle"
C:\Pylo\MCreator178\forge>gradlew -Dorg.gradle.jvmargs="-Xms512m -Xmx1500m" clean build 
This mapping 'snapshot_20171003' was designed for MC 1.12! Use at your own peril.
#################################################
         ForgeGradle 2.3-SNAPSHOT-c9bb579        
  https://github.com/MinecraftForge/ForgeGradle  
#################################################
               Powered by MCP unknown               
             http://modcoderpack.com             
         by: Searge, ProfMobius, Fesh0r,         
         R4wk, ZeuX, IngisKahn, bspkrs           
#################################################
:clean
:deobfCompileDummyTask
:deobfProvidedDummyTask
:sourceApiJava
:compileApiJava UP-TO-DATE
:processApiResources UP-TO-DATE
:apiClasses UP-TO-DATE
:sourceMainJava
C:\Pylo\MCreator178\forge\build\sources\main\java\mod\mcreator\mcreator_nyanBlock.java:118: error: ')' expected
if(entity instanceof EntityPlayerMP){MinecraftServer minecraftserver = FMLCommonHandler.instance().getMinecraftServerInstance();if(minecraftserver!=null)minecraftserver.getCommandManager().executeCommand((EntityPlayerMP)entity, "tellraw @a ["",{"text":"MEOW!!!","color":"dark_purple","bold":true,"underlined":true}]");}
                                                                                                                                                                                                                                                  ^
C:\Pylo\MCreator178\forge\build\sources\main\java\mod\mcreator\mcreator_nyanBlock.java:118: error: not a statement
if(entity instanceof EntityPlayerMP){MinecraftServer minecraftserver = FMLCommonHandler.instance().getMinecraftServerInstance();if(minecraftserver!=null)minecraftserver.getCommandManager().executeCommand((EntityPlayerMP)entity, "tellraw @a ["",{"text":"MEOW!!!","color":"dark_purple","bold":true,"underlined":true}]");}
                                                                                                                                                                                                                                                      ^
C:\Pylo\MCreator178\forge\build\sources\main\java\mod\mcreator\mcreator_nyanBlock.java:118: error: ';' expected
if(entity instanceof EntityPlayerMP){MinecraftServer minecraftserver = FMLCommonHandler.instance().getMinecraftServerInstance();if(minecraftserver!=null)minecraftserver.getCommandManager().executeCommand((EntityPlayerMP)entity, "tellraw @a ["",{"text":"MEOW!!!","color":"dark_purple","bold":true,"underlined":true}]");}
                                                                                                                                                                                                                                                          ^
C:\Pylo\MCreator178\forge\build\sources\main\java\mod\mcreator\mcreator_nyanBlock.java:118: error: not a statement
if(entity instanceof EntityPlayerMP){MinecraftServer minecraftserver = FMLCommonHandler.instance().getMinecraftServerInstance();if(minecraftserver!=null)minecraftserver.getCommandManager().executeCommand((EntityPlayerMP)entity, "tellraw @a ["",{"text":"MEOW!!!","color":"dark_purple","bold":true,"underlined":true}]");}
                                                                                                                                                                                                                                                             ^
C:\Pylo\MCreator178\forge\build\sources\main\java\mod\mcreator\mcreator_nyanBlock.java:118: error: ';' expected
if(entity instanceof EntityPlayerMP){MinecraftServer minecraftserver = FMLCommonHandler.instance().getMinecraftServerInstance();if(minecraftserver!=null)minecraftserver.getCommandManager().executeCommand((EntityPlayerMP)entity, "tellraw @a ["",{"text":"MEOW!!!","color":"dark_purple","bold":true,"underlined":true}]");}
                                                                                                                                                                                                                                                                 ^
C:\Pylo\MCreator178\forge\build\sources\main\java\mod\mcreator\mcreator_nyanBlock.java:118: error: not a statement
if(entity instanceof EntityPlayerMP){MinecraftServer minecraftserver = FMLCommonHandler.instance().getMinecraftServerInstance();if(minecraftserver!=null)minecraftserver.getCommandManager().executeCommand((EntityPlayerMP)entity, "tellraw @a ["",{"text":"MEOW!!!","color":"dark_purple","bold":true,"underlined":true}]");}
                                                                                                                                                                                                                                                                       ^
C:\Pylo\MCreator178\forge\build\sources\main\java\mod\mcreator\mcreator_nyanBlock.java:118: error: ';' expected
if(entity instanceof EntityPlayerMP){MinecraftServer minecraftserver = FMLCommonHandler.instance().getMinecraftServerInstance();if(minecraftserver!=null)minecraftserver.getCommandManager().executeCommand((EntityPlayerMP)entity, "tellraw @a ["",{"text":"MEOW!!!","color":"dark_purple","bold":true,"underlined":true}]");}
                                                                                                                                                                                                                                                                            ^
C:\Pylo\MCreator178\forge\build\sources\main\java\mod\mcreator\mcreator_nyanBlock.java:118: error: not a statement
if(entity instanceof EntityPlayerMP){MinecraftServer minecraftserver = FMLCommonHandler.instance().getMinecraftServerInstance();if(minecraftserver!=null)minecraftserver.getCommandManager().executeCommand((EntityPlayerMP)entity, "tellraw @a ["",{"text":"MEOW!!!","color":"dark_purple","bold":true,"underlined":true}]");}
                                                                                                                                                                                                                                                                               ^
C:\Pylo\MCreator178\forge\build\sources\main\java\mod\mcreator\mcreator_nyanBlock.java:118: error: ';' expected
if(entity instanceof EntityPlayerMP){MinecraftServer minecraftserver = FMLCommonHandler.instance().getMinecraftServerInstance();if(minecraftserver!=null)minecraftserver.getCommandManager().executeCommand((EntityPlayerMP)entity, "tellraw @a ["",{"text":"MEOW!!!","color":"dark_purple","bold":true,"underlined":true}]");}
                                                                                                                                                                                                                                                                                          ^
C:\Pylo\MCreator178\forge\build\sources\main\java\mod\mcreator\mcreator_nyanBlock.java:118: error: not a statement
if(entity instanceof EntityPlayerMP){MinecraftServer minecraftserver = FMLCommonHandler.instance().getMinecraftServerInstance();if(minecraftserver!=null)minecraftserver.getCommandManager().executeCommand((EntityPlayerMP)entity, "tellraw @a ["",{"text":"MEOW!!!","color":"dark_purple","bold":true,"underlined":true}]");}
                                                                                                                                                                                                                                                                                             ^
C:\Pylo\MCreator178\forge\build\sources\main\java\mod\mcreator\mcreator_nyanBlock.java:118: error: ';' expected
if(entity instanceof EntityPlayerMP){MinecraftServer minecraftserver = FMLCommonHandler.instance().getMinecraftServerInstance();if(minecraftserver!=null)minecraftserver.getCommandManager().executeCommand((EntityPlayerMP)entity, "tellraw @a ["",{"text":"MEOW!!!","color":"dark_purple","bold":true,"underlined":true}]");}
                                                                                                                                                                                                                                                                                                 ^
C:\Pylo\MCreator178\forge\build\sources\main\java\mod\mcreator\mcreator_nyanBlock.java:118: error: not a statement
if(entity instanceof EntityPlayerMP){MinecraftServer minecraftserver = FMLCommonHandler.instance().getMinecraftServerInstance();if(minecraftserver!=null)minecraftserver.getCommandManager().executeCommand((EntityPlayerMP)entity, "tellraw @a ["",{"text":"MEOW!!!","color":"dark_purple","bold":true,"underlined":true}]");}
                                                                                                                                                                                                                                                                                                         ^
C:\Pylo\MCreator178\forge\build\sources\main\java\mod\mcreator\mcreator_nyanBlock.java:118: error: ';' expected
if(entity instanceof EntityPlayerMP){MinecraftServer minecraftserver = FMLCommonHandler.instance().getMinecraftServerInstance();if(minecraftserver!=null)minecraftserver.getCommandManager().executeCommand((EntityPlayerMP)entity, "tellraw @a ["",{"text":"MEOW!!!","color":"dark_purple","bold":true,"underlined":true}]");}
                                                                                                                                                                                                                                                                                                                   ^
13 errors
:compileJava FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output for details.
* Try:
BUILD FAILED
Total time: 13.012 secs
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
C:\Pylo\MCreator178\forge>
Task completed with return code 0 in 13629 milliseconds

Thanks :)

Issue comments



Donate to MCreator

By donating to developers you can speed up development, as with more resources, we can dedicate more time to MCreator. It is a free project made by developers working on it in their free time.