Started by
SuperBully
on
Topic category: Help with MCreator software
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
https://mcreator.net/search/content?keys=open+crafting+gui
This website has search for things like this
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:
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.
I FIGURED IT OUT
you just need to type the crafting menu thing yourself and not copied!!!111!!!!
YAYAYAYAYAAAAAAAAAAAAAAAAAAAAAAAAAAAAy
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
Those arrows should be underneath the "P" in Player, and the second one should be under "C" in CraftingMenu.
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.