Jump to content

[1.18.1 Problem with GUI] Failed to create screen for menu type


Recommended Posts

Posted (edited)

--> First, I have to warn you, I am new to coding on java, so if you give me a solution, imagine that you are talking to a guy who has been only making texture packs and nothing else 馃槄

I just started this mod, following Nico Kaupenjohann's tutorial, and I want to add a new entity block that will have a UI, but every time I right-click on it, it returns me this error:

Failed to create screen for menu type: rocketscience:rocket_builder

I tried everything to fix it, but it won't work :/

--> Also, I have a second minor problem: I don't know why but blocks are taking AGES to break in survival for no reason...

Here is the link for the github page: https://github.com/AstronoCraft/RocketScienceMod/tree/master

Edited by Astre
Spelling mistakes 馃槄 (im french)
Posted
  On 2/7/2022 at 6:25 AM, Astre said:

First, I have to warn you, I am new to coding on java

Expand  

Note that basic java is required for modding minecraft

  On 2/7/2022 at 6:25 AM, Astre said:

I just started this mod, following Nico Kaupenjohann's tutorial, and I want to add a new entity block that will have a UI, but every time I right-click on it, it returns me this error:

Expand  

you need to register Screens in FMLClientSetupEvent not in FMLCommonSetupEvent and you never register this event handler

  • Like 1
Posted
  On 2/7/2022 at 7:33 AM, Luis_ST said:

Note that basic java is required for modding minecraft

you need to register Screens in FMLClientSetupEvent not in FMLCommonSetupEvent and you never register this event handler

Expand  

Thank you so much! it works now!

Also, yes, I am trying to learn java 馃槄 (python is the only laguage I understand)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

  Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

  Your link has been automatically embedded.   Display as a link instead

  Your previous content has been restored.   Clear editor

  You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Create New...

Important Information

By using this site, you agree to our Terms of Use.