Vanilla crafting table GUI?

Started by Eonaut on

Topic category: Help with Minecraft modding (Java Edition)

Joined Apr 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Vanilla crafting table GUI?

I've seen a lot of forum posts about making custom crafting table GUIs, but what I want is to make a block that opens the VANILLA crafting table GUI

Basically, I want to make more crafting tables.

Is there a way to make the block open the vanilla grafting grid, or will I have to make my own custom GUI? Or is it simply not possible?

Joined Jun 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
hi i know its a little late…
Mon, 07/15/2019 - 04:42

hi i know its a little late but i want to do the same as you and dont know how, you solved it?

Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
HIIIIIII I'D LIKE TO KNOW…
Fri, 12/06/2019 - 21:13

HIIIIIII

I'D LIKE TO KNOW HOW CAN I DO IT

I WANNA MAKE A 'SLAB CRAFTING TABLE', SO I NEED TO OPEN THE CRAFTING TABLE GUI WITH THIS BLOCK

BUT I DONT KNOW HOW TO DO IT

Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
PLEASE, HELP ME  
Fri, 12/06/2019 - 21:13

PLEASE, HELP ME

 

Joined Apr 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You need custom code calling…
Wed, 08/05/2020 - 17:36

You need custom code calling to open the vanilla crafrting table gui

 

Joined Feb 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Can you give us the code?
Tue, 04/13/2021 - 12:08

Can you give us the code?

Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
yeah, you should give it to…
Fri, 10/13/2023 - 16:10

yeah, you should give it to us, NOW!

Joined Jun 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
What's the code darthsae??
Wed, 06/25/2025 - 16:07

What's the code darthsae??

Joined Jul 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
DAMN IT WHERES THE CODE…
Fri, 07/11/2025 - 08:43

DAMN IT WHERES THE CODE DARTHSAE

Joined Jul 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I STILL NEED IT ITS BEEN 8…
Fri, 07/11/2025 - 08:43

I STILL NEED IT ITS BEEN 8 YEARS

8 YEARS!!!!!

Joined Sep 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
public class…
Mon, 09/22/2025 - 01:21
public class AppcrafteoProcedure {
public static void execute(LevelAccessor world, double x, double y, double z, Entity entity) {
if (entity == null) return;

if (entity instanceof ServerPlayer serverPlayer) {
BlockPos pos = BlockPos.containing(x, y, z);

serverPlayer.openMenu(new MenuProvider() {
@Override
public Component getDisplayName() {
return Component.translatable("container.crafting");
}

@Override
public AbstractContainerMenu createMenu(int id, Inventory inv, Player player) {
return new CraftingMenu(id, inv, ContainerLevelAccess.create(serverPlayer.level(), pos));
}
}, pos);
}
}
}
This code is missing, it opens the UI but closes, can someone help me polish it?