Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

awesomedude3595

Members
  • Joined

  • Last visited

  1. yes i know but it ask for 3 parameters i only know what to enter for the first one.
  2. what is a scan code? what are the modifiers? there are both integers but other than that idk. where do i get the values for them from.
  3. I know but I dont know what that means
  4. I looked at the parameters for keyPressed and got the keyCode but i dont know what to put for the other 2.
  5. I want to detect when the player presses the arrow keys so that I can rotate a entity on my custom screen. I know how to rotate the entity but dont know how to detect when the player is pressing one of the keys.
  6. I have created a custom GUI which has custom a custom recipe. I want to have the output of the recipe change depending on what button is pressed. I have created the buttons however I cannot get them to change the recipe output. Code Here
  7. I have created a boolean that changes between true/false when you click the button, however after clicking the button you have to take an item away and put it back for the result to change. Is there a way I can have the result change without needing to do this?
  8. I have created a custom GUI which has a working custom crafting recipe. I want to have the recipe's result to change depending on what button on the GUI was pressed. It might require 2 different recipes. How would I do this? Code here.
  9. I have added a RegistryType and now the game no longer crashes when you put something in slot 2. When I put the items in it does not put anything in the result slot. Therefore I presume that my recipe is not working or loading.
  10. I have been trying to create a custom GUI that can use custom crafting recipes. The crafting part doesn't work I assume that this is because of this: public RecipeType<?> getType() { return RecipeType.SMITHING; } In the common/crafting/ModUpgradeRecipe, however you cannot create a custom RecpeType because there is no forgeRegistry for it. Also whenever I put any item in the 2nd slot the game crashes, I didn't have that issue until and added the matter_essence_converter.json recipe file. Pls help me fix these issues. Here is git repo https://github.com/Awesomedude3595/1.18.1-Handheld-Inventions
  11. now it loads the screen but it just flashes then disappears. Any idea what might cause that?
  12. wait nvm I see the duplicate menu type.
  13. What do you mean by this? Is it to do with not using enqueueWork also how do I use the enqueueWork. I have tried using it a couple of ways but it still gives the same error, this might be to do with having 2 MenuTypes if so how do I fix this?
  14. Is that not done in the client/event/ClientModEvents clientSetup? Also I made some dumb mistakes in the first post fixed them now but the error still exists.
  15. I am trying to create a custom GUI for a block in my mod. When I right click on the block I get this error "Failed to create screen for menu type: handheld_inventions:essence_conveter". Help me fix this. The git repo is here.

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.