Mod Failure cause of {display:{Name:"Rab"}}

Started by Megic92 on Wed, 06/01/2016 - 12:27

Topic category: Help with MCreator modding

Last seen on 04:43, 22. Jan 2017
Joined Jun 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Mod Failure cause of {display:{Name:"Rab"}}
Wed, 06/01/2016 - 12:28 (edited)

this is my first time writing Topic in forum, 

and i'm using Mcreator having so much wonderful time, 

problem is: i'm trying to review in survival map and didn't want to find horse everytime for speed up game review, 

so when i do : /summon EntityHorse ~ ~1 ~-3 {Tame:1,Saddle:1,Variant:770} which is perfectly fine, 

but when i wanna give him name by /summon EntityHorse ~ ~1 ~-3 {Tame:1,Saddle:1,Variant:770,CustomName:"Rabel"}   (by the way, her name is rabel)

when i type this command in minecraft which is fine, 

it's always fail in my mcreator, i don't know why i can't execute this command in mod item. 

 

 

E:\MCreator163\forge\build\sources\java\mod\mcreator\mcreator_rabel.java:155: error: ')' expected
if(entity instanceof EntityPlayer){MinecraftServer minecraftserver = MinecraftServer.getServer();if(minecraftserver!=null)minecraftserver.getCommandManager().executeCommand((EntityPlayer)entity, "summon EntityHorse ~ ~1 ~-3 {Tame:1,Saddle:1,Variant:770,CustomName:"Rabel"}");}
                                                                                                                                                                                                                                                                         ^
E:\MCreator163\forge\build\sources\java\mod\mcreator\mcreator_rabel.java:155: error: not a statement
if(entity instanceof EntityPlayer){MinecraftServer minecraftserver = MinecraftServer.getServer();if(minecraftserver!=null)minecraftserver.getCommandManager().executeCommand((EntityPlayer)entity, "summon EntityHorse ~ ~1 ~-3 {Tame:1,Saddle:1,Variant:770,CustomName:"Rabel"}");}
                                                                                                                                                                                                                                                                              ^
E:\MCreator163\forge\build\sources\java\mod\mcreator\mcreator_rabel.java:155: error: ';' expected
if(entity instanceof EntityPlayer){MinecraftServer minecraftserver = MinecraftServer.getServer();if(minecraftserver!=null)minecraftserver.getCommandManager().executeCommand((EntityPlayer)entity, "summon EntityHorse ~ ~1 ~-3 {Tame:1,Saddle:1,Variant:770,CustomName:"Rabel"}");}
                                                                                                                                                                                                                                                                                 ^
3 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

 

 

 

this is Gradle Log. 

Edited by Megic92 on Wed, 06/01/2016 - 12:28
Last seen on 04:43, 22. Jan 2017
Joined Jun 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
plz anybody help me to get
Wed, 06/01/2016 - 12:29

plz anybody help me to get through this, 

and by the way my english is terrible... 

Last seen on 04:43, 22. Jan 2017
Joined Jun 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
wait, 
Wed, 06/01/2016 - 12:32

wait, 

i was dumb

i thought this topic was "help for modding" is mean shouting HELP

not instead of helping peaple in modding... 

how can i delete this stupid useless topic?

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

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • wiki contributor
  • moderator
First paste here code of the
Wed, 06/01/2016 - 12:35

First paste here code of the item.

Last seen on 04:43, 22. Jan 2017
Joined Jun 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
... mmh... 
Wed, 06/01/2016 - 12:39

... mmh... 

where is mod item code? 

and by the way every time i'm trying to use item to summon namedmob result is same.