Opening Default Crafting GUI

Started by SuperBully on

Topic category: Help with MCreator software

Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Opening Default Crafting GUI
Sun, 07/12/2020 - 20:46 (edited)

I am using MCreator to make a revamp of the way wood works in minecraft.

Similar to how there is individual doors for each type of wood, I wanted to make individual crafting tables for each type of wood. However, I can't get it to just open up the regular crafting GUI. I don't want to make a new crafting system, just use the same one with a different texture.

I am using MCreator 2020.3 on the 1.15 minecraft version. Any help is appreciated!

Edited by SuperBully on Sun, 07/12/2020 - 20:46
Joined Jun 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You need to modify your gui…
Sat, 06/07/2025 - 17:14

You need to modify your gui code so instead it opens your custom gui, it opens the crafting table one, just add this after the display name:

@Override
public AbstractContainerMenu createMenu(int id, Inventory inventory, Player player) {
return new CraftingMenu(id, inventory);
}
Joined Jun 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I try to lock my code and…
Tue, 06/24/2025 - 20:37

I try to lock my code and then place this code after the display name code, but it just crashes right when I try to open the game. I place it in the BlockEntity.java folder.

Joined Jul 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I FIGURED IT OUT you just…
Thu, 07/24/2025 - 09:12

I FIGURED IT OUT

you just need to type the crafting menu thing yourself and not copied!!!111!!!!

YAYAYAYAYAAAAAAAAAAAAAAAAAAAAAAAAAAAAy

Joined Jul 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you must type it yourselfNOW…
Thu, 07/24/2025 - 09:14

you must type it yourselfNOW!!!!!

Joined Jun 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I tried typing it all out as…
Fri, 08/08/2025 - 18:13

I tried typing it all out as you said, muddiaaz. But all it gave me was this error message in the console when trying to play:

> Task :compileJava FAILED
C:\Users\"name"\MCreatorWorkspaces\"modname"\src\main\java\net\mcreator\"modname"\block\entity\DreamCraftingTableBlockEntity.java:98: error: cannot find symbol public AbstractContainerMenu createMenu(int id, Inventory inventory, Player player) {
                                 ^
symbol: class Player
location: class DreamCraftingTableBlockEntity
C:\Users\"name"\MCreatorWorkspaces\"modname"\src\main\java\net\mcreator\"modname"\block\entity\DreamCraftingTableBlockEntity.java:99: error: cannot find symbol return new CraftingMenu(id, inventory);
                                                                                                                ^
symbol: class CraftingMenu
location: class DreamCraftingTableBlockEntity
2 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 --info option to get more log output.
> Run with --scan to get full insights.
BUILD FAILED in 1s
1 actionable task: 1 executed

BUILD FAILED

Joined Jun 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Those arrows should be…
Fri, 08/08/2025 - 18:15

Those arrows should be underneath the "P" in Player, and the second one should be under "C" in CraftingMenu.

Joined Jun 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I have made it able to open…
Fri, 08/08/2025 - 18:57

I have made it able to open the game now by instead of wrighting down "Player" and "CraftingMenu" I instead clicked on the auto corrects that it recomends. But it still doesn't allow me to open the crafting menu when right-clicking the crafting table in game.