Create key bind

Started by Renaudrl on

Topic category: Troubleshooting, bugs, and solutions

Joined Oct 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Create key bind

Hello , i have create a key bind , for my server launcher.

Build successful

I compile and I go to my server, I executed the key bind but my game crash could you help me

java.lang.NullPointerException: Unexpected error
    at mod.mcreator.mcreator_hotel$KeyHandlerClass.onKeyInput(mcreator_hotel.java:77)
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_10_KeyHandlerClass_onKeyInput_KeyInputEvent.invoke(.dynamic)
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90)
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:185)
    at net.minecraftforge.fml.common.FMLCommonHandler.fireKeyInput(FMLCommonHandler.java:555)
    at net.minecraft.client.Minecraft.func_184118_az(Minecraft.java:1958)
    at net.minecraft.client.Minecraft.func_71407_l(Minecraft.java:1749)
    at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:1055)
    at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:371)
    at net.minecraft.client.main.Main.main(SourceFile:124)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:483)
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

Joined Dec 2013
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Are you trying to make the
Thu, 10/20/2016 - 04:01

Are you trying to make the key spawn a structure? What is the key binded to? 

Please Dear, User provide this information so i may help you.

Joined May 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
So you had a compile error
Thu, 10/20/2016 - 12:17

So you had a compile error when you wanted to create a key bind .

Joined Oct 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I create a keybind for the
Thu, 10/20/2016 - 12:36

I create a keybind for the command /hotel of my server.