Jump to content

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


Astre

Recommended Posts

--> 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)
Link to comment
Share on other sites

1 hour ago, Astre said:

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

Note that basic java is required for modding minecraft

1 hour ago, 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:

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

  • Like 1
Link to comment
Share on other sites

17 hours ago, 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

Thank you so much! it works now!

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

Link to comment
Share on other sites

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.